Copyright (1997-2013) EDMGROUP Pty Ltd - EZY Prolog Reference


XML model allows direct navigation inside XML document using XPATH. XPATH is a text string, which defines address of the XML node. Use of XPATH increases speed of XML processing and direct access to the data, stored in XML node.

It is used for direct access to the specified XML node or for verification that such node exist.

Sample of XPATH string with index:

XPATH = "library/book[2]/author/title"


The following EZY Prolog predicates are used for navigation inside XML data via XPATH:




Returns XML node specified by XPATH with index. Fails if node not found.


Returns XML first node specified by XPATH without index. Fails if node not found.


Copyright 1997-2013 EDMGROUP (Australia)