aspose file tools*
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Parser" Watch "Parser" New topic
Author

Parser

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
Bartender

Joined: Jan 02, 2001
Posts: 783
Adrian,
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.
-Peter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parser