Skip to main content
100%

let's make a list from a data file! (xml)

✓ Published1🌍 Public
Zzach b.
Last edited Nov 16, 2021
Created on Nov 16, 2021

This example uses a small XML file to generate an HTML list. It reads the data from `data.xml` using D3's `xml()` function, then maps the parsed XML elements to list items. The code selects the `<ul>` element, applies D3's selection and data-binding API, and appends an `<li>` for each `<memo>` node, displaying its text content. The visualization highlights how server-side XML data can be directly transformed into client-side DOM elements within a D3.js workflow.

AI-generated description

much thanks to altocumulus.

MIT Licensed

Similar vizzes