Test results for Linux |
Test for a new elements re-inserted at the levels specified with and without scope restrictions.
Pass
cat _INPUT_DATA_ ¦ xmlfy -T0 name results -T1 insert author "Arthur Gouros" -T1 reinsert initials "A.G." -T2:2-$ insert league premier -T2:1 insert field "League Type" -T2:1,3r reinsert draw box
Team Won Lost Drawn Barcelona 5 1 2 Manchester 4 2 2 Milan 2 2 4
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE results SYSTEM "xmlfy.dtd"> <results> <author>Arthur Gouros</author> <initials>A.G.</initials> <line> <field>League Type</field> <draw>box</draw> <field>Team</field> <field>Won</field> <draw>box</draw> <field>Lost</field> <draw>box</draw> <field>Drawn</field> </line> <initials>A.G.</initials> <line> <league>premier</league> <draw>box</draw> <field>Barcelona</field> <field>5</field> <draw>box</draw> <field>1</field> <draw>box</draw> <field>2</field> </line> <initials>A.G.</initials> <line> <league>premier</league> <draw>box</draw> <field>Manchester</field> <field>4</field> <draw>box</draw> <field>2</field> <draw>box</draw> <field>2</field> </line> <initials>A.G.</initials> <line> <league>premier</league> <draw>box</draw> <field>Milan</field> <field>2</field> <draw>box</draw> <field>2</field> <draw>box</draw> <field>4</field> </line> </results>