delphi - Obtain IXMLDOMDocument2 from IXMLDocument -


i using delphi 2010 stock standard vcl libraries. target system win32.

if have reference ixmldocument, how can obtain ixmldomdocument2 interface underlying object ixmldocument wraps?

function getxmldomdocument2(const xmldocument: ixmldocument): ixmldomdocument2; begin result := (xmldocument.domdocument ixmldomnoderef).getxmldomnode ixmldomdocument2; end; 

Comments