/FluentXPath

Build query XPath with fluent style code

Primary LanguageC#OtherNOASSERTION

NuGet MIT Licence

Fluent XPath

Build query XPath with fluent style code

Usage

string xpath = new XPathBuilder()
	.AllDescedentElements()
	.Elements("div").WhereAttributeEquals("class", "line")
	.Elements("a")
	.Or()
	.AllDescedentElements()
	.Elements("div").WhereAttributeEquals("class", "line odd")
	.Elements("a")
	.Or()
	.AllDescedentElements()
	.Elements("blockquote")
	.Elements("font")
	.Elements("a");

Thanks to