Hi,
My code:
Imports System.Xml
Imports Microsoft.ClearScript
Public Class WebForm1
My code:
Imports System.Xml
Imports Microsoft.ClearScript
Public Class WebForm1
Inherits System.Web.UI.Page
Dim xml As XmlDocument = New XmlDocument
Dim engine As Windows.JScriptEngine = New Windows.JScriptEngine
Public Sub Initialize()
engine.AddHostObject("xml",xml)
Try
engine.execute("xml.LoadXml('</>/sales id=""1""/>');")
Catch e As Exception
Response.Write(e.Message)
End Try
If xml.InnerXml.ToString <> "" Then Response.Write(xml.SelectSingleNode("//sales").Attributes.GetNamedItem("id").InnerText)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub