You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Jonas Munk <jo...@stofanet.dk> on 2004/01/11 11:03:06 UTC
Serializing a DOM-document with Namespaces
Hey guys
I have a problem converting a DOM document into a string with
namespaces.
Now I use XMLSerializer while setting the .setNamespaces(true).
But this has been deprecated. Any suggestions for a better way (and
more standards compliant / common API interface).
First post :-)
Yours Jonas
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Serializing a DOM-document with Namespaces
Posted by Neil Delima <nd...@ca.ibm.com>.
Jonas Munk <jo...@stofanet.dk> wrote on 01/11/2004 05:03:06 AM:
>
> I have a problem converting a DOM document into a string with
> namespaces.
>
> Now I use XMLSerializer while setting the .setNamespaces(true).
>
> But this has been deprecated. Any suggestions for a better way (and
> more standards compliant / common API interface).
>
You could try DOM Level 3 LS[1] LSSerializer and with the "namespaces"
parameter [2] set to true [default].
[1]
http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS-LSSerializer
[2]
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#parameter-namespaces
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org