Duplicate Namespace Declaration in XML

echoharger

Usenet Archive
Joined
Dec 7, 2004
Messages
3
Reaction score
0
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.
 

Kenneth Stephen

Usenet Archive
Joined
Dec 29, 2003
Messages
36
Reaction score
0
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
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top