in C# how do i transform an xml document with an xsl document when my xml document is a string and my xsl document is a string? the msdn examples only show how to do it with steams and files. in my case i have everything in string

in C# how do i transform an xml document with an xsl document when my xml document is a string and my xsl document is a string? the msdn examples only show how to do it with steams and files. in my case i have everything in string

Post by Danie » Thu, 01 Sep 2005 09:03:09


in C# how do i transform an xml document with an xsl document when my xml
document is a string and my xsl document is a string? the msdn examples only
show how to do it with steams and files. in my case i have everything in
string
 
 
 

1. Example code to do XSL transform from string to string (or stream?)

2. Embedd XML string within another XMl Document

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 < > so I can
put it into my main XML document

Thanks



<?xml version="1.0" standalone="yes"?>
<carsDS xmlns=" http://www.yqcomputer.com/ ">
<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><?xml version="1.0" encoding="utf-16"?>
<RecurrenceInfo Id="51c81018-53fa-4d10-925f-2ed7f8408c75" Index="4"
/></Info>
<StartTime>2005-07-20T01:30:00-04:00</StartTime>
<Status>1</Status>
<Subject>Wash</Subject>
</CarScheduling>
</carsDS>

3. WebService returns XML in a String - how can I 'convert' this to an XML document?

4. Help on including one XML document within another XML document using XML Schemas

5. TRansform from XML document to string

6. XML call XSL that calls xml through document() element

7. Document type definition when transforming XML and XSL to HTML

8. ElementTree.XML(string XML) and ElementTree.fromstring(string XML) not working

9. ElementTree.XML(string XML) and ElementTree.fromstring(string XML) not working

10. My I's are coming up i's. (lower case)

11. Error Loading XML Document:not a well formed XML document.

12. One XML File Two XSL Files - New to XML/XSL

13. XSL Transform Problem using System.Xml.XSL.Transform

14. XSL Transform Problem using Xml.XSL.Transform

15. A question on joining more than one xml document to xsl file??