007Maximus
Programmer
I am getting the following error and unable to fix. Need help.
the error is:Value of type 'System.Xml.XPath.XPathDocument' cannot be converted to 'String'.
code:
Imports System
Imports System.IO
Imports System.Security
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Data.SqlClient
Imports System.Data
Imports System.Linq
Imports System.Xml
Imports System.Xml.XPath
Imports System.Xml.Xsl
Public Shared Function XmlApplyXslt(ByVal strXml As String, ByVal strXslPath As String)
Try
Return DBCTools.XmlApplyXslt(New XPathDocument(New StringReader(strXml))[color], strXslPath)
Catch ex As Exception
End Try
End Function
the error is:Value of type 'System.Xml.XPath.XPathDocument' cannot be converted to 'String'.
code:
Imports System
Imports System.IO
Imports System.Security
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Data.SqlClient
Imports System.Data
Imports System.Linq
Imports System.Xml
Imports System.Xml.XPath
Imports System.Xml.Xsl
Public Shared Function XmlApplyXslt(ByVal strXml As String, ByVal strXslPath As String)
Try
Return DBCTools.XmlApplyXslt(New XPathDocument(New StringReader(strXml))[color], strXslPath)
Catch ex As Exception
End Try
End Function