Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

XML Entity problem

Question posted by: David (Guest) on June 27th, 2008 07:20 PM
Hi,

I am still new to XML and thought I had my solution written, but during the
rollout, we have come up with a problem with actual XML coming in (as
opposed to our test XML).

Some character entities have been transmitted unexpectedly.
' and <

I am loading my XML with XmlDocument, just by
XmlDocument xDoc = new XmlDocument();

xDoc.Load(IncomingFilePath + e.Name);

e is an incoming Fileinfo. My XML does not have any declaration at the top
for a DTD.

I always thought ' and < were understood, but obviously not.

The first line of my incoming XML is <?xml version="1.0" encoding="UTF-8"?>
then it goes straight into the data.

How do I allow my XML document to load and be worked on?

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available


Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
David's Avatar
David
Guest
n/a Posts
June 27th, 2008
07:20 PM
#2

Re: XML Entity problem
Ah,

It looks like it was a prob with the incoming XML. The entities were coming
through as uppercase, which caused probs.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available


"David" <david.colliver.NEWS@revilloc.REMOVETHIS.comwrote in message
news:uma9KiQqIHA.1736@TK2MSFTNGP04.phx.gbl...
Quote:
Originally Posted by
Hi,
>
I am still new to XML and thought I had my solution written, but during
the rollout, we have come up with a problem with actual XML coming in (as
opposed to our test XML).
>
Some character entities have been transmitted unexpectedly.
&apos; and &lt;
>
I am loading my XML with XmlDocument, just by
XmlDocument xDoc = new XmlDocument();
>
xDoc.Load(IncomingFilePath + e.Name);
>
e is an incoming Fileinfo. My XML does not have any declaration at the top
for a DTD.
>
I always thought &apos; and &lt; were understood, but obviously not.
>
The first line of my incoming XML is <?xml version="1.0"
encoding="UTF-8"?>
then it goes straight into the data.
>
How do I allow my XML document to load and be worked on?
>
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
>




 
Not the answer you were looking for? Post your question . . .
184,042 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors