You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Dietmar Hummel <hu...@treibauf.ch> on 2011/03/17 20:15:11 UTC

Working with XML namespaces

Hi all!

Hopefully you can help me with a little problem. We must read/write xml
files with xml namespaces.
If I try to create such a file the simple way by just creating tags of
the form <abc:root> will not work, because
xerces throws an exception if I try to serialize a document to disk
where the root node contains a colon.

But on the other hand I could'nt find any example code how to handle xml
namespaces (how to read and write
xml data)

Hopefully you can give me hint...

Regards
dietmar


Re: Working with XML namespaces

Posted by Vitaly Prapirny <ma...@mebius.net>.
Hi,
You could find some information in the DOMNSTests function of
the DOMMemTest test source file (DOMMemTest.cpp) from the
Xerces-C++ source distribution.

Good luck!
	Vitaly

Dietmar Hummel wrote:
> Hi all!
>
> Hopefully you can help me with a little problem. We must read/write xml
> files with xml namespaces.
> If I try to create such a file the simple way by just creating tags of
> the form<abc:root>  will not work, because
> xerces throws an exception if I try to serialize a document to disk
> where the root node contains a colon.
>
> But on the other hand I could'nt find any example code how to handle xml
> namespaces (how to read and write
> xml data)
>
> Hopefully you can give me hint...
>
> Regards
> dietmar
>