-1

hi,
i am using XmlTextReader class to read xml from http link ,now my problem is that i want to replace the special characters(•) from xml before reading its tag, coz it is giving the error in XmlTextReader reader.Read() method.

Please suggest any solutions to this.

Thanks in advance,
Ashish

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by ashu2409
0

the problem is also cuming with stream reader, it is taking too much time and consuming

memery in GBs,

when i read xml through xmlreader.read, it gives error on this line.

Invalid character in the given encoding. Line 2796, position 348.

the invalid characters are in <Aboutus> tag.

the following exception i m getting on IE,

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the

Refresh button, or try again later.


--------------------------------------------------------------------------------

An invalid character was found in text content. Error processing resource

'http://www.healthjobsusa.com/ahc-out/HJS.xml'. ...

<Aboutus>CareerStaff Unlimited, a division of Sun Healthcare Group, provides

healthcare professionals with tempor...


strange thing is that when i create a sample xml with those special characters on my http

server it is working fine, no error is there.

Is there any way to find/solve it,Please help me.......

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.