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

Example code do not compile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • Documentation
    • 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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            guido.gagliardi@ge.infn.it Guido Gagliardi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: