[Home] [By Thread] [By Date] [Recent Entries]


>> Make sure you replace the '&' character first, as
>> you will run into ugly
>> double escaping problems otherwise. You also only
>> need to escape & and <
>> in element content, the others are optional.


Note that you probably also want to escape > to &gt;
although you don't need to do them all, if you don't escape all > then
you have to check for occurrences of ]]> and escape at least one of
those three characters, as the string ]]> is not allowed (except as the
end of a CDATA section).

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member