Test results for Solaris x86

test_001240_option_xmlformat

Test description

Test for user specified XML format output control by re-representing the
normal XML output in a SOAP 1.2 envelope. 

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -R . -X SOAP1.2 -T1 number

Input data

Word. Two words. Now three words. This is four words.

Schema

<!ELEMENT paragraph (sentence+)>
<!ELEMENT sentence (startword, middleword*, endword)>
<!ELEMENT startword (#PCDATA)>
<!ELEMENT middleword (#PCDATA)>
<!ELEMENT endword (#PCDATA)>

Output result

<?xml version="1.0?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
  <env:Header>
    <xh:xmlfyHeader xmlns:xh="http://xmlfy.sourceforge.net/soap-xmlfyHeader" env:mustUnderstand="false">
      <xh:program>xmlfy</xh:program>
      <xh:version>1.5.6</xh:version>
      <xh:timestamp>1365993160</xh:timestamp>
      <xh:sed>hook</xh:sed>
    </xh:xmlfyHeader>
  </env:Header>
  <env:Body>
    <x:paragraph xmlns:x="http://xmlfy.sourceforge.net/soap-xmlfy"
             env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
      <x:sentence1>
        <x:startword>Two</x:startword>
        <x:endword>words</x:endword>
      </x:sentence1>
      <x:sentence2>
        <x:startword>Now</x:startword>
        <x:middleword>three</x:middleword>
        <x:endword>words</x:endword>
      </x:sentence2>
      <x:sentence3>
        <x:startword>This</x:startword>
        <x:middleword>is</x:middleword>
        <x:middleword>four</x:middleword>
        <x:endword>words</x:endword>
      </x:sentence3>
    </x:paragraph>
  </env:Body>
</env:Envelope>

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