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.DataEntryTemplate myTemplate = myKovis.DataEntryTemplates[templateId];
KOCLIENTLib.Document myDoc = myTemplate.CreateDocument();
MSXML2.IXMLDOMDocument myXML = myDoc.get_xml();
XmlDocument myNewDoc = (XmlDocument)myXML;
myDoc.set_xml((MSXML2.IXMLDOMDocument) myNewDoc);
Thanks
Chander
From http://www.developmentnow.com/g/49_2...dotnet-xml.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com