Test results for Linux |
Test for delimiter handling when delimiter strings are also present in larger delimiter strings. The larger delimiter strings should be matched before the smaller delimiter strings.
Pass
cat _INPUT_DATA_ ¦ xmlfy -F1 aa -F1 aaaa -F1 aaa -A delimiter
zz zzz zzzz aaa ccc cc aaaa ddd dd aa eee ee
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xmlfy SYSTEM "xmlfy.dtd"> <xmlfy> <line delimiter="aaa"> <field delimiter="WHITESPACE">zz</field> <field delimiter="WHITESPACE">zzz</field> <field delimiter="WHITESPACE">zzzz</field> </line> <line delimiter="aaaa"> <field delimiter="WHITESPACE">ccc</field> <field delimiter="WHITESPACE">cc</field> </line> <line delimiter="aa"> <field delimiter="WHITESPACE">ddd</field> <field delimiter="WHITESPACE">dd</field> </line> <line delimiter=""> <field delimiter="WHITESPACE">eee</field> <field delimiter="WHITESPACE">ee</field> </line> </xmlfy>