Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: reparsley
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 1.276 kb
Abstract
================================================================
A common programming task is data extraction from xml and html documents. I introduce parsley, an embedded language (ala SQL, regular expressions) that improves the usability and/or speed of current extraction techniques.
Introduction
================================================================
Today, developers use a couple toolsets to do data extraction. Many developers use libraries like Hpricot for Ruby and Beautiful Soup for Python. These libraries allow extraction of xml subtrees via XPath or CSS selectors. These subtrees are futher refined using the scripting language, often with the help of regular expressions.
Other developers use XSLT. While fast, mature, and conceptually elegant, XSLT
- current techniques
- benefits of standardization
- best of current
Features
================================================================
- integrated grammars
- with some expression examples
- multiple elements, one pass / context switching
- exslt / standard library
- json
- language integration
- pruning
- structural parsing
Examples
- Ruby/python/json
- structural parse
-
Benchmarks
- size comparision with XSLT
- speed comparision with nokogiri, hpricot
Conclusion
Jump to Line
Something went wrong with that request. Please try again.