Good day!
I need generate a xml structure but i ca't delete an attribute, this is my code.
<code>
XmlDocument cfdDocument;
XmlElement Complemento, Leyenda;
cfdDocument = new XmlDocument();
cfdDocument.createElement3("fiscal", "Fiscales", "http://");
Complemento = cfdDocument.createElement3("fiscal", "Fiscales", "http://");
Complemento.setAttribute('version',"1.0");
Leyenda = cfdDocument.createElement3("fiscal", "Leyenda", "http://");
Leyenda.setAttribute('texto',"Description....");
Leyenda.setAttribute('norma',"Norma...");
Leyenda.setAttribute('disposicion',"Disposicion....");
Complemento.appendChild(Leyenda);
</code>
And this is th output XML
<fiscal:Fiscales version="1.0" xmlns:fiscal="http://">
<fiscal:Leyenda texto="Description...." norma="Norma..." disposicion="Disposicion...." />
</fiscal:Fiscales>
How i can delete this attribute xmlns:fiscal="http://" ?? y try a string empty createElement3("fiscal", "Leyenda", "") but it does not work
Thanks in advance.!!!!
*This post is locked for comments