yuuko 2009.10.23 → 2009.10.23.1
raw patch · 4 files changed
+44/−8 lines, 4 files
Files
- changelog.md +7/−0
- readme.md +25/−1
- src/Text/HTML/Yuuko.hs +6/−3
- yuuko.cabal +6/−4
changelog.md view
@@ -1,3 +1,10 @@+2009.10.23.1+------------++### Feature++* show subtree string+ 2009.10.23 ----------
readme.md view
@@ -7,6 +7,30 @@ ======= - yuuko "//body/text()" "<html><body>hi</body></html>"+ yuuko "//body" "<html><body>hi</body></html>" > ["hi"]++Tutorial+========++ cabal update+ cabal install yuuko++ ghci+ + > :m + Text.HTML.Yuuko+ > -- with XPath selectors+ > yuuko "//body" "<html><body>hi</body></html>"++Reference+=========++* [HXT](http://www.fh-wedel.de/~si/HXmlToolbox/)+* [TagSoup](http://community.haskell.org/~ndm/tagsoup/)+* [XPath](http://www.w3.org/TR/xpath)+* [XML related libraries on Hackage](http://hackage.haskell.org/packages/archive/pkg-list.html#cat:xml)++<br/>++
src/Text/HTML/Yuuko.hs view
@@ -8,14 +8,17 @@ runX process where- args = + read_args = [ (a_validate, v_0) , (a_parse_html, v_1) , (a_encoding, utf8) , (a_issue_warnings, v_0) ]+ + write_args = + [ (a_encoding, utf8) ] process =- readString args s+ readString read_args s >>> XS.getXPathTreesInDoc expr- >>> getText+ >>> writeDocumentToString write_args
yuuko.cabal view
@@ -1,13 +1,15 @@ Name: yuuko-Version: 2009.10.23+Version: 2009.10.23.1 Build-type: Simple Synopsis: A transcendental HTML parser gently wrapping the HXT library Description: Parse without thinking ...- - yuuko "//body/text()" "<html><body>hi</body></html>"- + .++ yuuko "//body" "<html><body>hi</body></html>"+ .+ > ["hi"] License: BSD3