XmlSplitterOps

io.dylemma.spac.xml.`package`.XmlSplitterOps
implicit class XmlSplitterOps[C](splitter: Splitter[XmlEvent, C])

XML-specific Splitter member methods, for example: attr, attrOpt, and text,

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def attr[N : AsQName](name: N): Transformer[XmlEvent, String]

Consumes each sub-stream with the XmlParser.forMandatoryAttribute(name) parser, yielding an XmlTransformer[String] which emits the resulting attribute from those sub-streams.

Consumes each sub-stream with the XmlParser.forMandatoryAttribute(name) parser, yielding an XmlTransformer[String] which emits the resulting attribute from those sub-streams.

Type parameters

N

The name type of the attribute to capture. This will generally be String but may be any other type N that belongs to the AsQName typeclass.

Value parameters

name

The name of the attribute to capture

Attributes

Returns

An XmlTransformer[String] that emits the given mandatory attribute from the first element in each matched sub-stream

def attrOpt[N : AsQName](name: N): Transformer[XmlEvent, Option[String]]

Consumes each sub-stream with the XmlParser.forOptionalAttribute(name) parser, yielding an XmlTransformer[String] which emits the resulting attribute from those sub-streams.

Consumes each sub-stream with the XmlParser.forOptionalAttribute(name) parser, yielding an XmlTransformer[String] which emits the resulting attribute from those sub-streams.

Type parameters

N

The name type of the attribute to capture. This will generally be String but may be any other type N that belongs to the AsQName typeclass.

Value parameters

name

The name of the attribute to capture

Attributes

Returns

An XmlTransformer[String] that emits the given optional attribute from the first element in each matched sub-stream

def text: Transformer[XmlEvent, String]

Consumes each sub-stream with the XmlParser.forText parser, yielding an XmlTransformer[String] which emits a single concatenated String for each sub-stream.

Consumes each sub-stream with the XmlParser.forText parser, yielding an XmlTransformer[String] which emits a single concatenated String for each sub-stream.

Attributes

Returns

An XmlTransformer[String] that emits the text from each matched sub-stream

Deprecated methods

def asText: Transformer[XmlEvent, String]

Attributes

Deprecated
true