On Wed, Apr 22, 2009 at 6:21 PM, Michael Cronenworth <[email protected]>wrote:

> -------- Original Message --------
> Subject: Re: [xml] how-to ignore entities in text?
> From: Liam R E Quin <[email protected]>
> To: Michael Cronenworth <[email protected]>
> 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
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to