My application takes in "Word 2003 XML" file name as an INPUT parameter and tries to APPLY XSLT file on this word 2003 document(xml) file and to extract the DATA ONLY entered by the user and puts into a file called as "out.xml".
The below is the code snippet.
The last statement in the code snippet is not working fine.
Can any body correct this and let me know.
'Transform the Document / XML file into PURE XML DATA ONLY FILE
''Create a new XslTransform object.
Dim xslt As New XslTransform
''''Load the stylesheet.
''''Create a new XPathDocument and load the XML data to be transformed.
Dim mydata As New XPathDocument("sample.xml")
Dim resolver As XmlUrlResolver = New XmlUrlResolver
resolver.Credentials = System.Net.CredentialCache.DefaultCredentials
''''Transform the data and send the output to the console.
xslt.Transform(SaveLocation, "c:\inetpub\wwwroot\Assessment\Templates\out.xml", resolver)