Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...