File Functions

For the functions in this table, any filename can be started with ‘http://’ or ‘file://’.
A query string starting with ? can be appended to a URL too.
doc(“data.xml”) returns the document node for the file data.xml. Further node paths can be added to it. For example, doc(“data.xml”)//a returns all ‘a’ nodes in the document.
doc-available(“data.xml”) returns true if data.xml exists and can be returned as a document node.
collection(“s*.xml”) returns a sequence of document nodes for files with names starting with s.
uri-collection(“s*.xml”) returns a sequence of URI strings for files with names starting with s, ie. their file names.
unparsed-text(“data.dat”) returns a string representation of the content of the file data.dat.
unparsed-text-lines(“data.dat”) returns a sequence of strings that are lines of content within the file data.dat.
unparsed-text-available(“data.dat”) returns true if the file data.dat is available to be called within unparsed-text().
environment-variable(“APPDATA”) returns the value of a system environment variable “APPDATA”.
available-environment-variables() returns a sequence of names of the system environment variables.