Next in thread → Next in month →

Re: [xml-dev] The '&' Problem

From
Julian Reschke <>
To
asim <>
Date
2003-11-01T08:47:33Z
ID
<>
Thread
Re: [xml-dev] The '&' Problem
asim wrote:

> Hi All
>     I querry a database table and make a XML packet dont know which 
> field can contain '&' .. what should i do so that my parser should not 
> break will parsing ....
>  
> Qazi Asim

Escape it as "&amp;". And do not forger "<" ("&lt;") and possible issues 
with non-ASCII characters in case you're not using ASCII.

Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
Next in thread → Next in month →