Adding NameSpaces to an XML document

Adding NameSpaces to an XML document

  
Hi All,

I'm trying to create an XML document that should reflect the following example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.ship.steinweg.com/" xmlns:v01="http://www.steinweg.com/message/v01_1">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:runReport>
         <arg0>
            <v01:MessageHeader>
               <v01:messageVersion>v01_0</v01:messageVersion>
               <v01:PropertySet>
                  <v01:Property key="REPORT_URL" value="/reports/test/Letter"/>
                  <v01:Property key="OUTPUT_FORMAT" value="PDF"/>
                  <v01:Property key="EMAIL_TO" value="emailaddress@here.now"/>
               </v01:PropertySet>
            </v01:MessageHeader>
            <v01:MessageBody>
               <S_JASPER_ISSUEWARRANTLETTER>
                  <WarrantList>
                     <Text>
                        <Value>RD1034456</Value>
                     </Text>
                  </WarrantList>
                  <WarrantsTotal>1</WarrantsTotal>
                  <Commodity>Invalid product</Commodity>
                  <Location>Rotterdam</Location>
               </S_JASPER_ISSUEWARRANTLETTER>
            </v01:MessageBody>
         </arg0>
      </ws:runReport>
   </soapenv:Body>
</soapenv:Envelope>

There are two issues I have with creating this:
  • I'm having no idea how to create the envelope (The first row containing soapenv: etc..)
  • And I have no Idea how to add the namespaces xmlns:, ws:, v01: and soapenv: to the elements
I have been using the Xml extension which looks pretty advanced, but seems to lack this functionality.
I can add the root element, the child elements and the attributes without any problem.
Does anybody know a good way to add the above NameSpaces?