Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[JS] How to add CDATA section to xml?

Contributor ,
Jun 25, 2018 Jun 25, 2018

var tagRoot = new XML("<test>"); 

tagRoot.FirstElem =  "First";  

tagRoot.SecondElem = "Second";  

alert(tagRoot); 

I want to add CDATA section to element like below.

<test>

     <FirstElem><![CDATA[First]]></FirstElem>

     <SecondElem>Second</SecondElem>

</test>

Please help me.

Thanks in advance.

TOPICS
Scripting
664
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Jun 26, 2018 Jun 26, 2018

Can't…this is a known limitation…

Translate
People's Champ ,
Jun 26, 2018 Jun 26, 2018
LATEST

Can't…this is a known limitation…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines