Sample Input and Output
We use a simple address book listing for the example for this utility. Each row is an entry for a person. The columns are listed below.
Last name
First name
Street address, first line
Street address, second line
City
State or province
Zip or postal code
Country
Phone number
E-mail address
Here's an address book in this format, with entries.
Sample Input Document (SimpleCSV.xml)
<?xml version="1.0" encoding="UTF-8"?> <SimpleCSV> <Row> <Column01>Jones</Column01> <Column02>Mary</Column02> <Column03>312 Renner Road</Column03> <Column04>Apartment C</Column04> <Column05>Richardson</Column05> <Column06>TX</Column06> <Column07>75080</Column07> <Column08>USA</Column08> <Column09>972-996-1051</Column09> </Row> <Row> <Column01>Smith</Column01> ... |
Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.