469,306 Members | 1,901 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Convert CDATA Content to XML

Is there any way to convert Cdata content to XML?

From:
Expand|Select|Wrap|Line Numbers
  1.   <Organization>Test</Organization>
  2.       <Author>Test</Author>
  3.       <test><![CDATA[<test1>testing</test1>]]></test>
  4.       <Date>November 2008</Date>
  5.       <Format>Report or brief</Format>
  6.       <FullText>Yes</FullText>
TO:

Expand|Select|Wrap|Line Numbers
  1. <Organization>Test</Organization>
  2.       <Author>Test</Author>
  3.       <test>
  4.           <test1>testing</test1>
  5.        </test>
  6.       <Date>November 2008</Date>
  7.       <Format>Report or brief</Format>
  8.       <FullText>Yes</FullText>
Jan 4 '12 #1
3 6517
Rabbit
12,516 Expert Mod 8TB
What? If you needed XML content, why use CDATA in the first place?
Jan 4 '12 #2
I got that XML from other source now i need to convert that Cdata content back to XML.

Thanks for your quick response.
Jan 4 '12 #3
Rabbit
12,516 Expert Mod 8TB
Using the programming/scripting language of your choice, you just need to strip out all the cdata references and then save the file.
Jan 4 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Stefan Schmidt | last post: by
3 posts views Thread by Kenny | last post: by
3 posts views Thread by satyajit123 | last post: by
7 posts views Thread by Silfheed | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.