xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard <wron...@gmail.com>
Subject importNode missing namespace
Date Fri, 13 Mar 2009 04:20:42 GMT
Hi, I got such problem with importNode, when try to import a Node from one
Document into another.


DocumentA
<?xml version='1.0' encoding='utf-8'?><m:root
xmlns:m='TEST'><m:s>TEST</m:s></m:root>
DocumentB:
<?xml version='1.0' encoding='utf-8' ?><n:root
xmlns:n='TEST'><n:t>TEST</n:t></n:root>

I try to import m:s in DocumentA into DocumentB, and replace n:t Node

expected:
<?xml version='1.0' encoding='utf-8' ?><n:root
xmlns:n='TEST'><n:s>TEST</n:s></n:root>

but the result was:
<?xml version='1.0' encoding='utf-8' ?><n:root
xmlns:n='TEST'><m:s>TEST</m:s></n:root>


Can somebody tell me why?

Mime
View raw message