This project has moved and is read-only. For the latest updates, please go here.
2
Vote

XPath Select Nodes Issue

description

Hi!

I want to select all html nodes which contains a attribute started with 'on' e.g. onsubmit, onselect, onclick, etc.

With the XPath Visualizer Tool v1.3.0.6 it works with this simple XPath expression:
//@[starts-with(name(), 'on')]

But with HTML-Agility-Pack this not works: doc.DocumentNode.SelectNodes("//@
[starts-with(name(), 'on')]")

Thanks :)

comments