Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Escaping Special Characters

From: "Joe Fawcett" <joefawcett@----------.------>
To: NULL
Date: 7/3/2005 12:14:00 PM
"Biju Varughese" <BijuVarughese@d...> wrote in message 
news:A2672DD1-06F0-49B5-B038-869DF959F2BA@m......
> Hello:
>
> I am working on an XML feed for news items. I have noticed that the
> generated XML file returns error if there are any special characters in the
> data. Eg: ampersand, latin charcters, french characters etc. In many of the
> cases I am mannually replacing these charcters with the corresponding hexa
> values. Could any one suggest a permanent solution for this. Could you please
> provide me some links which gives more information on this.
>
> Regards,
>
> Biju M Varughese

If you create you feed using a standard parser then this escaping will be taken 
care of automatically. If you build it up as a string then you'll need to escape 
the special characters by hand. There are only five
> escaped as &-g-t-;
< escaped as &-l-t-;
'  escaped as&-a-p-o-s-;
" escaped as &-q-u-o-t-;
& escaped as &-a-m-p-;

(remove the hyphens before use)

-- 

Joe (MVP - XML)

https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent