• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

what is parser in xml

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know what is parser in Xml ?.Is it remove tags from a html file as we use stringtokenizer to remove . / from urls.
I only know that we can make our own tags and can define thier properties/data types .
How I should relate basic xml with java.
Is java and xml by brett mclaughlin is for beginners ?

jaideep
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An XML parser is a piece of software which helps your program to understand XML. The parser reads the text form of an XML document into some internal form, directly accessible by your Java code. For more details about the types of parsers, see the following post: http://www.javaranch.com/ubb/Forum31/HTML/000077.html
I know that "Java and XML" by Brett McLaughlin has received some good reviews, although I haven't read it myself. I think it should be helpful if you are a beginner at XML, but does require some Java knowledge.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two types of documents in XML.
1. well-formed (follows specific set of rules)
2. valid(if the document matches the constraints listed in DTD)
NOW.....
An XML parser reads the document and verifies that it is well formed. It also converts the document into a tree of elements.
Hope this helps....
 
Whatever you say buddy! And I believe this tiny ad too:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!