[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

parsing xml strings that consists of special characters

  • To: xml-dev@l...
  • Subject: parsing xml strings that consists of special characters
  • From: Robina Brintha <robina.brintha@g...>
  • 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@m...>
  • References: <6920889205081903266bbd4c5f@m...>

xml strings

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 &lt; and > with &gt; 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[ " &lt; html &gt; &lt; head &gt; &lt; /head &gt; &lt; body &gt; &lt; h1 &gt; Test &lt; /h1 &gt;&lt;h3&gt; foo &lt; /h3 &gt; &lt; /body &gt; &lt; /html &gt; "]]>;
 
which is sent as,
<content>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Test&lt;/h1&gt;&lt;h3&gt;foo</h3&gt;&lt;/body&gt;&lt;/html&gt;</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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.