473,388 Members | 1,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Convert CDATA Content to XML

Is there any way to convert Cdata content to XML?

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>

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 7042
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
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

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

Similar topics

by: Rick | last post by:
Hi.. I've got some code I wrote in PHP that will generate a new argument string for the browser, but the xhtml parser in Firefox and Opera both complain about my use of &var=value pairs. Below...
by: Stefan Schmidt | last post by:
Hi@ll ! I have an application where the items of each XML value are placed in an array like this: my $result = transfer({ FIELD1 => 'value1', FIELD2 => 0, FIELD3 => "something other" ....
by: spiros | last post by:
Hi, suppose you have the class Class1 and the main program: class Class1 { public: Class1(); ~Class1();
by: Max | last post by:
Hello everyone! Can anyone help me to convert the CDATA expression "CDATA ::= (Char* - (Char* ']]>' Char*)" to Javascript Regular Expression? Thanks, Max
by: Kenny | last post by:
Hey, Is there some way to CDATA an element in an XSD? I'm having an incredibly hard time finding a solution. -Kenny
by: satyajit123 | last post by:
HI All, I have a requirement which has an XML with CDATA content in it is to be passed through an XSL for transformation to HTML tags. The xml is of below format. <xml-service...
by: nirmalsingh | last post by:
hai all, i am having a content in datagrid, now i want to assign the content of datagrid to datagridview(with grid heading). how to do this? i want to do this in C#. with cheers Nirmal
by: Silfheed | last post by:
Heyas So first off I know that CDATA is generally hated and just shouldn't be done, but I'm simply required to parse it and spit it back out. Parsing is pretty easy with lxml, but it's the...
by: Kaushal Elsner | last post by:
<contact_us_client_email> <message> &lt;!]&gt; </message> <header> <!]>From: support@blurbpoint.com </header> </contact_us_client_email>
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.