You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Badie Garzaldeen <ba...@gmd.de> on 2001/06/19 14:59:19 UTC

documentation for the class org.apache.crimson.tree.XmlDocument

Hello,

I am using the class org.apache.crimson.tree.XmlDocument to make an xml
file persistent (write)and to set the DTD (setDocType), but I would have
the documentation of this class, because the setDocType-Method does not
work well.
Thanks.

Sincerely,

Badie Garzaldeen

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: documentation for the class org.apache.crimson.tree.XmlDocument

Posted by Edwin Goei <ed...@sun.com>.
Badie Garzaldeen wrote:
> 
> Hello,
> 
> I am using the class org.apache.crimson.tree.XmlDocument to make an xml
> file persistent (write)and to set the DTD (setDocType), but I would have
> the documentation of this class, because the setDocType-Method does not
> work well.

I'm not quite sure what you are asking, but using the public XmlDocument
methods is discouraged because it makes your app dependent on the
crimson parser.  Also, those methods are there for backward compatiblity
and are not really being maintained.  One way to marshal/serialize a DOM
is to use the jaxp.xml.transform package with an identity transform from
a DOMSource to a StreamResult object.  See the docs on Xalan-j for more
info.

-Edwin

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org