Skip to content
Snippets Groups Projects
Commit bf6a3203 authored by Andy Heninger's avatar Andy Heninger
Browse files

DOMPrint incorrectly handled DOCTYPE declarations conatining both

a public and system id.  Problem reported by Jesse Pelton.


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172383 13f79535-47bb-0310-9956-ffa450edef68
parent bea44c68
No related branches found
No related tags found
No related merge requests found
...@@ -650,17 +650,27 @@ ostream& operator<<(ostream& target, DOM_Node& toWrite) ...@@ -650,17 +650,27 @@ ostream& operator<<(ostream& target, DOM_Node& toWrite)
*gFormatter << XMLFormatter::NoEscapes << gStartDoctype *gFormatter << XMLFormatter::NoEscapes << gStartDoctype
<< nodeName; << nodeName;
DOMString id = doctype.getPublicId(); DOMString id = doctype.getPublicId();
if (id != 0) if (id != 0)
{
*gFormatter << XMLFormatter::NoEscapes << chSpace << gPublic *gFormatter << XMLFormatter::NoEscapes << chSpace << gPublic
<< id << chDoubleQuote; << id << chDoubleQuote;
id = doctype.getSystemId();
id = doctype.getSystemId(); if (id != 0)
if (id != 0) {
*gFormatter << XMLFormatter::NoEscapes << chSpace
<< chDoubleQuote << id << chDoubleQuote;
}
}
else
{ {
*gFormatter << XMLFormatter::NoEscapes << chSpace << gSystem id = doctype.getSystemId();
<< id << chDoubleQuote; if (id != 0)
{
*gFormatter << XMLFormatter::NoEscapes << chSpace << gSystem
<< id << chDoubleQuote;
}
} }
id = doctype.getInternalSubset(); id = doctype.getInternalSubset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment