[YANGTOOLS-1523] Do not trim XML element text Created: 21/Jul/23 Updated: 05/Oct/23 Resolved: 05/Oct/23 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | codecs |
| Affects Version/s: | None |
| Fix Version/s: | 12.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
XmlParserStream trims the text reported in elements when parsing values. This makes the parser more lenient to malformed XMLs like <foo> 9</foo> for uint8, but it also applies a generally-invalid transformation on the data. Do not trim element content and require it to be well-formed. |