-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Escape it as: &

For more info, see section 2.4 of the XML spec:
http://www.w3.org/TR/REC-xml#syntax

- -Joseph


> -----Original Message-----
> From: Naggi Rao [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 29, 2001 8:42 AM
> To: [EMAIL PROTECTED]
> Subject: Urgent help needed
> 
> 
> Hi all,
> Its more of a XML Question ..
> I am passing a few elements (as literal XML) to my WebServvice as :
> <someelement>
> <pair name="abc" value="xyz"/>
> </someelement>
> It works fine for cases above :
> 
> but the XML Parser get very very angry if I passed :
> 
> <someelement>
> <pair name="abc" value="xyz & def"/>
> </someelement>
> 
> I was wondering if there was a decent way to escape the & sign ?
> May be URLEncoding the characters before stuffing them in to 
> literal XML ?
> Would appreciate a quick fix !!
> 
> Cheers,
> Naggi
> 
> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBOzzEFwSWVG4f0OV9EQJ3RACg/Cud6/OZ3cy7KZLmP9BA4873ryUAoL15
mvQ8z4s+uB5t8KB4UUVIEDAh
=jrWG
-----END PGP SIGNATURE-----

Reply via email to