Test results for Solaris x86

test_001230_option_tag

Test description

Test for a elements with user specified tag name modifications at the levels
specified. The root element name should get a new name that also appears in
the prologue, the level 1 element names should have theeir level prefixed
before their name, and all elements should have their sequence number
suffixed at the end of their element name for all levels except the root
level.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -T number -T1 level -T0 name results

Input data

Team Won Lost Drawn
Barcelona 5 1 2
Manchester 4 2 2
 
Milan 2 2 4

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE results SYSTEM "xmlfy.dtd">
<results>
  <L1line1>
    <field1>Team</field1>
    <field2>Won</field2>
    <field3>Lost</field3>
    <field4>Drawn</field4>
  </L1line1>
  <L1line2>
    <field1>Barcelona</field1>
    <field2>5</field2>
    <field3>1</field3>
    <field4>2</field4>
  </L1line2>
  <L1line3>
    <field1>Manchester</field1>
    <field2>4</field2>
    <field3>2</field3>
    <field4>2</field4>
  </L1line3>
  <L1line4>
    <field1>Milan</field1>
    <field2>2</field2>
    <field3>2</field3>
    <field4>4</field4>
  </L1line4>
</results>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".