You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2003/04/08 21:12:47 UTC

DO NOT REPLY [Bug 18832] New: - DOMWriter doesn't perform namespace fixup even if documentation says so

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18832>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18832

DOMWriter doesn't perform namespace fixup even if documentation says so

           Summary: DOMWriter doesn't perform namespace fixup even if
                    documentation says so
           Product: Xerces-C++
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: alby@exceloncorp.com


If we have an XML file like this

<a:root xmlns:a="http://www.example.org">
  <a:item/>
</a:root>

and we parse it (with namespace support on), then call

DOMWriter* writer = DOMImplementation::getImplementation()->createDOMWriter();
XMLCh* serializedForm=writer->writeToString(*node);

where "node" points to the <a:item> node, the resulting string is this invalid 
XML:

<a:item/>

instead of the expected

<a:item xmlns:a="http://www.example.org"/>

I am attaching a patch that should implement the namespace fixup

Alberto

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org