You can even validate against a schema, if you had one (one of the things you can use XMLReaderSettings for).
But you never actually set any XMLreader settings, which is beginning to make me think that much of this looks like cut'n'pasted code from multiple sources without really knowing what the code is doing
You might want to examine the documentation for XMLReaderSettings and fore XML schemas
And you have guessed right: this test POStart.XML (that I "inherited" from my predecessor) was a kind of header (or template of a sorts) for a real test XML. And it has no closing tags for the 1st several levels... coz there's POEnd.XML with all these closing tags. And the test data is supposed to be "sandwiched" between these former two.
This my predecessor read it with System.IO.File.OpenText()/While Peek()/ReadLine()/Close(), and I am trying to read it with XmlReader... (Doh!)
"You can always count on Americans to do the right thing - after they've tried everything else." (Sir W. Churchill, I presume? ;-) )
Apparently, I haven't tried everything else... yet!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.