[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 |
||
| 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: Migration of other netconf components: |
| Comment by Igor Foltin [ 27/Jul/17 ] |
|
Currently, we transform Documents to Strings, so that we can pass them to 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: |