Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parser

 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic