![]() You should only compare IUnknown interface pointers. InterfaceĭOMDocument is a wrapper object and each query for DOMDocument returns a new wrapper. You can call the QueryInterface method on DOMDocument to get the following interfaces. In addition to the DOM interfaces, DOMDocument implements a number of standard COM interfaces. Hr = pXMLDoc->QueryInterface(IID_IXMLDOMNode, (void **)&pXDN) Hr = CoCreateInstance(CLSID_DOMDocument30, NULL, CLSCTX_INPROC_SERVER, The following C/C++ example creates DOMDocument and queries for the other interfaces. Var objFTDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.6.0") var objDoc = new ActiveXObject("Msxml2.DOMDocument.6.0") The following JScript examples demonstrate how to create the two types of objects. If you are writing an application where multiple threads access will simultaneously access a DOM, use the free threaded model ( Msxml2.FreeThreadedDOMDocument.3.0 or Msxml2.FreeThreadedDOMDocument.6.0). If you are writing a single threaded application (or a multi-threaded application where only one thread accesses a DOM at one time), use the rental threaded model ( Msxml2.DOMDocument.3.0 or Msxml2.DOMDocument.6.0). Includes members for retrieving and creating all other XML objects. Represents the top level of the XML source. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |