Test results for Solaris x86 |
Test for elements generated by regular expressions that have the element names that are specified in the option. Also test the trimtagclose option produces a correct close tag.
Pass
cat _INPUT_DATA_ ¦ xmlfy -T1 name 'regex comment="named matches"' -W:'3-$' 'i/.*(abc).*(DeF.*$)/the_ayes regex="1",the_dees regex="two"' -t -X trimtagclose
line 1 abc line 2 abc def line 3 abc line 4 abc def line 5 ghi line 6 abc
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xmlfy SYSTEM "xmlfy.dtd"> <xmlfy> <regex comment="named matches"> <the_ayes regex="1">abc</the_ayes> <the_dees regex="two">def</the_dees> </regex> </xmlfy>