The core operation of an XmlReader, it converts an xml NodeSeq into a ParseResult of the desired type.
The core operation of an XmlReader, it converts an xml NodeSeq into a ParseResult of the desired type.
The xml to read from.
The ParseResult resulting from reading the xml.
Similar to compose but with the operands reversed.
Map a partial function over the XmlReader.
Map a partial function over the XmlReader. If the partial function isn't defined for the input, returns a ParseFailure.
Map a partial function over the XmlReader.
Map a partial function over the XmlReader. If the partial function isn't
defined for the input, returns a ParseFailure containing otherwise
as its error.
Compose this XmlReader with another.
Use a default value if unable to parse, always successful, drops any errors
Similar to filter(p:A=>Boolean):*, but allows you to supply the ParseError to use if the filter test fails.
Similar to filter(p:A=>Boolean):*, but allows you to supply the ParseError to use if the filter test fails.
The error to use if the filter fails.
The predicate to filter with
Filter the result of the XmlReader.
Filter the result of the XmlReader. It filters the resulting ParseResult after reading.
The predicate to filter with
Similar to map but does a flatMap on the ParseResult rather than a map.
Map the XmlReader.
Convert to a reader that always succeeds with an option (None if it would have failed).
Convert to a reader that always succeeds with an option (None if it would have failed). Any errors are dropped
New XmlReader that succeeds if either this or v
succeeds
on the input. This has preference. If both fail the ParseFailure
contains the errors from both.
Like or
but takes a by-name parameter and doesn't combine errors.
Like or
but takes a by-name parameter and doesn't combine errors.
New XmlReader that succeeds if either this or v
succeeds
on the input. this has preference.
Recover from a failed parse, keeping any errors.
Try to map, and if there is an exception, return a failure with the supplied error
Try to map, and if there is an exception, return a failure with the supplied error
The type to map into.
A function that returns the appropriate ParseError if mapping failed.
The mapping function.
Alias for or
An abstraction for a function that takes a NodeSeq and returns a ParseResult.
It is used to parse XML to arbitrary scala objects, and supports combinatorial syntax to easily compose XmlReaders into new XmlReaders.