Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: VC++ use of msxml and XPath failing

From: Marvin Smit <marvin.smit@-----.--->
To: 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?



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent