Two books with an id attribute
- XML
- <catalog><book id="1"><title>Dune</title><price>9.99</price></book><book id="2"><title>Say "Hi", Bob</title><price>5</price></book></catalog>
- Delimiter
- Comma
Result CSV: @id,title,price
1,Dune,9.99
2,"Say ""Hi"", Bob",5
Rows: 2
Columns: 3
Row element: book
Empty cells: 0
- Root path: catalog; repeated element <book> becomes one row each (2).
- Attributes become @name columns, nested elements become parent/child columns, repeats are joined with "; ".
- Cells holding the delimiter, a double quote or a line break are wrapped in quotes, and inner quotes are doubled (RFC 4180).
The id attribute becomes an @id column, and the title with a comma and quotes is wrapped and escaped.