Remove some extraneous slashes in the README
Getty Ritter
8 years ago
| 14 | 14 | b <- X.children (X.byTag "b") parseB |
| 15 | 15 | ~~~~ |
| 16 | 16 | |
| 17 |
Leaf data tends to come in two forms in XML: attribute values (like ` |
|
| 17 | Leaf data tends to come in two forms in XML: attribute values (like `<tag attr="value">`) or tag content (like `<tag>value</tag>`). In both cases, the `Xleb` functions allow you to parse that content however you'd like by providing an arbitrary function of type `String -> Either String a`. The `xleb` library provides several built-in functions of this type for common situations. | |
| 18 | 18 | |
| 19 | 19 | ~~~~.haskell |
| 20 | 20 | c <- X.attr "index" X.number |