OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Default Entity when compose xml file

[ Lists Home | Date Index | Thread Index ]

>> 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
________________________________________________________________________




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS