I'm having the following problem
I want to create a XML document like
<?xml version="1.0" encoding="utf-8"?>
<RedlineXML
xmlns="urn:autodesk.com:dsd:RedlineXML_v_002.xdr"
xmlns:redline="urn:autodesk.com:dsd:RedlineXML_v_0 02.xdr">
<redline:RedlineMarkup>
<redline:MarkupPlanes>
<redline:MarkupPlane name="Model" />
</redline:MarkupPlanes>
</redline:RedlineMarkup>
</RedlineXML>
I've managed to create something like
<RedlineXML>
<RedlineMarkup>
<MarkupPlanes>
<MarkupPlane name="MyName"/>
</MarkupPlanes>
</RedlineMarkup>
</RedlineXML>
But I'm missing the part of the namespaces
I don't know how to add the namespace to each of the nodes
<redline:Tags>
This is the relevant part of the code I have so far......
XmlDocument doc = new XmlDocument();
XmlElement rootNode = doc.CreateElement( "RedlineXML" ) ;
doc.AppendChild( rootNode );
XmlElement markupNode = doc.CreateElement(
"RedlineMarkup" ) ;
rootNode.AppendChild( markupNode );
// Rest of code
doc.Save( "Redline.xml" );
Thanks in advance
Tincho