I have a bash-script, that traverses through multiple directories and parses data from a few XML files. I am using XQilla to execute my XQueries.
echo "---|Reading names|---"
../../xqilla .._name.fcs >> /var/lib/mysql-files/name.txt
And this is the XQuery:
for $fw in doc("./network_objects.xml")/network_objects/network_object
where $fw/interfaces/interfaces/ipaddr
return (data($fw/Name))
How can I pass a variable from the bash-script to XQuery, so that I can search for different items, depending on the cwd, for example?