Gets an item (single or collection) resolving xpath specified.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public Item getItemsByXPath(
	string xpath
)
Visual Basic (Declaration)
Public Function getItemsByXPath ( _
	xpath As String _
) As Item
J#
public Item getItemsByXPath(
	String xpath
)
JScript
public function getItemsByXPath(
	xpath : String
) : Item

Parameters

xpath
Type: System..::.String
XPath for selecting <Item> nodes

Return Value

Instance of the class that represents either a single item or a collection of items. The collection could be empty. The returned item shares its dom with this item, i.e. returned item dom and this.dom reference the same instance of ArasXmlDocument.

Remarks

The method applies the specified xpath on this.node if it's set or on this.dom otherwise. If a single <Item> node was found, it's assigned to the node. If 0 or more than 1 <Item> nodes were found, it's referenced by the nodeList of the returned item.

Exceptions

ExceptionCondition
System..::.ExceptionItem's internal structure is wrong (e.g. this.dom == null)
System..::.ArgumentExceptionSpecified XPath doesn't resolve to <Item> nodes.

See Also