xpath 0.1.0 copy "xpath: ^0.1.0" to clipboard
xpath: ^0.1.0 copied to clipboard

A starting point for Dart libraries or applications.

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:xpath/xpath.dart';

String html = '''
<html>
 <body id="content">
   <h1>hello</h1>
 </body>
</html>
'''

main() {
  var tree = Etree.fromString(html);
  print(tree.xpath('//*[@id="content"]/h1/text()'[0].name); // print hello
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

3
likes
30
pub points
56%
popularity

Publisher

unverified uploader

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on xpath