Groups | Blog | Home
all groups > dotnet xml > january 2005 >

dotnet xml : XML Guru Needed!


Steve Covert
1/28/2005 11:31:48 AM
In converting a VB6 app using MSXML2 to a VB.NET app using System.xml, I'm
looking a cross-reference. What would the equivalent .NET XML command be to
'transformNodeToObject?' Thanks!


Martin Honnen
1/29/2005 6:18:11 PM


[quoted text, click to view]

If you want to do an XSLT transformation in .NET 1.0 or 1.1 look at
System.Xml.Xsl.Transform:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXsl.asp>
there you have the XslTransform class
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxslxsltransformclasstopic.asp>
which has an overloaded method Transform
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXslXslTransformClassTransformTopic.asp>
where you can have various output forms (e.g. Stream, TextWriter,
XmlWriter). If you want to transform to an XmlDocument then I think you
need to transform to an XmlReader and consume that with an XmlDocument
for instance.


--

Martin Honnen
AddThis Social Bookmark Button