On Sat, 2004-08-28 at 22:43, Simon Kitching wrote:
> > --- [EMAIL PROTECTED] çææï
> > > 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/[EMAIL PROTECTED]/msg07607.html
Oops .. sorry, you asked about Betwixt, not Digester. I'll be interested
to see how/if Betwixt handles this.
Regards,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]