cancel
Showing results for 
Search instead for 
Did you mean: 

CDATA tag in xml

Former Member
0 Kudos

Does anyone know if CDATA tag is supported for values. For example can XI do the following;

<vendor-name><![CDATA[MOON FREIGHT LINES, INC.]]></vendor-name>

The vendor name value is "MOON FREIGHT LINES, INC." which is included in the CDATA tag. Can XI parse correctly and give me the correct value? We don't have a system in place yet and i can't test it out.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

sam_raju
Contributor
0 Kudos

Hi Dipesh,

Yes. This is supported.

Rgds,

Sam Raju

Former Member
0 Kudos

Thanks Sam.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

In SAP - ABAP, I am outputing a xml file. In that i am outputing the following:

<position> <5 </position>.

But as '<5' will not pass directly into the xml phraser, i have used the following.

<position><![CDATA[<5]]> </position>.

But when I am opening the file in xml editor it is showing me the following output.

"<position>&lt;![CDATA[&lt;5]]&gt;</position>." where all the < symbols are replaced by&lt; and > symbol with &gt; for CDATA section.

But when i am opening the file in internet, it is giving me the correct output as :

<position><![CDATA[<5]]> </position>.

I want the above output ( <position><![CDATA[<5]]> </position>.) to come in xml editor.

Could anyone please guide me in this regard. It is very urgent.

Thank you .

Edited by: Sangeeta Golha on Feb 1, 2008 5:07 PM

Edited by: Sangeeta Golha on Feb 1, 2008 5:10 PM

Former Member
0 Kudos

Hi Sangeeta,

did you get a solution for this problem? I am facing exactly the same problem and I don't have a clue how to solve it.

Thanks and regards,

William