Deleted test files and outdated files in src/xml

Other updates for the XML parser. Rewrited all functions and
structures under a unified model of structure, like in
Object-oriented programming languages.