postInputsToXML broken out