Hi,
you need to use functionality that has not yet been implemented.
The DOMWriter should sort out namespaces for you. There is also a method
called NormalizeDocument on Node that will do this (again not
implemented). I believe I have some quite horrible code lying around
somewhere that sorts out namespace issues. It would only work with the old
model, but it should not be to hard to change. Give me a shout if you want
it and Ill have a look.
cheers
Gareth
On Tue, 5 Nov 2002, Philippe HAUTION wrote:
> Hello,
>
> We are trying to serialize an in-memory DOMDocument with a DOMWriter
> into a MemBufFormatTarget (Xerces 2.1.0).
> This used to work fine for the tests, when we didn't use namespaces, but
> now we do and the resulting string can't be parsed again since the
> writer doesn't generate the "xmlns" attribute for the root element.
>
> Is there a way to correct this behaviour ?
>
> Regards,
>
>
--
Gareth Reakes, Head of Product Development
DecisionSoft Ltd. http://www.decisionsoft.com
Office: +44 (0) 1865 203192
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]