Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2182

Obsolete default namespace declaration when create element with default namespace URI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.2
    • None
    • DOM
    • None

    Description

      When qualified element with default namespace URI is created then xerces adds (obsolete) default namespace declaration to it.

      It looks like bug in `dom\impl\DOMLSSerializerImpl.cpp: line 891`
      namespaceMap->put((void*)attribute->getLocalName(),(XMLCh*)attribute->getNodeValue());
      should be:
      namespaceMap->put((void*)nsPrefix,(XMLCh*)attribute->getNodeValue());

      Attachments

        1. DOMLSSerializerImpl.cpp
          62 kB
          Peter Somora

        Activity

          People

            Unassigned Unassigned
            pjotrs Peter Somora
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: