File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 13037
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
I agree. Here's the link:
subject: Parsing xml file
It's not a secret anymore!