XMLElementIterator

concept brazil Updated Sep 10, 2026 1 min read c_XMLElementIteratorAPI.md
Raw file servicenow.com

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.

Name Type Description
None
Type Description
Boolean True if another element is available.

XMLElementIterator - next()

Returns the next element in the iterator.

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

Name Type Description
None
Type Description
XMLElement The next XML element.
Search documentation
Search document titles and file paths on the brazil branch