This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Parsing xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Parsing xml file " Watch "Parsing xml file " New topic

Parsing xml file

Ajay Singh
Ranch Hand

Joined: Jan 04, 2008
Posts: 105

I want to parse an xml file using just the inbuilt java parser and not using any api/library(like dom) ,is this possible.please reply

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
Of course it is possible, the standard java distribution is loaded with XML related classes, including parsers. Harold's XML book is all on line , there are plenty of web tutorials, and the JavaDocs will give you a good start.

Sandeep Murthy
Ranch Hand

Joined: Oct 05, 2005
Posts: 34

I'm not very clear about what is meant by �inbuilt java parser�.

As far as I know, since 1.4, java has an inbuilt API called JAXP � Java API for XML processing.
JAXP contains DOM and SAX parsing interfaces.

So, as long as you are using DOM or SAX, you are effectively using inbuild Java API for parsing.
[ July 28, 2008: Message edited by: Sandeep Narasimhamurthy ]

SCJP 1.4
Consider Paul's rocket mass heater.
subject: Parsing xml file
Similar Threads
java heap memory usage
representing as XML
displaying image in any browser using xsl
Annotation in spring