Test results for Linux |
Test for a summary element printed inside XML comments at the end of normal XML output without any digests being processed.
Pass
cat _INPUT_DATA_ ¦ xmlfy -sc -sn
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> <!-- start-of-summary-comment <xmlfy_summary> <version>1.5.7</version> <timestamp> <start>Mon Feb 3 23:37:04 2020</start> <end>Mon Feb 3 23:37:04 2020</end> </timestamp> <args> <command> <arg>xmlfy</arg> <arg>-X</arg> <arg>newline</arg> <arg>unix</arg> <arg>-sc</arg> <arg>-sn</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> end-of-summary-comment -->