Summons an XmlSource instance if one can be found.
Turns an Array[Byte]
into a source of XML data.
Turns an Array[Char]
into a source of XML data.
Turns a File
into a source of XML data.
Turns the specified function into a new XmlSource instance.
Turns an InputSource into a source of XML data.
Turns an InputStream
into a source of XML data.
Turns a Node into a source of XML data.
Turns a Path
into a source of XML data.
Turns a Reader
into a source of XML data.
Turns a String
into a source of XML data.
Turns an URI
into a source of XML data.
Turns an URL
into a source of XML data.
(Since version 0.1.6) use from instead (see https://github.com/nrinaudo/kantan.xpath/issues/10)
Defines convenience methods for creating and summoning XmlSource instances.
Default implementation of standard types are declared here, always bringing them in scope without requirnig an explicit import.
The default implementations can also be useful when writing new instances: if you need to write an
XmlSource[T]
and already have anXmlSource[S]
and aT ⇒ S
, you just need to call XmlSource.contramap to get your implementation.