Open zacharylayne opened 1 year ago
Tagging subscribers to this area: @dotnet/area-system-xml See info in area-owners.md if you want to be subscribed.
Author: | zacharylayne |
---|---|
Assignees: | - |
Labels: | `untriaged`, `Pri3`, `area-System.Xml` |
Milestone: | - |
The XmlReader.MoveToContent Method page has example code line: 3465 that can throw the exception
System.Xml.XmlException
.This can happen when using a reader that has its conformance level set to document OR reusing a reader initialized with conformance level set to auto.
The example should demonstrate using a reader with
Settings.ConformanceLevel
set toConformanceLevel.Fragment
. The code will then "handle the following inputs without breaking".This was tested with the following code: