XML Parser and Fusion Charts
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



XML Parser and Fusion Charts Expand / Collapse
Author
Message
Posted 7/11/2007 7:02:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/12/2007 5:31:15 PM
Posts: 3, Visits: 4
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

%>

Post #1593
Posted 7/16/2007 11:06:03 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
Try traversing the entire tree using DOM once and see if it's able to access the elements.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1633
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:10pm


Execution: 0.047.