Test results for Linux |
Test for a summary element printed at the end of normal XML output.
Pass
cat _INPUT_DATA_ ¦ xmlfy -s
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> <field>Team</field> <field>Won</field> <field>Lost</field> <field>Drawn</field> </line> <line> <field>Barcelona</field> <field>5</field> <field>1</field> <field>2</field> </line> <line> <field>Manchester</field> <field>4</field> <field>2</field> <field>2</field> </line> <line> <field>Milan</field> <field>2</field> <field>2</field> <field>4</field> </line> </xmlfy> <xmlfy_summary> <version>1.5.7</version> <timestamp> <start>Mon Feb 3 23:37:03 2020</start> <end>Mon Feb 3 23:37:03 2020</end> </timestamp> <md5_input>445e1e0af51a6d3fefbebf42d85f9a74</md5_input> <md5_output>bc9bfaba95cc5cd4b4623b047a2a949c</md5_output> <sha512_input>66a378afa22ed5598790f84025a64c1ea2a34c8687cc0121ba8975970537399570706d85faeb9a9b3d6c3b1cfae37dfe2967c61cb79ef6916b7af60753f03cec</sha512_input> <sha512_output>7496afb2eb5c3d7e24c1b03e7aa981caf80b81aec7d90fc8c05853e7caf63ce4ac14d6f3af05eb50cfca9b52e6990bb0574d1d903eb8c4caf3ba46a9ff4169d2</sha512_output> <args> <command> <arg>xmlfy</arg> <arg>-X</arg> <arg>newline</arg> <arg>unix</arg> <arg>-s</arg> </command> </args> <separator> <level1> <delimiter>NEWLINE</delimiter> </level1> <level2> <delimiter>WHITESPACE</delimiter> </level2> </separator> <schema> <default>true</default> <records> <read>5</read> <expelled>0</expelled> <matched>4</matched> <unmatched>0</unmatched> <ignoredblank>1</ignoredblank> <printed>4</printed> </records> </schema> </xmlfy_summary>