Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1762

Implementation for XML DOM documents, a new method 'isEqualNodeWithQName' similar to 'isEqualNode' to compare two XML element nodes

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.2
    • 2.12.3
    • DOM (Level 3 Core)
    • None

    Description

      There's a need for XalanJ's XPath 3.1 fn:deep-equal's method implementation, to have XercesJ's java class org.apache.xerces.dom.ElementImpl provide a new method (with name like 'isEqualNodeWithQName'), that can check equality of two XML element nodes only on following criteria : localName and namespaceUri.

      The XML DOM standard node comparison method 'isEqualNode' does few extra checks wrt node's name (majorly, that XML node's nodeName i.e prefix:localName and also prefix have to be same for two equal XML element nodes) that is not suitable for what XPath 3.1 fn:deep-equal method requires.

      Attachments

        Activity

          People

            mukul_gandhi Mukul Gandhi
            mukul_gandhi Mukul Gandhi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: