Currently, I am working on a d3.js assignment for my school project. While looking at some examples to load an XML file, I seem to be encountering difficulties in figuring out what's going wrong. The XML file is loading correctly, but as I am still learning JS, it would be much appreciated if the explanation is kept simple ;p..
Here is the code snippet:
d3.xml("data.xml", "application/xml", function(xml) {
var data = d3.select(xml).selectAll("path");
console.log("Data from XML= " + data);
});
Thank you!