Marjor parts of xml parser implemented

Internal dtd part is not implemented yet.