Duplicate Namespace Declaration in XML

Discussion in 'XML' started by echoharger@core.com, Dec 7, 2004.

  1. Guest

    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.
    , Dec 7, 2004
    #1
    1. Advertising

  2. Guest

    P.S. I am using DOM in a VB6 application.
    , Dec 7, 2004
    #2
    1. Advertising

  3. Guest

    P.S. I am using DOM in a VB6 application.
    , Dec 7, 2004
    #3
  4. wrote:

    > 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
    Kenneth Stephen, Dec 8, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TWljaGVsbGUgU3RvbmU=?=

    Duplicate declaration of member Locale (many such messages)

    =?Utf-8?B?TWljaGVsbGUgU3RvbmU=?=, Apr 25, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    415
    =?Utf-8?B?TWljaGVsbGUgU3RvbmU=?=
    Apr 25, 2004
  2. Tjerk Wolterink
    Replies:
    6
    Views:
    1,192
    David Carlisle
    Dec 7, 2004
  3. =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=

    xsd.exe duplicate class declaration

    =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=, Jul 24, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    732
    =?Utf-8?B?TWlndWVsIElzaWRvcm8=?=
    Jul 24, 2006
  4. UT-BadBoy
    Replies:
    0
    Views:
    401
    UT-BadBoy
    Sep 10, 2007
  5. mdh

    Duplicate Header Declaration

    mdh, Jul 21, 2008, in forum: C Programming
    Replies:
    8
    Views:
    303
Loading...

Share This Page