Re: [xml-dev] Error and Fatal Error

From
Andrew Welch <>
To
David Carlisle <>
Date
2011-07-17T21:11:36Z
ID
<>
Thread
Re: [xml-dev] Error and Fatal Error
On 17 July 2011 21:42, David Carlisle <> wrote:
> On 17/07/2011 20:30, Stephen D Green wrote:
>>
>> because the XML content includes data input into textbox controls, etc
>> in a webpage and we do not want to prevent users inputing '<' and '&'
>
> but surly it's fairly trivial to do a string replace on all such input
> to change < and & to &lt; and &amp; a lot simpler (and more reliable) than
> suggesting the entire xml parsing model changes.

Yep, or better still put it through an xml serialiser...



-- 
Andrew Welch
http://andrewjwelch.com