Utils
  1. Utils
  2. UTILS-10

DomUtils should always perform namespace aware parsing

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.7
    • Labels:
      None

      Description

      the read() method of DomUtils uses the default DocumentBuilderFactory which is not namespace aware.
      Both read() and readAndValidate() should delegate to the same method for obtaining a namespace aware factory.

        Activity

        Hide
        Erik Brakkee added a comment -
        Now using the dom level 3 API for parsing. Also extended the test case to verify namespace awareness.

        The readAndValidate() method must still be tested.

        Removed the dependencies on dom4j and jaxen entirely from the code. Turned out that conversion from Dom to Dom4j was not namespace aware.
        Show
        Erik Brakkee added a comment - Now using the dom level 3 API for parsing. Also extended the test case to verify namespace awareness. The readAndValidate() method must still be tested. Removed the dependencies on dom4j and jaxen entirely from the code. Turned out that conversion from Dom to Dom4j was not namespace aware.
        Hide
        Erik Brakkee added a comment -
        Added tests for readAndValidate() as well as for non-wellformed XML.
        Show
        Erik Brakkee added a comment - Added tests for readAndValidate() as well as for non-wellformed XML.

          People

          • Assignee:
            Erik Brakkee
            Reporter:
            Erik Brakkee
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: