Test results for Win32 Console

test_001130_option_quotedfields

Test description

  Test for quote handling of fields inside the input record.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -q -F ,

Input data

Team, Won, Lost, Drawn
"Barcelona", 5, 1, 2
"Manchester United", 4, 2, 2
,,,
"AC Milan", 2, 2, 4

"  Rail Madrid", 2, 2, 4

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line>
    <field>Team</field>
    <field> Won</field>
    <field> Lost</field>
    <field> Drawn</field>
  </line>
  <line>
    <field>Barcelona</field>
    <field> 5</field>
    <field> 1</field>
    <field> 2</field>
  </line>
  <line>
    <field>Manchester United</field>
    <field> 4</field>
    <field> 2</field>
    <field> 2</field>
  </line>
  <line>
    <field></field>
    <field></field>
    <field></field>
    <field></field>
  </line>
  <line>
    <field>AC Milan</field>
    <field> 2</field>
    <field> 2</field>
    <field> 4</field>
  </line>
  <line>
    <field>  Rail Madrid</field>
    <field> 2</field>
    <field> 2</field>
    <field> 4</field>
  </line>
</xmlfy>

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