Closed ikorin24 closed 2 years ago
Describe the bug:
If there is a comment at the end of the xml, parsing will fail.
Environment:
library version: 1.6.0 .NET version: .NET6 OS: Windows10
Steps to Reproduce:
Execute the following code.
using var xml = XmlParser.Parse( @"<foo></foo> <!-- comment -->");
Expected behavior:
No errors.
Actual Behavior:
A FormatException is thrown. Message:
"(line 2, char 1): Xml does not have multiple root nodes."
Describe the bug:
If there is a comment at the end of the xml, parsing will fail.
Environment:
library version: 1.6.0 .NET version: .NET6 OS: Windows10
Steps to Reproduce:
Execute the following code.
Expected behavior:
No errors.
Actual Behavior:
A FormatException is thrown. Message: