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="" xmlns:ws="" xmlns:v01="">
                  <v01:Property key="REPORT_URL" value="/reports/test/Letter"/>
                  <v01:Property key="OUTPUT_FORMAT" value="PDF"/>
                  <v01:Property key="EMAIL_TO" value=""/>
                  <Commodity>Invalid product</Commodity>

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?