kirtana subramanian wrote:
> does an xml parser provide mapping of the xml elements
> /objects to a database??
No. This is the role of products layered on top of the parser. For a
list of such products, see:
> if not what is the role of an xml parser??
It parses the XML document and returns information (element and
attribute names, text, comments, etc.) about that document to the
application. Most parsers return information as a tree of DOM objects or
a series of SAX events. Other forms are possible. For example, some
parsers build a tree of JDOM objects (similar to DOM, but optimized for
Java). Others have proprietary events.
Finally, there is nothing to stop you from writing a specialized parser,
such as one that does what you want (provide mapping of the xml elements
to the database). However, very few people do this since it's easier to
build your application on top of an existing parser.