broken the makeddi writexml option in favour of return a character obj