[NETCONF-191] Remove use of org/opendaylight.yangtools.yang.data.impl.schema.transform from netconf components Created: 02/May/16  Updated: 15/Mar/19  Resolved: 02/Aug/17

Status: Resolved
Project: netconf
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Igor Foltin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5824

 Description   

The parser/serializer infrastructure in data.impl.schema.transform is deprecated, remove it from netconf components. The replacement lives in yang-data-codec-xml.



 Comments   
Comment by Igor Foltin [ 13/Jul/17 ]

Migration of EditConfig functionality:
https://git.opendaylight.org/gerrit/#/c/60014/

Migration of other netconf components:
https://git.opendaylight.org/gerrit/#/c/60250/

Comment by Igor Foltin [ 27/Jul/17 ]

Currently, we transform Documents to Strings, so that we can pass them to
XMLInputFactory.createXMLStreamReader(Reader) within a StringReader.

This affects performance badly, so it would be better to use DOMSource instead of String. However, the XMLInputFactory.createXMLStreamReader(Source) accepts only StreamSource.

Thus, we need to create an extension of XMLStreamReader which will accept and parse DOMSource XML representation.

Comment by Igor Foltin [ 30/Jul/17 ]

Fix with DOMSourceXMLStreamReader:

https://git.opendaylight.org/gerrit/#/c/60906/

Generated at Wed Feb 07 20:14:23 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.