Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading a XML file

 
arnav prateek
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a complex XML file to read,

Actual XML file looks like this:
<LDEGER>
<DAYPROFIT>
<DAY>
<NAME>Monday</NAME>
</DAY>1234
<DAY>
<NAME>TuesDay</NAME>
</DAY>1002
</DAYPROFIT>
</LEDGER>

Here DAY tag can appear multiple times and if you have noticed 1234 and 1002 are appearing just after each closing tag of DAY..
I am able to read Name tags but unable to read 1234 and 1002....values using SAX and dom parser...

Can somebody will help in reading this file?

Thanks in Advance.

Regards
 
kumar padmanabhan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you send the code you have written to read he XML File
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic