how to access a particular elements children using DOM
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   akella_karthik
Posted On:   Wednesday, November 14, 2007 04:51 AM

hai all! I am new to xml parsing i am trying to parse a xml file using java DOM parser. my xml file is like this first second third fourth fifth sixth seven eight ninth i have to pull the attributes of an element depending upon the id thats given. i have tried it using DOM and SAX please help me out if possible.    More>>

hai all! I am new to xml parsing i am trying to parse a xml file using java DOM parser.

my xml file is like this





first

second

third





fourth

fifth

sixth





seven

eight

ninth






i have to pull the attributes of an element depending upon the id thats given.

i have tried it using DOM and SAX please help me out if possible.

   <<Less

Re: how to access a particular elements children using DOM

Posted By:   Roseanne_Zhang  
Posted On:   Wednesday, November 14, 2007 04:52 PM

Question: Are you talking about XML attributes or element atts?



In your XML, id is the only XML attribute.

About | Sitemap | Contact