Changes while providing backwards compatability for XData.
Further changes for backward compatible XData.

- Most of the XData unit tests passed.
- Moved DOM functionality from XData to DomXml.
- Use new DOM serialization.
- does not handle indexes in xpath yet (eg. /a/b[3]/c)