[YANGTOOLS-802] Implement DOMWrappingXMLStreamReader in yang-data-codec-xml Created: 28/Jul/17 Updated: 10/Apr/22 Resolved: 30/Jul/17 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Igor Foltin | 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: | 8906 |
| Description |
|
XMLInputFactory.createXMLStreamReader(Source) accepts only StreamSource. In order to migrate downstream projects (netconf/restconf and controller) to the new XML parser (residing in yang-data-codec-xml) we need a DOMSource parsing XMLStreamReader. Thus, we need to create an implementation of XMLStreamReader which will accept and parse DOMSource XML representation. |
| Comments |
| Comment by Igor Foltin [ 30/Jul/17 ] |
|
Actually, we ended up extending the org.codehaus.stax2.ri.dom.DOMWrappingReader. |