kelphis Posted July 13, 2006 Posted July 13, 2006 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? Quote
Administrators PlausiblyDamp Posted July 13, 2006 Administrators Posted July 13, 2006 You will probably find the document is now either using a namespace when previously it wasn't 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 xmlns:pv= 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.