Test results for Win32 Console

test_001160_option_keyvaluepairs

Test description

Test for key/value pairing functionality in a multi level environment.
The first field of the new level should become the element name for that
level.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -k -F2 : -F2 , -F3 "=" -t -q

Input data

# comment
@ package
sdesc: "some text"
ldesc: "some text"
skip:
curr: version=1.4
prev: version=1.2,version=1.3
test: version
category: name1[ name2...]
requires: package[ package...]
external-source: package

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line>
    <field># comment</field>
  </line>
  <line>
    <field>@ package</field>
  </line>
  <sdesc>some text</sdesc>
  <ldesc>some text</ldesc>
  <skip></skip>
  <curr>
    <version>1.4</version>
  </curr>
  <prev>
    <version>1.2</version>
    <version>1.3</version>
  </prev>
  <test>version</test>
  <category>name1[ name2...]</category>
  <requires>package[ package...]</requires>
  <external-source>package</external-source>
</xmlfy>

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