xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <dev.jerem...@greenmail.ch>
Subject Re: pointers for parsing dynamic xml elements
Date Thu, 14 Oct 2004 10:50:47 GMT
Have a look at Jakarta Commons Digester: 
http://jakarta.apache.org/commons/digester/

On 13.10.2004 14:13:34 Michael Cornell wrote:
> I am looking for some pointers as to what technology to use for parsing xml
> of the following form:
> 
> <root>
>     <object ID="">
>         <attr_name>balance_object</attr_name>
>         <attr_value>Balance</attr_value>
>     </object>
>     <object ID="">
>         <attr_name>object</attr_name>
>     </object>
> </root>
> 
> into a List of MyRow objects each containing a getId() and a
> getColumn(String columnName) [where columnName could be attr_name]
> 
> In addition this xml does not always look the same as the 3rd tier of names
> can change
> 
> <root>
>     <object ID="23">
>         <attr_type>the_object</attr_type>
>     </object>
>     <object ID="34">
>         <attr_type>an_object</attr_type>
>     </object>
> </root>
> 
> 
> Can anyone please help by pointing me in the right direction (and sorry in
> advance if this is the wrong forum)


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message