SAXParserFactory.newDefaultInstance() namespace aware disabled by default

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      XMLReaderFactory.createXMLReader() is deprecated and namespace aware enabled by default, if replace to SAXParserFactory.newDefaultInstance().newSAXParser().getXMLReader() namespace aware was disabled, why?

      According to the document
      http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description

      Feature by ID "http://xml.org/sax/features/namespaces" must be enabled by default but javadoc on "setNamespaceAware" in "javax.xml.parsers.SAXParserFactory" match:
      "Specifies that the parser produced by this code will provide support for XML namespaces. By default the value of this is set to false."

      FREQUENCY :
      ALWAYS

            Assignee:
            Joe Wang
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: