| | |
what are the invalid characters for XML?
Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 95
Reputation:
Solved Threads: 4
Hi,
I have an xml document with the following line:
this xml document fails in IE7 and IE8 reporting invalid charcter at the E acute. However, FF3 is able to display it correctly.
Some online sources suggest that IE is correct in identifying the invalid character.
Can anyone confirm whether this behavior is XML standard? What are the invalid characters for XML?
I have an xml document with the following line:
XML, XSLT and XPATH Syntax (Toggle Plain Text)
<title><![CDATA[HOME & DÉCOR]]></title>
this xml document fails in IE7 and IE8 reporting invalid charcter at the E acute. However, FF3 is able to display it correctly.
Some online sources suggest that IE is correct in identifying the invalid character.
Can anyone confirm whether this behavior is XML standard? What are the invalid characters for XML?
Last edited by jakesee; Jun 28th, 2009 at 10:50 am.
•
•
Join Date: Jul 2008
Posts: 95
Reputation:
Solved Threads: 4
Ok, I know what is wrong now,
The reason is because XML defaults to UTF-8 encoding when the encoding is not specified. This requires that the original xml file be written and saved as UTF-8 format, otherwise, the IE parser will report it as invalid character. If the XML file is encoded in another format, then it must be specified in the XML declaration.
But I have another question. my error XML file was written in Notepad++ and the encoding was in ANSI. But, the parser doesn't seem like allow "ANSI" as encoding. So which of the ISO-88xx-x encoding does "ANSI" correspond to?
The reason is because XML defaults to UTF-8 encoding when the encoding is not specified. This requires that the original xml file be written and saved as UTF-8 format, otherwise, the IE parser will report it as invalid character. If the XML file is encoded in another format, then it must be specified in the XML declaration.
But I have another question. my error XML file was written in Notepad++ and the encoding was in ANSI. But, the parser doesn't seem like allow "ANSI" as encoding. So which of the ISO-88xx-x encoding does "ANSI" correspond to?
•
•
Join Date: Apr 2009
Posts: 44
Reputation:
Solved Threads: 2
mozilla browser eg firefox sarfari netscape knows
many sign eg É
for IE in xsl set
no working with cdata
use &# ;
http://www.ascii.cl/htmlcodes.htm
Helmut Hagemann
many sign eg É
for IE in xsl set
XML, XSLT and XPATH Syntax (Toggle Plain Text)
<xsl:output method="xml" indent="yes" encoding="utf-16"/>
no working with cdata
use &# ;
http://www.ascii.cl/htmlcodes.htm
Helmut Hagemann
Last edited by xml_looser; Jun 29th, 2009 at 12:42 am.
•
•
Join Date: Apr 2009
Posts: 44
Reputation:
Solved Threads: 2
•
•
•
•
Ok, I know what is wrong now,
The reason is because XML defaults to UTF-8 encoding when the encoding is not specified. This requires that the original xml file be written and saved as UTF-8 format, otherwise, the IE parser will report it as invalid character. If the XML file is encoded in another format, then it must be specified in the XML declaration.
But I have another question. my error XML file was written in Notepad++ and the encoding was in ANSI. But, the parser doesn't seem like allow "ANSI" as encoding. So which of the ISO-88xx-x encoding does "ANSI" correspond to?
http://documentation.softwareag.com/...g/xphttpen.htm
![]() |
Similar Threads
- Invaild Characters (ColdFusion)
- Python And XML (Python)
- using non-english charcters in xml files (PHP)
- how to implement validations for chinese characters (C#)
- Determining Invalid Characters in a String?? (C)
- Handling Invalid User Input? (C)
- inserting a size (PHP)
- php script (PHP)
- script problem adding to database (PHP)
- CF 6.1 problems..Junior Programmer - NEED HELP! (ColdFusion)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: xslt help for links in html
- Next Thread: Trouble finding correct Xpath ...
| Thread Tools | Search this Thread |
api blogger blogging code delete development dynamiccreationofnvariablesinxslt error firstthreecharacterofastringrequired flipbook gdata google html include java link linspire linux microsoft news node openoffice overwrite precedence programming rss standards swf template transform variable w3c web xml xmlnotloading xmlonserver xsl xslt





