Fixes to some bugs in DDI-import process as well as change to how text is read from XmlObjects.