XML Functions (LR_XML) > Fast Query

Fast Query

HP provides a sub-set of the XML Query Language that enables users to run queries more quickly. A fast query can be used when the exact path to the information is known. A fast query accepts single slashes, nodes, and brackets. It is used for returning a single value, and cannot be used with Multiple Query Matching. A fast query does not accept attributes.

Examples of fast queries:

lr_xml_get_values("Xml={CdCatalog}",
    "ValueParam=OutputParam",
    "FastQuery=/catalog/cd[1000]/title",
    LAST );
lr_xml_extract("Xml={CdCatalog}",
    "XMLFragmentParam=OutputParam",
    "FastQuery=/catalog/cd[5000]",
    LAST );