File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes Reading a XML file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Reading a XML file" Watch "Reading a XML file" New topic
Author

Reading a XML file

arnav prateek
Greenhorn

Joined: Apr 06, 2006
Posts: 17
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

Joined: Nov 05, 2003
Posts: 1
Can you send the code you have written to read he XML File
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading a XML file