I have an issue when i try to get data from xml file by D3JS. I can not match any data from xml file when I use a command from d3js. The following is my problem in detail: 1. command of d3. 2. results. 3. contain of my xml file.
d3.xml('files/d3.xml').then(function(data){
alert(JSON.stringify(data));
});
and results:
{"location":null}
this is my d3.xml file:
<?xml version="1.0" encoding="utf-8"?>
<data>
<row>
<loc>https://tuyetson.vn</loc>
<priority>1.0</priority>
<changefreq>daily</changefreq>
<lastmod>2019-12-01</lastmod>
</row>
<row>
<loc>https://tuyetson.vn/linh-vuc/linh-kien-may-in</loc>
<priority>0.9</priority>
<changefreq>daily</changefreq>
<lastmod>2019-12-01</lastmod>
</row>
</data>
I hope someone can help me. Thanks you very much!