473,513 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Direct results of Transformation

I have this line in my code:

xslt.Transform(new
XPathDocument("D:\\testarea\\dotnet\\processtree\\ TIPTREECAT.xml"), xslArg,
writer, null);

How can store results of the transformation into a string?
Nov 18 '05 #1
2 1004
Please see if the following helps
XPathDocument xpathDoc = new XPathDocument(Server.MapPath("MyXml.xml"))
XslTransform xTran = new XslTransform()
xTran.Load(Server.MapPath("myxsl.xsl"))
string HtmlOutput
StringWriter sw = new StringWriter()
xTran.Transform(xpathDoc,null,sw,null)
HtmlOutput = sw.ToString()

Regards
-am
Nov 18 '05 #2
Yes, that works.

"Anand Mohan" <qa***@yahoo.com> wrote in message
news:0C**********************************@microsof t.com...
Please see if the following helps:
XPathDocument xpathDoc = new XPathDocument(Server.MapPath("MyXml.xml"));
XslTransform xTran = new XslTransform();
xTran.Load(Server.MapPath("myxsl.xsl"));
string HtmlOutput;
StringWriter sw = new StringWriter();
xTran.Transform(xpathDoc,null,sw,null);
HtmlOutput = sw.ToString();

Regards,
-am

Nov 18 '05 #3

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

Similar topics

0
2072
by: Prasad | last post by:
We are invoking a SQL DTS component (lets call it Comp1) built by us in another component (Comp2).Comp1 was built by creating the DTS package using the SQL DTS wizard and then saving it as a VB...
4
2420
by: Kevin Dean | last post by:
I'm trying to create an XSL transformation that will strip out development-specific attributes from deployment descriptors and other XML files. I have already successfully done so with web.xml but...
7
3234
by: CK | last post by:
Hello, I have the 60 MB XML string and I am coding a program in Visual Basic to run a XSL transformation on it. Currently, I'm using the Microsoft standard MSXML 2.0 to create a DOM document, load...
0
1077
by: aaa | last post by:
Hi there, I have an xml control "xml1" and it is doing a nice job of converting xml to html inside of a web user control "content.ascx". I've now dropped content.ascx onto a web form, and I'm...
2
2007
by: Stuart | last post by:
I am a bit of a newbie to C# and would like help with the following. I am bringing in a dataset and transforming that dataset using an XSL style sheet to generate text. This text does in fact...
3
1163
by: Mark Goldin | last post by:
I need to show results of transformation on the server. Thansformation returns an attribute based xml string. Can I bind DataRepeater to the xml string? Thanks
6
4963
by: Lenny Wintfeld | last post by:
Hi I'm attempting additions/changes to a Java program that (among other things) uses XSLT to transform a large (96 Mb) XML file. It runs fine on small XML files but generates OutOfMemory...
5
3691
by: imissphp | last post by:
I am using Visual Studio 2005 .NET 2.0. and C#. Has anybody transformed xml using xsl and shown the results as a web page? It should be a simple task.... but I can't find a way through the maze...
21
1908
by: Mark Cooney | last post by:
Good afternoon, yes i am a newby so pls keep it simple. Yesterday I started a small project where I have to make an API call and receive back from that the long xml transcript down below. Now,...
0
7259
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
7158
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
7535
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
7098
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
7523
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
5683
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,...
1
5085
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...
0
1592
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 ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.