More clean up and fixes for new SAXContentHandler features.

- Made doc and doc-available work with the old SAXContentHandler method. (Basically the element writer does not affect the pervious version.)
- Better variable and function naming.
- Attempt to make it clean to create XMLParser and SAXContentHandler.