Returns the Location of the given node in an XML file loaded by NAnt.
Location of the given node in an XML file loaded by NAnt, or UnknownLocation if the node was not loaded from an XML file.
The node must be from an XmlDocument that has been loaded by NAnt.
NAnt also does not process any of the following node types:
As a result, no location information is available for these nodes.
Exception Type | Condition |
---|---|
ArgumentException |
node is from an XML file that was not loaded by NAnt. -or node was not processed by NAnt (eg. an XML declaration). |
Project Class | NAnt.Core Namespace