Basic SAX parsing outline, not yet implemented