Some issues detected

I detected some issue on the XML parser when the document contains:
  * DOCTYPE declaration
  * Tag with trailing whitespace(s) before a children tag (see parsing result with online parser
http://www.utilities-online.info/xmltojson/?save=7e4e8409-0b84-4434-a434-d40f98849b09-xmltojson)

I also found an issue on toString() method.