Test results for Linux |
Test for a elements with user specified attributes at the levels specified.
Pass
cat _INPUT_DATA_ ¦ xmlfy -A delimiter -A1 level -A1 timestamp -A2 number -A2 insert data simple
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> <line level="1" delimiter="NEWLINE" timestamp_date="Wed Feb 5 22:22:36 2020" timestamp_secs="1580901756"> <field number="1" delimiter="WHITESPACE" data="simple">Team</field> <field number="2" delimiter="WHITESPACE" data="simple">Won</field> <field number="3" delimiter="WHITESPACE" data="simple">Lost</field> <field number="4" delimiter="" data="simple">Drawn</field> </line> <line level="1" delimiter="NEWLINE" timestamp_date="Wed Feb 5 22:22:36 2020" timestamp_secs="1580901756"> <field number="1" delimiter="WHITESPACE" data="simple">Barcelona</field> <field number="2" delimiter="WHITESPACE" data="simple">5</field> <field number="3" delimiter="WHITESPACE" data="simple">1</field> <field number="4" delimiter="" data="simple">2</field> </line> <line level="1" delimiter="NEWLINE" timestamp_date="Wed Feb 5 22:22:36 2020" timestamp_secs="1580901756"> <field number="1" delimiter="WHITESPACE" data="simple">Manchester</field> <field number="2" delimiter="WHITESPACE" data="simple">4</field> <field number="3" delimiter="WHITESPACE" data="simple">2</field> <field number="4" delimiter="" data="simple">2</field> </line> <line level="1" delimiter="NEWLINE" timestamp_date="Wed Feb 5 22:22:36 2020" timestamp_secs="1580901756"> <field number="1" delimiter="WHITESPACE" data="simple">Milan</field> <field number="2" delimiter="WHITESPACE" data="simple">2</field> <field number="3" delimiter="WHITESPACE" data="simple">2</field> <field number="4" delimiter="" data="simple">4</field> </line> </xmlfy>