Re: [xml] how-to ignore entities in text?





On Wed, Apr 22, 2009 at 6:21 PM, Michael Cronenworth <mike cchtml com> wrote:
-------- Original Message --------
Subject: Re: [xml] how-to ignore entities in text?
From: Liam R E Quin <liam holoweb net>
To: Michael Cronenworth <mike cchtml com>
Date: 04/22/2009 11:15 AM


No, you need to escape it, e.g. &#38; or &amp;
Similarly for < (&lt;)

An XML processor is not allowed to claim that a file
with errors in it like this is XML.

Liam


Yes, that was my understanding, but the XML I have received (business) contains bad "&" characters inside of XML tags. I guess I will argue to get them changed. Thanks!

If they don't want to escape entities ask them to at least use a CDATA section for the password:
<password><![CDATA[e$az_3{&dpp]]></password>

Point them to wikipedia for more details (see http://en.wikipedia.org/wiki/CDATA).

--
Emmanuel Rodriguez


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]