RE: [xml] converting & to &
- From: "Jesse Pelton" <jsp PKC com>
- To: <michel erard besonet ch>
- Cc: <xml gnome org>
- Subject: RE: [xml] converting & to &
- Date: Wed, 14 Apr 2004 07:55:24 -0400
The XML spec (which is highly recommended reading if you're going to use
XML; see http://www.w3.org/TR/2004/REC-xml-20040204) specifies what
characters must be escaped and when in section 2.4. Ampersand is not
the only such character. Rather than tell you what else needs escaping,
I refer you to the spec.
-----Original Message-----
From: xml-admin gnome org [mailto:xml-admin gnome org] On
Behalf Of Peter Jacobi
Sent: Wednesday, April 14, 2004 7:33 AM
To: michel erard besonet ch
Cc: xml gnome org
Subject: Re: [xml] converting & to &
Hi Mike,
I'm not that clear, whether you are referring to generating
or reading XML
files with libxml. Perhaps you should attach small samples.
I don't know SAX very well (you'll see ;-)) and have now a
problem with the
character "&". This getting parsed to "&" in my XML
file. Is there a
possibility to disable this funcionality? In my application
it is important
that the parser writes the original sign, because the file
is readed by a
Cobol-Program which I cannot modify.
If your data contains "&" and the resulting XML file contains
"&" you do have a problem. It is supposed to be handled in
this way and you cannot change it without violating the XML REC.
If for heaven's sake you need a file which looks somewhat like
an XML file but contains naked "&" characters to please the
COBOL app, you can perform a global search and replace
/&/&/
Regards,
Peter Jacobi
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]