I would like to create an XML like this but I can not do it ..
<content type="application/xml">
<m:properties>
<d:Description>test</d:Description>
<d:IncidentId m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:IncidentId>
<d:ResponsibleContactId m:type="Edm.Boolean" m:null="true" />
My code in PHP :
$sxe = new SimpleXMLElement('<content></content>');
$prop = $sxe->addChild('m:proprieties');
$prop->addChild('d:Description', 'test');
$prop->addChild('d:IncidentId', '0');
$prop->addChild('d:ResponsibleContactId', '0');
Return this XML without prefix m and d:
<content>
<proprieties>
<description>PHP2: More Parser Stories</description>
<incidentid>0</incidentid>
<responsiblecontactid>0</responsiblecontactid>
</proprieties>...
How do I put my prefix "m:" and "d:"? Thanks