final class RichXMLStreamReader2 extends AnyVal
- Alphabetic
- By Inheritance
- RichXMLStreamReader2
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RichXMLStreamReader2(sr: XMLStreamReader2)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def foreach[U](path: String)(f: => U): Unit
Call f() for every START_ELEMENT that satisfies the XPath-like path.
Call f() for every START_ELEMENT that satisfies the XPath-like path.
- Annotations
- @inline()
- def getAttributeValue(name: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def readChildElementText(name: String): String
- def readElementAsXMLString(): String
- def readElementText(): String
Read the contents of an Element.
Read the contents of an Element. Only works at the START_ELEMENT and if the element has no other nested elements
- def require(cond: Boolean, msg: => String): Unit
- Annotations
- @inline()
- def requireEither(one: Int, two: Int): Unit
- def requireNot(tpe: Int): Unit
Opposite of XMLStreamReader.require()
- def seekFirstEventPastRootElement(expectedName: String): Unit
Seek to the first parsing event after the START_ELEMENT of the root tag after verifying the root tag name
- def seekFirstEventPastRootElement(): Unit
Seek to the first parsing event after the START_ELEMENT of the root tag
- def seekToAnyMatching(name: String): Int
Seek to the first element with name (at any depth)
Seek to the first element with name (at any depth)
Returns the depth that the element was found at
- def seekToChildElement(name: String): Unit
- def seekToChildElement(): Unit
- def seekToEndOfParentElement(): Unit
- def seekToRootElement(expectedName: String): Unit
Given a freshly opened XMLStreamReader2, move to the START_ELEMENT of the ROOT element (skipping stuff like DTDs) and require that the root name be the expectedName
- def seekToRootElement(): Unit
Given a freshly opened XMLStreamReader2, move to the START_ELEMENT of the ROOT element (skipping stuff like DTDs)
- def seekToSiblingElement(name: String): Unit
Seek to the first sibling element (the first START_ELEMENT at the current depth) that matching name
Seek to the first sibling element (the first START_ELEMENT at the current depth) that matching name
e.g.
<root> <foo> <bar></bar> <target>We don't want this</target> </foo> <target>This is what we want</target> </root>
A call to seekFirstEventPastRootElement leaves us just after the <root> element. Then a call to seekToSiblingElement("target") will skip <foo> and the nested <bar> and <target> elements and end up on the second <target> element that is a sibling to <foo>
- def seekToSiblingElement(): Unit
- val sr: XMLStreamReader2
- def toString(): String
- Definition Classes
- Any
- def tryReadChildElementText(name: String): Option[String]
- def trySeekToChildElement(name: String): Boolean
- def trySeekToChildElement(): Boolean
- def trySeekToSiblingElement(name: String): Boolean
- def trySeekToSiblingElement(): Boolean