|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi there,
i have an xml document which i can't seem to open. i can open as a text file and view contents but it gives an exception that an invalid character exists in the document. the error prompted when i try to use Internet explorer to read the contents: An invalid character was found in text content. Error processing resource 'file:///C:/TestImages/Berkeley Images/Metadata/M... <Facet id="710" name="Golden Bear Caf when i use other apps to open it, i get a similar error stating that an invlaid character exists. Is it the spaces in between the words that causes the error. can anyone help. i need to open the xml files as a XSL or XSD. cheers Bytefx |
|
#2
|
|||
|
|||
|
That wouldn't be the "Golden Bear Café" would it? I'd guess that if the XML contains an "é" character then the parser will puke over it. Try replacing it with the proper HTML Entity reference - probably & #233; or & #234; (without the space after the &, those are there so the numbers display properly in this post)
For a good explanation of why this happens see http://www.w3schools.com/xml/xml_encoding.asp |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > issue with reading conents of an XML document |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|