G
Guest
http://support.microsoft.com/default.aspx?scid=kb;en-us;815658
The page above solved all of my problems with one exception. When the file
has strange data in it, possibly Japanese, I get the following error:
System.Xml.XmlException: '☼', hexadecimal value 0x0F, is an invalid
character. Line 8, position 18.
at System.Xml.XmlScanner.ScanContent()
at System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities()
at System.Xml.XmlTextReader.Read()
at main(Int32 argc, SByte** argv) in
c:\work\xml_reader\xml_reader.cpp:line 74
This error comes from while (reader->Read()) command, so although I have
#define _UNICODE and changed my char to wchar_t, still getting the error.
Leads me to believe the XmlTextReader is not set up to read unicode.
How would I fix this?
Many, many thanks for your help!!! <Exasperated>
The page above solved all of my problems with one exception. When the file
has strange data in it, possibly Japanese, I get the following error:
System.Xml.XmlException: '☼', hexadecimal value 0x0F, is an invalid
character. Line 8, position 18.
at System.Xml.XmlScanner.ScanContent()
at System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities()
at System.Xml.XmlTextReader.Read()
at main(Int32 argc, SByte** argv) in
c:\work\xml_reader\xml_reader.cpp:line 74
This error comes from while (reader->Read()) command, so although I have
#define _UNICODE and changed my char to wchar_t, still getting the error.
Leads me to believe the XmlTextReader is not set up to read unicode.
How would I fix this?
Many, many thanks for your help!!! <Exasperated>