Skip to content

riczhao/xpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

package xpath for dart

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages