[xml] parseDoc stripping namespace?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, all.

It seems that libxml2.parseDoc(str) strips the namespace of the xml it
uses to build a DOM tree.

Is this intended behaviour? If so, is there a way to turn it off? I need
those namespaces to remain intact.

Or, if parseDoc is the wrong thing to use (I have a string which
contains valid XML, and I want a DOM node out of it), then I'd be more
than happy to switch to a different function.


Thanks!
~  cf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFATYfEoaQ1/feGlJoRAu0KAJ0ZazP4mZLURAycmoNUQKhKNmvlfACfQGv2
+VOn7OkUW0s+nO1Ku/OeJZs=
=TxBC
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]