Here is an example of XML I need to produce:
My question is how can I add the schema references (xmlns:xsd, xmlns:xsi) using only the XMLDOM parser? I figured out that I can add the version line using oxmldom.CreateProcessingInstruction, but the schema line stumps me.
If I try adding "xmlns:xsd" as an attribute to the <MyMessage> element, it tells me I cannot modify a read-only value when I go to set it's value.
Any help would be... well... helpful!
Thanks,
Andy
Code:
<?xml version="1.0"?>
<MyMessage
xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL]
xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
<MyAck/>
</MyMessage>
My question is how can I add the schema references (xmlns:xsd, xmlns:xsi) using only the XMLDOM parser? I figured out that I can add the version line using oxmldom.CreateProcessingInstruction, but the schema line stumps me.
If I try adding "xmlns:xsd" as an attribute to the <MyMessage> element, it tells me I cannot modify a read-only value when I go to set it's value.
Any help would be... well... helpful!
Thanks,
Andy