tweaks to directly use _XmlBuild