W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: Maybe someone can tell us

From: Fabio Gurgone <gurgone@txt.it>
Date: Wed, 13 Jun 2001 12:11:56 +0200
Message-ID: <012301c0f3f1$4b748810$6b1110ac@txtmi00>
To: <www-dom@w3.org>

> why the DOM version 1 didn't specify a means of getting the actual XML out
> of the DOM document.

DOM hasn't  the opposite method ( XML(String) --> DOM  or XML(File) --> DOM)
like to do this you need a parser (and it isn't into the DOM specification)
to "serialize" a DOM tree you need a DOM Serializer

Usually parsers have both of this features (XercesJ...for instance).
Another important think is that DOM serialization is implementation
independent - Xerces serialization use the tree at Document-Element level.

btw, serialization is easy to do.

    Fabio Gurgone
Received on Wednesday, 13 June 2001 06:09:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC