#63 Fixed the issue of using references for the root XML element.