Test results for Linux |
Test for user specified XML format output control by re-representing the normal XML output in a SOAP 1.2 envelope.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -R . -X SOAP1.2 -T1 number
Word. Two words. Now three words. This is four words.
<!ELEMENT paragraph (sentence+)> <!ELEMENT sentence (startword, middleword*, endword)> <!ELEMENT startword (#PCDATA)> <!ELEMENT middleword (#PCDATA)> <!ELEMENT endword (#PCDATA)>
<?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.7</xh:version> <xh:timestamp>1580733421</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>