This is a simple implementation of a NodeFilter that can be used to traverse only
data elements in a dfasdl xml tree.
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 choice and return it's branches and their data elements.
Analyze the given choice and return it's branches and their data elements.
Only the first level(!) of the choice is used to determine the branches.
If there is only one celem beneath the choice then it will only count as one branch!
The choice to be analyzed.
A map containing the data elements mapped to their top branch element.
Return the list of child data elements if the given node is a choice element.
Return the list of child data elements if the given node is a choice element.
The node to be analyzed.
A list of child data elements.
Creates a DOM document builder specific for our DFASDL schema.
Creates a DOM document builder specific for our DFASDL schema.
Determines if we want to to create a document builder using the DFASDL schema.
The schema definition, e.g. the XSD file to load.
A document builder using the DFASDL schema.
Create an xml document that is normalized and uses the DFASDL schema per default.
Create an xml document that is normalized and uses the DFASDL schema per default.
A string containing the xml.
Indicate if the DFASDL schema has to be used (defaults to true).
A DOM xml document tree.
Get the data elements that are child elements of the given treewalker.
Get the data elements that are child elements of the given treewalker.
The starting point of the recursion.
A list of elements that are DataElements of the treewalker.
Get the data elements that are child elements of the given element.
Get the data elements that are child elements of the given element.
The parent element of the data elements.
A list of data elements that are child elements.
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.
Traverse the given xml document and return the list of ids in the apropriate order.
Traverse the given xml document and return the list of ids in the apropriate order.
A xml document.
A list of ids that may be empty.
Convert the given dfasdl into an xml document, traverse it and return the list of ids in the apropriate order.
Convert the given dfasdl into an xml document, traverse it and return the list of ids in the apropriate order.
A string containing a dfasdl.
A list of ids that may be empty.
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.
Return all data elements from the given dfasdl document that have the unique
attribute set to true.
Return all data elements from the given dfasdl document that have the unique
attribute set to true.
A dfasdl xml document.
A set of elements.
Useful functions for handling DFASDL documents.