commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject Re: [betwixt] XML to java question
Date Sat, 28 Aug 2004 10:43:22 GMT
>  --- gdansk@free.fr 的正文:
> > Hi all,
> > I want to passe from the following XML
> > 
> >  	<?xml version="1.0" encoding="ISO-8859-1"?>
> >  	<!DOCTYPE form [ <!ELEMENT field (field*) >
> > 	<!ATTLIST field code ID #REQUIRED>]>
> >  	<form>
> >  		<field code="txtNumClient">num1</field>
> >  		<field code="chkSuiviICP">boolTrue</field>
> > 	</form>
> > 
> > To the following java bean
> > 
> > 	public class Form {
> > 		private String txtNumClient;
> > 		private boolean chkSuiviICP;
> > 		// ...
> > 	}
> > 
> > How to use my ID attributes "code" from the XML to
> > map my bean attributes in
> > Java?
> > Thank you for any suggestions.

Hi,

Unfortunately the xml you show above is not easy to parse using
Digester. See this archived email for details:
http://www.mail-archive.com/commons-user@jakarta.apache.org/msg07607.html

Regards,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message