We use jboss server and try to generate xml files for the server hit and place it in a folder of the server(D:/jboss/server/project-name/deploy/xmlfolder/*.xml). To load the xml in grid,What api has to be used and how the path has to be passed in api.
the only api is
grid.load(uri)
where uri - http url to the xml file, you can absolute or relative paths. But beware that it must be http accessible location, filesystem paths will not work.