471,571 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,571 software developers and data experts.

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 6726
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 XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.