473,473 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Convert CDATA Content to XML

2 New Member
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 7054
Rabbit
12,516 Recognized Expert Moderator MVP
What? If you needed XML content, why use CDATA in the first place?
Jan 4 '12 #2
manoharshrestha
2 New Member
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 Recognized Expert Moderator MVP
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
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.