Call f() for every START_ELEMENT that satisfies the XPath-like path.
Call f() for every START_ELEMENT that satisfies the XPath-like path.
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
Opposite of XMLStreamReader.require()
Seek to the first parsing event after the START_ELEMENT of the root tag after verifying the root tag name
Seek to the first parsing event after the START_ELEMENT of the root tag
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
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
Given a freshly opened XMLStreamReader2, move to the START_ELEMENT of the ROOT element (skipping stuff like DTDs)
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>