XmlParserApplyOps
XML-specific Parser constructor methods, for example XmlParser.attr
and XmlParser.text
Value members
Concrete methods
Alias for forMandatoryAttribute
.
Alias for forMandatoryAttribute
.
- Type parameters:
- N
Usually a
String
but can be aQName
from whichever parser backend you're using
- Value parameters:
- attributeName
The name of the requested attribute
- Returns:
A parser that extracts the given mandatory attribute from an XML element
Alias for forOptionalAttribute
.
Alias for forOptionalAttribute
.
- Type parameters:
- N
Usually a
String
but can be aQName
from whichever parser backend you're using
- Value parameters:
- attributeName
The name of the requested attribute
- Returns:
A parser that extracts the given optional attribute from an XML element
An XmlParser that extracts the requested mandatory attribute from the first ElemStart
in the stream it consumes,
throwing an exception if the attribute is missing or an ElemStart
never appears.
An XmlParser that extracts the requested mandatory attribute from the first ElemStart
in the stream it consumes,
throwing an exception if the attribute is missing or an ElemStart
never appears.
- Type parameters:
- N
Usually a
String
but can be aQName
from whichever parser backend you're using
- Value parameters:
- attributeName
The name of the requested attribute
- Returns:
A parser that extracts the given mandatory attribute from an XML element
An XmlParser that extracts the requested optional attribute from the first ElemStart
in the stream it consumes, wrapped in a Some
,
instead yielding a None
if the attribute is missing or an ElemStart
never appears.
An XmlParser that extracts the requested optional attribute from the first ElemStart
in the stream it consumes, wrapped in a Some
,
instead yielding a None
if the attribute is missing or an ElemStart
never appears.
- Type parameters:
- N
Usually a
String
but can be aQName
from whichever parser backend you're using
- Value parameters:
- attributeName
The name of the requested attribute
- Returns:
A parser that extracts the given optional attribute from an XML element