How to load an XML file in C#.Net (by ignoring ':' )

May 19 2009 5:11 AM
Hi, I tried several ways to load the below format XML file.
Every time I was unsuccessful,

the error shown to me is:
The ':' character, hexadecimal value 0x3A, cannot be included in a name. Line 2, position 6.
System.Exception {System.Xml.XmlException}

I could get the problem where it occured. It is due to ':' in the second line.
But my file should be of that format only, where this couldnot be changed.

Please help me to load this file successfully and make my task functioning....

Thanks in advance....



Below is the XML file formatwhich was loaded by me:
*********************************
<?xml version="1.0"?>
<?xml:stylesheet type="text/xsl" href="https://xyz.sdsdasas.com/CustomerDetails.xsl"?>
<Customer>
<CustomerDetails>
.....
....
...
</CustomerDetails>
</Customer>
**************************

Answers (2)