Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

XMLElementIterator

Provides methods for iterating over XML elements.

You get an XMLElementIterator object by calling the getIterator() method of the XMLContent class.

Parent Topic:XML APIs

XMLElementIterator - hasNext()

Determines if there is another element available.

NameTypeDescription
None  
TypeDescription
BooleanTrue if another element is available.

XMLElementIterator - next()

Returns the next element in the iterator.

You cannot call next() without first calling hasNext().

NameTypeDescription
None  
TypeDescription
XMLElementThe next XML element.