node, document, and parsing functions. todo: xpath