• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Parser  RSS feed

 
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?
 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!