Re: pointers for parsing dynamic xml elements

Jeremias Maerki <[email protected]>
Newsgroups gmane.text.xml.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.