Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Tim MeagherHey,
One of the File or FilenameExpr parameter should be set but not both.
If you are simply reading from one file, then enter the filename in the File parameter.
If you want to read from multiple files, then you can provide the XMLpy File node with an input. One of the fields in the input should then contain the names of the files which are to be read (one filename per record). The FilenameExpr parameter should then be used to reference the field in the input which contains the filenames.
This is a standard interface, used on most of the Lavastorm->Acquisition library group & category (e.g. Delimited File, CSV File, Fixed Format File, Excel File).
Regarding the Code parameter, this is where you need to write how the XML data is to be extracted from the XML file & transformed into record outputs.
The node is documented, so you should first check the node documentation. The documentation for the parameter will appear if you hover your mouse over the parameter name. The full node documentation can be found if you select the node, and hit F1 - alternatively you can select the node and then click Help->Help On Selected Node.
If you are still stuck, there is also a tutorial available for the XMLpy File node, which provides a bit more detail on how to use the node, including more examples.
You can bring up this tutorial by clicking Help->Tutorials.
Unfortunately, I can't do more at this stage than point at the help or the tutorials, because I don't know the format of the file or what exactly you are trying to read from it.
Tim.