Check for well-formedness
Created by: skreutzer
Build an internal (XPath-like) stack of element names and match them in order to find out if the input is well-formed (only one root element, start tags match end tags, etc.).
Created by: skreutzer
Build an internal (XPath-like) stack of element names and match them in order to find out if the input is well-formed (only one root element, start tags match end tags, etc.).