Fixed a few problems with the parser, added validation for  attributes based on their tag.
Fixed bug with escaped strings.