@@ -6,18 +6,20 @@ Lenses and traversals for [xml-conduit](http://hackage.haskell.org/package/xml-c
9− > doc <- Text.XML.readFile def "examples/books.xml"
10+> doc <- Text.XML.readFile def "examples/books.xml"
11− > doc ^.. root . el "books" ./ el "book" . attributeIs "category" "Textbooks" ./ el "title" . text
12+> doc ^.. root . el "books" ./ el "book" . attributeIs "category" "Textbooks" ./ el "title" . text
12− ["Learn You a Haskell for Great Good!","Programming in Haskell","Real World Haskell"]
13+["Learn You a Haskell for Great Good!","Programming in Haskell","Real World Haskell"]
14− > lengthOf ?? doc $ root . el "books" ./ el "book"
15+> lengthOf ?? doc $ root . el "books" ./ el "book"
17− > doc ^? root . el "books" ./ attributeIs "category" "Joke" ./ el "title" . text
18+> doc ^? root . el "books" ./ attributeIs "category" "Joke" ./ el "title" . text
18− Just "Functional Ikamusume"
19+Just "Functional Ikamusume"
20− > doc & root . el "books" ./ el "book" ./ el "pages" . text <>~ " pages" & renderLBS def & BL.putStrLn
21+> doc & root . el "books" ./ el "book" ./ el "pages" . text <>~ " pages" & renderLBS def & BL.putStrLn
23<?xml version="1.0" encoding="ISO-8859-1"?>
25<?xml version="1.0" encoding="ISO-8859-1"?>