Wrox Home  
Search P2P Archive for: Go

  Return to Index  

xml thread: Question: how using contains in XPath Query ?


Message #1 by "Marat R. Abasaliyev" <marat@i...> on Sat, 2 Mar 2002 18:01:39 +0300
Hello, Stanislavs.

You wrote 4 марта 2002 г., 12:49:33:

SM> the problem is strings functions appeared only in xml version 4.0 
SM> :(

SM> (i'm using your xml sample)

SM>                 var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.4.0");
SM>                 xmlDoc.async = false;
SM>                 xmlDoc.load("E:/test.xml");
SM>                 var str = "ar";
SM>                 var xp = "//item[contains(@fname, '"+str+"')]";
SM>                 var list = xmlDoc.selectNodes(xp);


SM> nodes which contains "ar" should be inside "list"

SM> good luck
SM> Stas



SM> -----Original Message-----
SM> From: Marat R. Abasaliyev [mailto:marat@i...]
SM> Sent: Monday, March 04, 2002 11:03 AM
SM> To: XML
SM> Subject: [xml] RE: Question: how using contains in XPath Query ?


SM> Hello !

SM> I using MSXML2.DomDocument and method SelectNodes

SM> Best regards, Marat R. Abasaliyev, mailto:marat@i...


SM> ---
SM> 
SM> 


SM> ---
SM> 
SM> 

Thank you very much !!!!!
All working !!!

Best regards, Marat R. Abasaliyev, mailto:marat@i...


  Return to Index