XPathTool.java allows command line parsing of an xml file. It is used in the env script to parse the vivo.xml file.
Short Option |
Long Option |
Parameter Value Map |
Description |
Required |
---|---|---|---|---|
x |
xml-file |
XML_FILE |
path to xml file to read data from |
true |
e |
expression |
XPATH_EXPRESSION |
xpath expression to export |
true |
XPathTool="java $OPTS -Dprocess-task=XPathTool org.vivoweb.harvester.util.XPathTool"
USERNAME=`$XPathTool -e "/Model/Param@name='dbUser'" -x "config/models/vivo.xml"`