fm.xml.XmlReader$
See theXmlReader companion class
object XmlReader
Attributes
Members list
Concise view
Type members
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
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]
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. "
Attributes
- xml
The XML
- Returns:
The root element name or None if there is none