XML Documents and components 
Author Message
 XML Documents and components

I am trying to pass a parsed document into a component from an ASP page. The
QueryInterface call returns S_OK; however, the single node1 is not being
set. Yet the ASP selectSingleNode gets the node. I am at a loss please help.

ASP page

    set Doc = server.CreateObject("MSXML2.DOMDocument.3.0")
    set listgen=server.CreateObject("Newparse.parse")
    set resul=Doc.selectSingleNode("SUBMISSION/USERID")

COM Component Function

    STDMETHODIMP CParse::myparse(IDispatch* userRequest)
         HRESULT hr;
         IXMLDOMDocument2* docPtr;
         MSXML2::IXMLDOMNode* node1;

         if(FAILED(hr = userRequest->QueryInterface(IID_IXMLDOMDocument2,
(void**) &docPtr)))
              return S_FALSE;
        return S_OK;

Tue, 14 Oct 2003 06:34:30 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Downloading XML data in an ATL component

2. Any thoughts on XML editor UI Component?

3. Validating an XML document in the VS .NET IDE

4. how to make multiple node queries on xml document using Xpath

5. Are XML Documents the C# response to Javadocs?

6. Prinitng a Html or an Xml Document

7. Human-readable documents from C# XML comments

8. Embed xml document in assembly

9. How to read/write xml document using xpath?

10. what method to use to load XML document to class

11. Parsing XML documents into structures?

12. Binding XML document with Listbox ?


Powered by phpBB® Forum Software