This is quite an old thread! It may be worth starting your own new thread engmti85.

For validating the XML, I suggest checking this tutorial:
...