Azure Integrator V2 - Online Help
Azure Integrator V2
Questions / Feedback?

XPath Property

Provides a way to point to a specific element in the response.

Syntax

[VB.NET]
Public Property XPath As String

[C#]
public string XPath {get; set;}

Remarks

XPath implements a subset of the XML XPath specification, allowing you to point to specific elements in the XML documents.

The path is a series of one or more element accessors separated by '/'. The path can be absolute (starting with '/') or relative to the current XPath location.

The following are possible values for an element accessor:

'name'A particular element name.
[i]The i-th subelement of the current element.
..the parent of the current element.

When XPath is set to a valid path, XElement points to the name of the element, with XParent, XNamespace, XPrefix, XChildren, and XText providing other properties of the element. The attributes of the current element will be contained in the Attributes collection .

BuildDOM must be set to True prior to parsing the document for the XPath functionality to be available.

Example (Setting XPath)


Document rootRestControl.XPath = "/"
Specific ElementRestControl.XPath = "/root/SubElement1/SubElement2/"
i-th ChildRestControl.XPath = "/root/[i]"

Default Value

""

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 2.0.6240.0