This is a simple implementation of a NodeFilter
that can be used to traverse only
data elements in a dfasdl xml tree.
Analyze the given DataElement and return the type.
Analyze the given DataElement and return the type.
If the type is not known an UnknownElement
type is returned.
The tag name of the element.
The data element type or UnknownElement
Analyze the given tag name and return the DFASDL element type.
Analyze the given tag name and return the DFASDL element type.
If the type is not known an UnknownElement
type is returned.
The tag name of the element.
The element type or UnknownElement
.
Walk up the tree until we find the parent choice of the given node.
Walk up the tree until we find the parent choice of the given node.
The start node.
An option to the parent choice element if it exists.
Walk up the tree until we find the parent sequence of the given node.
Walk up the tree until we find the parent sequence of the given node.
The start node.
An option to the parent sequence element if it exists.
Analyze the given structural element name and return it's type.
Analyze the given structural element name and return it's type.
If the type is not known an Unknownelement
type is returned.
The tag name of the element.
The structural element type or UnknownElement
.
Contains several useful functions for handling elements and their types.