1. Please, post every code/script.xml block to be properly formatted and indented. Use Code tags for this.
Example: you write:
[CODE]some code ...
indentation ...[/CODE]
and we will see
Code:
some code ... 
    indentation ...
2. You didn't provide any code "you wrote" to parse this xml.