xml parsing

kelphis

Member
Joined
Oct 4, 2005
Messages
10
I have a program that is reading xml from a file that has worked until today. It turns out that the file that I am now reading has changed the xml format to use : in the tag names.

<pv:MsgHdr>
<pvealerCode>444</pvealerCode>
<pv:AcctNbr>TESTDMS00000001</pv:AcctNbr>
</pv:MsgHdr>


im using XMLDocument.LoadXML(stream) to read it and i get an error.

is there a newer xml parser that can read this?
 
You will probably find the document is now either using a namespace when previously it wasnt or it is now no longer using it as a default namespace.
To confirm this check higher up in the document and within an opening element tag you should see something like
Code:
xmlns:pv=<something or other here, probably is a url>

Could you also post the error you are getting and any other relevant code as it makes it a lot easier to diagnose problems if the actual errors are given.
 
Back
Top