files:XmlFile

Previous Next

 

Returns the contents of the XML file found in the file system at filepath.

Returns a node set.

 

Syntax

files:XmlFile( filepath )

 

Example 1

<pc:evaluate select="variable:Set('envxml', files:XmlFile('env.xml'))"/>

 

Example 2

<pc:assign-nodeset mynodeset="{files:XmlFile('config.xml')}" />
<pc:assign myinstalldir="{$mynodeset//computer[@name=environment:MachineName()]/@installdir}"/>

 

See also

files:ReadFile