|
[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: parsing xml strings that consists of special characters
You should either enclose the special characters in CDATA,
or represent them as entity/character references, but not
both.
But I'm puzzled by this:
var conten=<![CDATA[ "
<
This looks like a variable assignment in some scripting
language appearing within an XML document (perhaps). I suspect the problems are
to do with mixing languages and escape conventions, so you need to explain your
environment better.
Incidentally, saying that something "didn't work" is never
helpful. What was the output and how did it differ from expectations? You might
not understand the error message, but your purpose in posting is to reach people
who do understand it.
Michael Kay
http://www.saxonica.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

|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|