Duplicate Namespace Declaration in XML

E

echoharger

Hello,

I have two XML files. File#1 has a namespace. File#2 does not.
I am storing some XML from File#1 in File#2, therefore, the node has a
namespace attribute.

Later, I remove the node from File#2 and append it back to File#1. The
node keeps it's namespace attribute even though File#1 has a default
namespace of equal value.

The problem is, the software that reads File#1 is refusing to read the
file with the extra namespace tags, even though the tags have the same
value.

Can anyone help me figure out how to get around this problem?
Many Thanks.
 
K

Kenneth Stephen

Hello,

I have two XML files. File#1 has a namespace. File#2 does not.
I am storing some XML from File#1 in File#2, therefore, the node has a
namespace attribute.

Later, I remove the node from File#2 and append it back to File#1. The
node keeps it's namespace attribute even though File#1 has a default
namespace of equal value.

The problem is, the software that reads File#1 is refusing to read the
file with the extra namespace tags, even though the tags have the same
value.
Hi,

You need to show us the actual XML snippets for us to be sure, but from
what you say, the XML is conforming to spec and the software is not.

Regards,
Kenneth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top