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?

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

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

Similar topics

2
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...
1
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" ....
7
by: spiros | last post by:
Hi, suppose you have the class Class1 and the main program: class Class1 { public: Class1(); ~Class1();
7
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
3
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
3
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...
1
nirmalsingh
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
7
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...
17
by: Kaushal Elsner | last post by:
<contact_us_client_email> <message> &lt;!]&gt; </message> <header> <!]>From: support@blurbpoint.com </header> </contact_us_client_email>
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
BarryA
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...
0
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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.