XPath Property

NAnt SDK Documentation - v0.92 |

# XmlPeekTask.XPath Property

The XPath expression used to select which node to read.

[Visual Basic]
<StringValidator(AllowEmpty:=False, Expression:="null", ExpressionErrorMessage:="null"), _ TaskAttribute(Required:=True, Name:="xpath", ExpandProperties:=True, ProcessXml:=True)>
Public Property XPath As String
[C#]
[StringValidator(AllowEmpty=False, Expression="null", ExpressionErrorMessage="null")]
[TaskAttribute(Required=True, Name="xpath", ExpandProperties=True, ProcessXml=True)]
public string XPath {get; set;}

#### See Also

XmlPeekTask Class | NAnt.Core.Tasks Namespace