It is expected that certain attributes have fixed values, ie.
It is expected that certain attributes have fixed values, ie. booleans or based on schema enums etc, this function allows such optimisations.
The qname will have been obtained via a call to either noNamespaceQName, unprefixedQName or prefixedQName, so any optimisations provided by them can be leveraged.
Start a new "tree", pushing the elem to TreeProxies
Start a new "tree", pushing the elem to TreeProxies
For files without large (and varied) attribute counts per repeated element it may represent significant space savings to optimise against the entire Elem itself.
For files without large (and varied) attribute counts per repeated element it may represent significant space savings to optimise against the entire Elem itself.
The Elements QName is garaunteed to be the last QName evaluated via the QName functions (i.e. Attributes are done first then the Elems QName)
By default calls TreeProxies.
By default calls TreeProxies.elementEnd. Replacing entire subtrees can be performed here.
The creation costs can also be reduced
The creation costs can also be reduced
Optimises QNames and Trees according to LazyOptimisedTree