On 06/25/2016 10:33 PM, Lodovico Giaretta wrote: > > But my implementation does not maintain the state of the parents, so you > can't get any info about the parent from the children, unless you use > exit() (in which case, you can get the parent's name from the closing tag). > > But your idea about a stack keeping all the context informations is > quite valuable, given that some validations need them (e.g. checking > that all prefixes have been declared, and retrieving prefix/namespace > associations).
In any case it should be optional so that use cases that don't need parent information can avoid the overhead.
