Skip to content

XmlReader - ReadSubtree #98

@7H3LaughingMan

Description

@7H3LaughingMan

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions