How to import XML data using d3.js?

Markos

New Member
can someone provide a basic example how to import data from an XML file using d3?My XML file looks like this:\[code\] <data> <value>71</value> <value>12</value> <value>44</value> <value>88</value> </data>\[/code\]How can I add these values to a data array? Here is what I tried so far:\[code\] d3.xml("values.xml", function(xml) { d3.select(xml).selectAll("data").each(function(data) { d3.select(data).selectAll("value"); //add data to array?; };}); //use Array\[/code\]
 
Back
Top