[MRG] histfactory: patch_xml also patch <Input>s