exec: improve Xml.cmdArgs API