I'm using classic ASP, XML and xPath to select some data and I'm trying to make a selection on the following xml where the node id_attribut contains "xc". So I would like to only select the first 2 attribut.
my xpath is :
"//attribut[contains(id_attribut,"xc")]"
but ASP is giving me the error:
msxml3.dll error '80004005' Unknown method. //attribut[-->contains(id_attribut<--,"xc")] /products/list_products.asp, line 54
Is contains() not a valid function for xPath in classic ASP (not ASP.net)?
I have the following XML:
<attributes>
<attribut>
<id_attribut>xc_elite</id_attribut>
<level>4</level>
<pty>1</pty>
<parent>xc</parent>
</attribut>
<attribut>
<id_attribut>xc_performance</id_attribut>
<level>4</level>
<pty>2</pty>
<parent>xc</parent>
</attribut>
<attribut>
<id_attribut>alp_elite</id_attribut>
<level>4</level>
<pty>1</pty>
<parent>alp</parent>
</attribut>
</attributes>
Thanks for any help!!