Test results for Solaris x86 |
Test for quote handling using an array of quote characters that are paired with each other. Also test for correct functionality when quote layering of the pairs.
Pass
cat _INPUT_DATA_ ¦ xmlfy -F2 : -F2 " " -q2 -Q2 '[]{}""' -k -t
eg1:truncated[this "text" is quoted]truncated eg2:[this "text" is quoted]:[and so is this]:but not this eg3:[this "text" is quoted]:{and so is this "text"}:"and even this" eg4:{this ["text"] is quoted} eg5:{ print("%s %s", "Hello", "[World]"); return(0); }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xmlfy SYSTEM "xmlfy.dtd"> <xmlfy> <eg1>this "text" is quoted</eg1> <eg2> <field>this "text" is quoted</field> <field>and so is this</field> <field>but</field> <field>not</field> <field>this</field> </eg2> <eg3> <field>this "text" is quoted</field> <field>and so is this "text"</field> <field>and even this</field> </eg3> <eg4>this ["text"] is quoted</eg4> <eg5>print("%s %s", "Hello", "[World]"); return(0);</eg5> </xmlfy>