Hi! As i'm new this XML and DOMDocument, can someone help me in casting DOMDocument schema into XMLDocument and assign the value. below attached is the piece of code which uses MSXML2 with a Thirdparty API.
MyDoc is a Document created using Thirdparty API.
MyDoc.get_XML returns the DOCDocument Schema of the Template for the id passed.
When i tried to cast the DoMDocument into XMLDocument getting error message
"Specified cast is not valid"
KOCLIENTLib.Dat aEntryTemplate myTemplate = myKovis.DataEnt ryTemplates[templateId];
KOCLIENTLib.Doc ument myDoc = myTemplate.Crea teDocument();
MSXML2.IXMLDOMD ocument myXML = myDoc.get_xml() ;
XmlDocument myNewDoc = (XmlDocument)my XML;
myDoc.set_xml(( MSXML2.IXMLDOMD ocument) myNewDoc);
Thanks
Chander
From http://www.developmentnow.com/g/49_2...dotnet-xml.htm
Posted via DevelopmentNow. com Groups
MyDoc is a Document created using Thirdparty API.
MyDoc.get_XML returns the DOCDocument Schema of the Template for the id passed.
When i tried to cast the DoMDocument into XMLDocument getting error message
"Specified cast is not valid"
KOCLIENTLib.Dat aEntryTemplate myTemplate = myKovis.DataEnt ryTemplates[templateId];
KOCLIENTLib.Doc ument myDoc = myTemplate.Crea teDocument();
MSXML2.IXMLDOMD ocument myXML = myDoc.get_xml() ;
XmlDocument myNewDoc = (XmlDocument)my XML;
myDoc.set_xml(( MSXML2.IXMLDOMD ocument) myNewDoc);
Thanks
Chander
From http://www.developmentnow.com/g/49_2...dotnet-xml.htm
Posted via DevelopmentNow. com Groups
Comment