Test results for Linux |
Test for key/value pairing functionality in a multi level environment. The first field of the new level should become the element name for that level.
Pass
cat _INPUT_DATA_ ¦ xmlfy -k -F2 : -F2 , -F3 "=" -t -q
# comment @ package sdesc: "some text" ldesc: "some text" skip: curr: version=1.4 prev: version=1.2,version=1.3 test: version category: name1[ name2...] requires: package[ package...] external-source: package
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xmlfy SYSTEM "xmlfy.dtd"> <xmlfy> <line> <field># comment</field> </line> <line> <field>@ package</field> </line> <sdesc>some text</sdesc> <ldesc>some text</ldesc> <skip></skip> <curr> <version>1.4</version> </curr> <prev> <version>1.2</version> <version>1.3</version> </prev> <test>version</test> <category>name1[ name2...]</category> <requires>package[ package...]</requires> <external-source>package</external-source> </xmlfy>