Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-929

Change the definition of AnyXmlNode to not use DOMSource

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Done
    • Icon: Medium Medium
    • 5.0.0
    • None
    • data-impl
    • None

      The design on AnyXmlNode requires users to perform some sort of translation to a DOMSource. Most of them are doing this eagerly, resulting in needless translations - such as NETCONF performing NormalizedNode -> DOM streaming for the purposes of creating a NormalizedNode structure.

      Furthermore default org.w3c.DOM implementation is mutable, which does not sit well with immutable design of NormalizedNode.

      Design a DOMSource-like extension mechanism, which allows an AnyXmlNode to be queried/ for its content in various (externally-defined) interfaces. For example YangModeledAnyXmlNode would expose the underlying schema via an accessor interface - potentially even pre-constructed NormalizedNode.

      Finally this has a tie-in with YANGTOOLS-777, as AnyDataNode should use the same extension mechanism.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: