Class XmlSchemaStateMachineNode

java.lang.Object
org.apache.ws.commons.schema.docpath.XmlSchemaStateMachineNode

public final class XmlSchemaStateMachineNode extends Object
This represents a node in the state machine used when parsing an XML Document based on its XmlSchema and Avro org.apache.avro.Schema.

A SchemaStateMachineNode represents one of:

  • An element, its type, and its attributes
  • An all group
  • A choice group
  • A sequence group
  • An <any> wildcard element
  • A substitution group
As a Document is traversed, the state machine is used to determine how to process the current element. Two passes will be needed: the first pass will determine the correct path through the document's schema in order to properly parse the elements, and the second traversal will read the elements while following that path.