# com.bea.xml
SchemaTypeElementSequencer Interface

public interface SchemaTypeElementSequencer

This class is used to programatically validate the contents of an XML element.Call to both `SchemaTypeElementSequencer.next(QName)``` and `SchemaTypeElementSequencer.peek(QName)``` will return true if the element with the provided name is allowed at the current position in the element content, the difference being that `SchemaTypeElementSequencer.next(QName)``` will advance the current position, while `SchemaTypeElementSequencer.peek(QName)``` won't.

Related Topics

``SchemaType.getElementSequencer()``

## Method Summary

`public boolean` | `next`(`QName` elementName) Returns true if the element with the given name is valid at the current position.
`public boolean` | `peek`(`QName` elementName) Return true if the element with the given name is valid at the current position.

## Method Detail

### next(QName) Method

    public boolean next(QName elementName)

Returns true if the element with the given name is valid at the current position. Advances the current position.

### peek(QName) Method

    public boolean peek(QName elementName)

Return true if the element with the given name is valid at the current position. Does not advance the current position.