Open Geograph-us opened 2 years ago
not currently, I imagine one would need logic to write missing tokens and skip skipped tokens
A while back I was trying to figure out how to use the API for this scenario as well: https://github.com/michael-hawker/XmlSyntaxVisualizerUWP/blob/e8f28aa8487a69627b25c8d76a8230d1f5270e7a/XmlParserHelpers.cs
Didn't realize the tree was immutable at first, so was only getting part of it back; though my approach is working better here than remember. Seems like I may want to look for valid trees within the invalid one to re-attach higher to save more 'valid' content.
@KirillOsenkov any tips/advice for easier APIs/approaches with the existing API set would be great.
Unfortunately I don't have much to offer you, if you have looked at this you probably already know more than me about this!
XmlParser can open invalid or broken XML-files. Is it possible to save it as valid XML-file?