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

Embedd XML string within another XMl Document

Joe
Hi

I am trying to build a XML db and within this I want to store an XML string
as 1 element
as "Info" below

If I build up a XMLDocument with data - how can I transform it to a string
containing &lt &gt so I can
put it into my main XML document

Thanks

<?xml version="1.0" standalone="yes"?>
<carsDS xmlns="http://www.tempuri.org/carsDS.xsd">
<CarScheduling>
<AllDay>false</AllDay>
<CarId>3</CarId>
<Description>Wash this car in the garage</Description>
<EndTime>2005-07-20T09:00:00-04:00</EndTime>
<EventType>3</EventType>
<ID>1</ID>
<Label>2</Label>
<Location>Garage</Location>
<Info>&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;RecurrenceInfo Id="51c81018-53fa-4d10-925f-2ed7f8408c75" Index="4"
/&gt;</Info>
<StartTime>2005-07-20T01:30:00-04:00</StartTime>
<Status>1</Status>
<Subject>Wash</Subject>
</CarScheduling>
</carsDS>
Aug 30 '06 #1
1 1366
Joe

You can imbed other XML documents into your, namespaces allowing, using
XmlDocument.ImportNode. The other way to do it would be using a CDATA
sections to store the XML as is.

HTH

Glenn
"Joe" <hc******@yahoo.comwrote in message
news:ez**************@TK2MSFTNGP03.phx.gbl...
Hi

I am trying to build a XML db and within this I want to store an XML
string as 1 element
as "Info" below

If I build up a XMLDocument with data - how can I transform it to a string
containing &lt &gt so I can
put it into my main XML document

Thanks

<?xml version="1.0" standalone="yes"?>
<carsDS xmlns="http://www.tempuri.org/carsDS.xsd">
<CarScheduling>
<AllDay>false</AllDay>
<CarId>3</CarId>
<Description>Wash this car in the garage</Description>
<EndTime>2005-07-20T09:00:00-04:00</EndTime>
<EventType>3</EventType>
<ID>1</ID>
<Label>2</Label>
<Location>Garage</Location>
<Info>&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;RecurrenceInfo Id="51c81018-53fa-4d10-925f-2ed7f8408c75" Index="4"
/&gt;</Info>
<StartTime>2005-07-20T01:30:00-04:00</StartTime>
<Status>1</Status>
<Subject>Wash</Subject>
</CarScheduling>
</carsDS>

Sep 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
3
by: laurenq uantrell | last post by:
Thinking I know the answer to this before I ask... Has anyone ever figured out if there's a way (including 3rd party solutions such as Active-X) to embed a report (or an HTML formatted doc) as a...
6
by: mh | last post by:
Hi everybod who knows the *.dll to embedd the command prompt into C#, what i want to do, is make a graphical command prompt based on System.Windows.Forms Thanks for helping
0
by: Nuno Magalhaes | last post by:
How do I embedd the MediaPlayer (msdxm.ocx) in a Windows Form using C#? I do something like the code below: Player=new WindowsMediaPlayer();...
1
by: Nuno Magalhaes | last post by:
How do I embedd an ocx control in a windows form in C#? Does it inherit from Microsoft.Windows.Forms.Form? Thanks for any response to this newbie question, Nuno Magalhaes.
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
0
by: Preeti | last post by:
Hi All I am new to WPF. I need to embedd a flash video on a WPF screen. But I think mediaelement does not support that. Can anyone tell me what do I need to be able to embedd a flv video on a...
3
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I need to store some configuration settings in a db using an 2 fileds ID Field and String Field The ID Field is a unique key and the string holds a xml string that store my settings...
6
by: ankitkhare | last post by:
Hi, I have this javascript which i am trying to embedd in my C# code,i am not sure whether it is even possible or not! If it is possible then how can i do it?Any document or links will be...
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.