Test results for Win32 Console |
Test for line numbers being suffixed at the end of level 1 element names starting at number 1 and increasing sequentially with every level 1 element encountered.
Pass
cat _INPUT_DATA_ ¦ xmlfy -l
Team Won Lost Drawn Barcelona 5 1 2 Manchester 4 2 2 Milan 2 2 4
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xmlfy SYSTEM "xmlfy.dtd"> <xmlfy> <line1> <field>Team</field> <field>Won</field> <field>Lost</field> <field>Drawn</field> </line1> <line2> <field>Barcelona</field> <field>5</field> <field>1</field> <field>2</field> </line2> <line3> <field>Manchester</field> <field>4</field> <field>2</field> <field>2</field> </line3> <line4> <field>Milan</field> <field>2</field> <field>2</field> <field>4</field> </line4> </xmlfy>