mid-term
 * support for XPath expression that don't return nodes [attributes done,
   primitive values still todo]
 * reference counting for DOMNodes to correctly call release()
   (problem is we have to start with one, as one reference is the DOM)

long-term
 * support for binary attachments on the document as either base64
   or natively
