first version, a lot of debug messages, refactoring needed...
New XML Parser class, removed debug msg, some refactoring