xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siva <siv...@techmahindra.com>
Subject reading xml elements names
Date Fri, 22 Sep 2006 09:35:14 GMT

hi
I am trying to create a HashMap of key-value pairs by reading the XML file
using xmlbeans
sample of the xml file is...
<name>amit</name>
<defaultEmailAddress>amit@yahoo.com</defaultEmailAddress>
...
I am able to get the values of the elment using the Document interface
generated by scomp utility...
ie i am able to extract 'amit' 'amit@yahoo.com' from the DTOs..
but i also want to extract the names of the elements ie 'name' and
'defaultEmailAddress' from the DTO/XML, so that i can populate my hashmap - 
'name' as the key and 'amit' as the value and soon...
Need some help on it!!
siva
-- 
View this message in context: http://www.nabble.com/reading-xml-elements-names-tf2316814.html#a6443986
Sent from the Xml Beans - User mailing list archive at Nabble.com.


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


Mime
View raw message