Skip to content


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
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.
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
- integrated grammars
- with some expression examples
- multiple elements, one pass / context switching
- exslt / standard library
- json
- language integration
- pruning
- structural parsing
- Ruby/python/json
- structural parse
- size comparision with XSLT
- speed comparision with nokogiri, hpricot
Jump to Line
Something went wrong with that request. Please try again.