[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] QI from IXMLDOMNode -> IXMLDOMElement on MSXML3
Hello, all. I am making an application with C++ using MSXML, and I recently updated MSXML to MSXML3 that caused a trouble. In my program, I use conversions from IXMLDOMNode to IXMLDOMElement with Query-Interface. When I used MSXML.dll, it worked fine, but since I changed the parser to MSXML3, this conversion fails and returns NULL. In detail, in the following program the spElement will be set as NULL: CComPtr<IXMLDOMNode> spNode = ....; CComQIPtr<IXMLDOMElement> spElement = spNode; Is this a right behavior? Or an enbug of MSXML3? But if this is a right behavior, I can't use a node fetched from IXMLDOMNodeList as an IXMLDOMElement. Please someone advise me. Thank you in advance. -- Shinichiro HAMADA
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|