Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function Error

Status
Not open for further replies.

007Maximus

Programmer
May 20, 2009
2
US
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
 
May be
Code:
Return DBCTools.XmlApplyXslt(New XPathDocument(New StringReader(strXml)), strXslPath).[b]ToString[/b]


Zameer Abdulla
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top