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

Add a minimalistic XML tree implementation

    XMLWordPrintable

Details

    • New Feature
    • Status: Confirmed
    • Medium
    • Resolution: Unresolved
    • None
    • 13.0.2
    • codecs, common, data-api

    Description

      YANG's anydata is defined to be an YANG-modeled data formatted in transport encoding. We are using DOMSource to represent this data.

      This is less than optimal, simply because DOMSource leaks Document/Element, both of which are mutable.

      in both JSON and XML codecs, when we are dealing with a forward reference, we store encountered events into a String and re-parse them.

      Both of these would do better if we had an object model for anydata contents. Once we have that, we can act it for buffering purposes.

      Once we do, there is little doubt where AnydataNode is going: it is going to be unconditionally based on this internal object model.

      Steps to completion:
      1. Introduce a bare-minimum model of what constituates YANG-modeled XML data,
      2. Define an anydata/anyxml representation nodes.
      3. add binfmt support
      4. add DOMSource -> XYZDocument translation

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated: