If I use
xmlCommand.ReadToFollowing("A")
valueA = xmlCommand.ReadElementContentAsString
xmlCommand.ReadToFollowing("B")
valueB = xmlCommand.ReadElementContentAsString
If there is no Element A then I get a
The ReadElementContentAsString method is not supported on node type None. Line 0, position 0
Which makes sense, since it didn't find it
the ReadToFollowing returns a boolean whether it found the element or not, so I could check before I try to assign a value, but it looks like the reader reads all the way to the end looking for it and I still want to get value B even if A is not there. Is there some way to reset the reader to read from the beginning, or should I ditch XmlReader altogether?