473,394 Members | 2,100 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,394 software developers and data experts.

How to convert xml tag data into cdata format

Following is the xml which i want to convert in cdata format

<Root>
<Start>
<One>Some Data 1</One>
<Two>Some Data 1</Two>
<Three>Some Data 1</Three>
<Four>Some Data 1</Four>
<Five>Some Data 1</Five>
</Start>
</Root>

Formatted xml is as follows:

<Root>
<Start>
<One><![CDATA[Some Data 1]]</One>
<Two><![CDATA[Some Data 2]]</Two>
<Three><![CDATA[Some Data 3]]</Three>
<Four><![CDATA[Some Data 4]]</Four>
<Five><![CDATA[Some Data 5]]</Five>
</Start>
</Root>


Please suggest any way to do this.
Sep 26 '07 #1
1 3842
Shashi Sadasivan
1,435 Expert 1GB
you can eiter use xslt
or if you are interested to do it very programatically then u can use the XmlDocument and the xml classes to do the same

You could also upload your xml file into a dataset and do the same

cheers
Sep 26 '07 #2

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

Similar topics

2
by: Rock | last post by:
Hi,all: how to convert VBA #date# format (ex: #2004/3/6#) to C# code ? here are vba code : Dim objUserPerm As Office.UserPermission Set objUserPerm =...
4
by: Morys Kenworthy | last post by:
How do I format my textboxes to show something like: $500,000.00 08/16/2004 548-55-4486 Is there a way to do this in ASP.NET? I have some textboxes on a web page (not in a grid) and I would...
1
by: solomon_13000 | last post by:
How do I actually convert different video format (avi,mpeg,mp4, etc) file to a flash format and view it as flash? People would upload their video files on my server and my server will do the...
5
nirmalsingh
by: nirmalsingh | last post by:
i am getting date format in string as 30-11-2006 05:59:44 PM . i want to convert in the format of yyyy-mm-dd hh:mm:ss to sore it in mysql database. Help me with sample coding plz..
1
by: neeraj | last post by:
Hi All Can any give me the code for convert "DataColumn" data type of "DataTable". Even if data table already populated (have data) Actually I am creating one search module which searches the...
0
by: VinDiesal | last post by:
Hi Buddies, I want the Sample source code about How to convert Dss audio format to wav format in .net. Please anybody send the source code for this.
3
by: Academia | last post by:
I have a vs2003 project (actually 44 of them) that I want to convert to VS2005 format. To fix a usercontrol file I created the Designer.vb file and moved the Inherited and Class ( change to...
0
by: =?Utf-8?B?S3VydA==?= | last post by:
I was wondering if anyone knew if there was a simple way to convert a Data Interchange Format (.dif) file (see:http://en.wikipedia.org/wiki/Data_Interchange_Format) into a dataset using the native...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.