Remove DOMDocument handling from legacy converters.

Storage engines should not be aware of high level representation of XML field type.
Added TODO about relation refactoring