Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
2.2.0
-
None
-
Operating System: Other
Platform: All
-
18856
Description
The code at the URL http://xml.apache.org/xerces-c/program-dom.html#DOMBuilder
do not compile. The reason is very trivial, but however i decided to signal it
as a very small contribution to the project.
The problem is at the lines:
if (parser->canSetFeature(XMLUni::fgDOMValidation, true)
parser->setFeature(XMLUni::fgDOMValidation, true);
if (parser->canSetFeature(XMLUni::fgDOMNamespaces, true)
parser->setFeature(XMLUni::fgDOMNamespaces, true);
if (parser->canSetFeature((XMLUni::fgDOMDatatypeNormalization, true)
parser->setFeature(XMLUni::fgDOMDatatypeNormalization, true);
where the correct code should be like that:
if (parser->canSetFeature(XMLUni::fgDOMValidation, true))
parser->setFeature(XMLUni::fgDOMValidation, true);
if (parser->canSetFeature(XMLUni::fgDOMNamespaces, true))
parser->setFeature(XMLUni::fgDOMNamespaces, true);
if (parser->canSetFeature(XMLUni::fgDOMDatatypeNormalization, true))
parser->setFeature(XMLUni::fgDOMDatatypeNormalization, true);