ANN: DOMParser

Tyler Baker tyler at infinet.com
Thu Sep 17 22:39:33 BST 1998


John Cowan wrote:

> Tyler Baker wrote:
>
> > Wouldn't this be better titled as a DOM Builder and a DOM Writer?
>
> I don't see why.  DOMParser is a SAX parser, just like any other,
> except that instead of reading an XML source file, it walks a DOM.
> It does not build a DOM, nor does it write anything.
>
> There is a similar module in SAXON, I believe, but not packaged as
> a SAX parser.

Sorry my confusion lies in that parsing refers to taking data of one unmanageable
form and converting it into a manageable form.  In other words, you cannot do
anything useful with an XML document until you parse it, all it is a set of bytes
that follow a particular pattern.  Parsing a DOM tree is an oxymoron IMHO unless
you are converting the DOM tree into some other tree.  I guess I would have to
take a closer look at what you have.  From second glance it seems as if what you
have are utility methods for searching and sorting a DOM tree.  In this case you
would have a DOM Manager...

Tyler


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list