![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - VC++ use of msxml and XPath failing [Thread Next] Re: VC++ use of msxml and XPath failingTo: NULL Date: 7/4/2005 1:52:00 PM Hi, could you post a few lines of your code that are causing the probs? Marvin Smit On 28 Jun 2005 07:32:11 -0700, jmohyla@g... wrote: >I am importing MSXML and using the DOM to create an XML file. Part of >the creation process is to look for the existance of a given node. If >it does not exists, create the node, else use it as an insert point. > >// how I'm using MSXML >#import "msxml4.dll" >using namespace MSXML2; >if (FAILED(hr = m_pDoc.CreateInstance(__uuidof(DOMDocument40)))) > > >Sample of the XPATH I'm trying to use with selectSingleNode >//schematic-wd-procref[@type='Schem' and @id='303-14A-00-500' and >@proc-uid='Z1P00_XXX566' and >@title='@303-14A-00-500'][count(qualifiers/qualifier_entry) = >'2'][qualifiers/qualifier_entry/@id='Q_202'][qualifiers/qualifier_entry/@id='Q_5'] > >I have tested this XPath in Cooktop and it works. But in the C++ code I >get the hr error 0x80004005 for both cases where the node does and does >not exist. > >I am using stringstream to build the XPATH data and then converting it >to a _bstr_t. > >Can anyone tell me where I am going wrong? | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
