• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parsing XML Doc  RSS feed

 
Mahesh Pinnamaneni
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am parsing the XML document using com.sun.xml.tree.ElementNode &
com.sun.xml.tree.XmlDocument 's.

I am getting the error in Eclipse that XmlDocument.createXmlDocument(input, false); is undefined for the type XMLDocument.

Is there any thing wrong with the library?

or which library (jar file) i need to use.

currently i am having xml.jar.
also pls gimme the download path for the required jar for XML parsing.

thanks alot

regards,
Mahesh P
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML parsing has been part of the standard library since Java 1.4. The JAXP (Java Api for XML Processing) has long been refined to the point where you don't have to deal with anything like "com.sun.xml.tree.XmlDocument" directly.
So the most important question is - which version of Java are you using.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!