Re: [xml] '' question
- From: Liam R E Quin <liam holoweb net>
- To: Marchese Stefano <stefano marchese sinedita it>
- Cc: xml gnome org
- Subject: Re: [xml] '' question
- Date: Wed, 06 Sep 2006 13:43:07 -0400
On Wed, 2006-09-06 at 15:50 +0200, Marchese Stefano wrote:
My application parses some xml files using the xmlParseFile() API.
This API gives an error if the file has the following content:
<content>AslURP</content>
As indeed it should, character 0x10 (hexadecimal, ie. decimal 16,
i.e. ASCII DLE, Data Link Escape, control-P) is not legal in XML 1.0
documents.
You can use XML 1.1 if your tools support it, but it's more likely
an error in the data. Maybe it's intended to be a newline, which
would be instead, or in hexadecmial 
, or maybe you have
a character set problem and it's supposed to be some accented
character, in which case you need to convert to UTF-8 (for example)
*before* escaping non-ascii characters.
Liam
--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Liam on the Web: http://www.holoweb.net/~liam/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]