[Major] major rewrite, now implemented SAX and DOM methods.

Now DOM implementation is working as well with a test scenario