Parser should toggle `xmlMode` depending on what kind of document is being parsed.

- Added regex to test if the document is xml or not
- Updated comment which describes which html parser is being used
- Removed calls to force attributes to lowercase (in XML they should remain camelCase)