You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried various xpath expressions to get all images, within lists, divs, etc. But, not all images (or script tags) are found.
Not sure if its an xpath issue, but how can the entire tree be iterated through, searching for these tags ... while it may be slower, brute force sometimes works.
Thanks,
Peter
The text was updated successfully, but these errors were encountered:
The code I used earlier is below. In the interim, I just iterated through the whole tree, looking for child tags that matched what I wanted (brute force). While not elegant, it worked.
This is re-used in a method, passing in various tags, like "script" or "img"
NSArray * elements = [doc searchWithXPathQuery:[@"//" stringByAppendingFormat:@"%@", tagName]];
Clearly, not the most exhaustive REGEX expression, so I tried this as wellL
Hi,
I have tried various xpath expressions to get all images, within lists, divs, etc. But, not all images (or script tags) are found.
Not sure if its an xpath issue, but how can the entire tree be iterated through, searching for these tags ... while it may be slower, brute force sometimes works.
Thanks,
Peter
The text was updated successfully, but these errors were encountered: