Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jefersonsv/fluentxpath
Build query XPath with fluent style code
https://github.com/jefersonsv/fluentxpath
Last synced: 3 days ago
JSON representation
Build query XPath with fluent style code
- Host: GitHub
- URL: https://github.com/jefersonsv/fluentxpath
- Owner: jefersonsv
- License: other
- Created: 2016-12-22T13:26:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T08:29:40.000Z (about 3 years ago)
- Last Synced: 2024-12-14T03:45:25.156Z (14 days ago)
- Language: C#
- Size: 2.82 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![NuGet](https://img.shields.io/nuget/v/FluentXpath.svg)](https://www.nuget.org/packages/FluentXpath/)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
# Fluent XPath
Build query XPath with fluent style code
# Usage
``` C#
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
- [Microsoft](https://msdn.microsoft.com/en-us/library/ms256086.aspx)
- [Rawgit](https://rawgit.com/)
- [w3schools](http://www.w3schools.com/xml/xpath_syntax.asp)
- [Jeferson Tenorio](https://br.linkedin.com/in/jefersontenorio) :smile: