[
Lists Home |
Date Index |
Thread Index
]
- To: xml-dev@lists.xml.org
- Subject: parsing xml strings that consists of special characters
- From: Robina Brintha <robina.brintha@gmail.com>
- Date: Fri, 19 Aug 2005 12:31:15 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=YjVucsd/IiP2o4o2N1mbmjPKgZtUT+/JFK3BwNBBx+ouKZ2rbIz+tDpq1wyJmPXfk0G3ZymvylYWck0GEdl5AxCcgB5Z6nVoK02p1umWOa6CEKujJOzdrAtBqF43XwoYz27I6ManmpUExOg12i6pBDPXJVT0nY/azvmiEm17WnM=
- In-reply-to: <6920889205081903266bbd4c5f@mail.gmail.com>
- References: <6920889205081903266bbd4c5f@mail.gmail.com>
Hello everybody,
I have a question about parsing xml strings that have special characters such as <,>,& .I need to send some <html> tag elements as an xml string in a soap request .I tried replacing < with < and > with > and embedding this inside <![[CDATA ]]> but it didnt work
<html><head></head><body><h1>Test</h1><h3>foo</h3></body></html> this is the content I want to send as a xml string .
And I send in the following way, var conten=<![CDATA[ " < html > < head > < /head > < body > < h1 > Test < /h1 ><h3> foo < /h3 > < /body > < /html > "]]>;
which is sent as,
<content><html><head></head><body><h1>Test</h1><h3>foo</h3></body></html></content> in the soap request message.
can anyone tell me what's my mistake and how can I rectify it?I would be of great help to me.Thanks in advance.
regards, Robina Master of Media Informatics (RWTH univ) Bonn Germany
Robina Master of Media Informatics (RWTH univ) Bonn Germany
|