Test results for Linux |
Test for correct functionality of the examples used in the xmlfy documentation.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -s
1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9
<!ELEMENT command (line_a) (line_b?)> <!ELEMENT line_a (b, c)> <!ELEMENT line_b (a, b, c)> <!ELEMENT line_b (d)> <!ELEMENT a (#PCDATA)> <!ELEMENT b (#PCDATA)> <!ELEMENT c (#PCDATA)> <!ELEMENT d (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE command SYSTEM "schema.dtd"> <command> <line_b> <d>1</d> </line_b> <line_a> <b>1</b> <c>2</c> </line_a> </command> <command_summary> <version>1.5.7</version> <timestamp> <start>Wed Feb 5 22:23:19 2020</start> <end>Wed Feb 5 22:23:19 2020</end> </timestamp> <md5_input>4a7ad662b98255107ca97c9526f8d2b0</md5_input> <md5_output>46b72de954d2fef7bc260da4539e4ec7</md5_output> <sha512_input>fb874eba8e7bb87e5f440cddb9a84681706db5ae78a6c1f906fe8f88e4d2ae5e3195e110987a4ccec0e52df1e57ace1d6788f2bd87c1c06e855df1905a9a98ed</sha512_input> <sha512_output>72ffe9d0344aa25673ad2db7d0a91fd1ebe1882392309cdae0537df4c66b69fd5ce11a11de6c6cc03762cfd993b9af480af59873867707a048fef0da80e7e151</sha512_output> <args> <command> <arg>xmlfy</arg> <arg>-X</arg> <arg>newline</arg> <arg>unix</arg> <arg>-S</arg> <arg>schema.dtd</arg> <arg>-s</arg> </command> <schema> </schema> </args> <separator> <level1> <delimiter>NEWLINE</delimiter> </level1> <level2> <delimiter>WHITESPACE</delimiter> </level2> </separator> <schema> <default>false</default> <file>schema.dtd</file> <interpreter>DTD</interpreter> <parent> <name>command</name> <matchmode>DEFAULT</matchmode> <elements> <line_a> <match_control>MATCH_ONE</match_control> <instance1> <fields>2</fields> </instance1> </line_a> <line_b> <match_control>MATCH_NONE_OR_ONE</match_control> <instance1> <fields>3</fields> </instance1> <instance2> <fields>1</fields> </instance2> </line_b> </elements> </parent> <records> <elements> <line_a> <total>1</total> <instance1>1</instance1> </line_a> <line_b> <total>1</total> <instance1>0</instance1> <instance2>1</instance2> </line_b> </elements> <read>9</read> <expelled>0</expelled> <matched>2</matched> <unmatched>7</unmatched> <ignoredblank>0</ignoredblank> <printed>2</printed> </records> </schema> </command_summary>