TODO:

* Support namespaces
* enforce DTD for elements
