K
KemperR
Dear Experts,
I'm relatively new to asp.net 2.0 and need some help on a very easy
thing.
I would like to store the result of the transformation in an object for
further processing.
But it seems that the Transform method can not do this.
My code looks basically like the lines below.
XmlDocument xmlDoc = new XmlDocument();
XmlDocument xmlOut = new XmlDocument();
XslCompiledTransform transform = new XslCompiledTransform();
xmlDoc.Load("myXMLFile.xml")
transform.Load("MyXslFile.xsl");
transform.Transform(xmlDoc, (XsltArgumentList)null, xmlOut);
There is obviously no overload for XmlDocument (or XmlDataDocument) as
output.
Do I really need to write the output to a file ??!!
My final traget is to fill a tree with the xml result of the
translation.
Therefore I think, I need an XmlDocument object.
Any hint is highly welcome
Rolf
I'm relatively new to asp.net 2.0 and need some help on a very easy
thing.
I would like to store the result of the transformation in an object for
further processing.
But it seems that the Transform method can not do this.
My code looks basically like the lines below.
XmlDocument xmlDoc = new XmlDocument();
XmlDocument xmlOut = new XmlDocument();
XslCompiledTransform transform = new XslCompiledTransform();
xmlDoc.Load("myXMLFile.xml")
transform.Load("MyXslFile.xsl");
transform.Transform(xmlDoc, (XsltArgumentList)null, xmlOut);
There is obviously no overload for XmlDocument (or XmlDataDocument) as
output.
Do I really need to write the output to a file ??!!
My final traget is to fill a tree with the xml result of the
translation.
Therefore I think, I need an XmlDocument object.
Any hint is highly welcome
Rolf