XmlReader

fm.xml.XmlReader$
See theXmlReader companion class
object XmlReader

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[T : ClassTag](rootName: String, itemPath: String, defaultNamespaceURI: String, overrideDefaultNamespaceURI: String, resource: Resource[Reader]): XmlReader[T]
def apply[T](rootName: String, resource: Resource[Reader], targetHead: XmlReaderPath[_, T], targetsRest: XmlReaderPath[_, T]*): XmlReader[T]
def apply[T](rootName: String, resource: Resource[Reader], targets: IndexedSeq[XmlReaderPath[_, T]]): XmlReader[T]
def getRootElementName(xml: String): Option[String]

Attempt to get the root element name from the passed in XML.

Attempt to get the root element name from the passed in XML.

Note: This is really more of a "getFirstElementName" since it will just return the first element it finds even if if it not a valid XML document. e.g. "" will return "foo"

Attributes

xml

The XML

Returns:

The root element name or None if there is none

def withXMLStreamReader2[T](s: String)(f: XMLStreamReader2 => T): T
def withXMLStreamReader2[T](is: InputStream)(f: XMLStreamReader2 => T): T