xpathquery Questions

5

Solved

I want to write something of the sort: //a[not contains(@id, 'xx')] (meaning all the links who's 'id' attribute doesn't contain the string 'xx') I can't find the right syntax.
Spiculum asked 11/10, 2009 at 15:40

1

In this SOAP XML file, how can I get the 7 on a using a XPath query? <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
Carrew asked 23/5, 2013 at 14:53

3

Solved

The title sums it up. I'm trying to query an HTML file for all div tags that contain the class result and does not contain the class grid. <div class="result grid">skip this div</div> ...
Gitt asked 14/1, 2013 at 18:16

1

Solved

I would like to do a negative xpath query like this: $xpath->query(//a[DoesNotContain(@class,'some_class')]); I know about this $xpath->query(//a[contains(@class,'some_class')]);
Eyre asked 13/9, 2011 at 1:14

2

Solved

How do I print the an attribute of an element? example: $doc = new DOMDocument(); @$doc->loadHTML($page); $xpath = new DOMXPath($doc); $arts= $xpath->query("/td"); foreach ($arts a...
Liberia asked 10/7, 2010 at 17:5
1

© 2022 - 2024 — McMap. All rights reserved.