Sign in to follow this  
Allen Woods

XML Parser and Fusion Charts

Recommended Posts

Using VB Script and the dragnode chart.  I can get the XML out of the chart and into the MS Parser but haven't a clue how to get to the <dataset> node.

Any pointers to a worked example would be much appreciated

dim strX, boolLoadOK, strXML

'Response.ContentType="text/xml"

'Response.Write(Request("strXML"))

'Get the XML from the Fusion Charts form...

strXML = Request("strXML")

'set up instances of the MS parser

set objXML = CreateObject("Microsoft.XMLDOM")

set objLst = CreateObject("Microsoft.XMLDOM")

objXML.async = false

objLst.async = false 

 

'Now read the Fusion Chart data into the xml parser instance

objXML.LoadXML("strXML")

if objXML.parseError.errorcode<>0 then

  'error handling code

else

'It all works to here.  Now I try to select a single node, and then write the node text attribute to the page

Set Node = objXML.documentElement.selectSingleNode("dataset")

request.write(Node.text)

'  And nothing happens......

 

end if

 

set objXML = Nothing

set objLst = Nothing

%>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this