-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I am just creating this issue to see if this is something you would be interested in. XmlReader
has the ReadSubtree method which returns a new child reader that is meant for reading the current node and it's descendents while syncing with the parent reader. The one nice thing about this is that it prevents the child reader from going outside of the current node, which would be useful in case there are any major changes to the XML
For example if you take the below example and call ReadSubtree
on <child>
it will be impossible for the child reader to go past </child>
and if something were to happen and it doesn't get to </child>
when it's disposed it will move the parent reader to </child>
.
<parent>
<child>
<item />
<item />
<item />
</child>
</parent>
Metadata
Metadata
Assignees
Labels
No labels