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 Parser 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 "Parser" Watch "Parser" New topic


Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Can someone please explain the details of a XML parser? I know that it make a raw XML document available for application. I was wondering the generic interpratation of a parser. Is it like a compiler?
Peter Tran

Joined: Jan 02, 2001
Posts: 783
To answer your question is an XML parser like a compiler? Yes and no. Yes, because a compiler contains a parser component to parse the source file. No, because a compiler also contains another component that takes the parsed token and converts them to bytecode (JAVA) or machine code (C/C++). An XML parser doesn't have any such component. It doesn't do anything with the parsed token from your XML document. It doesn't know what to do with them. Only you as the programmer know what you're going to do with the parsed XML document token.
I agree. Here's the link:
subject: Parser
It's not a secret anymore!