HP e-Commerce / XML director server appliance sa8250 - Users Guide
C H A P T E R 2 XML Operations
15
Commands and Operators
The SA8250 uses an XML Path Language (XPath) subset.
NOTE: For a detailed
description of XML
commands, see Chapter
5.
XML patterns are created in the CLI or GUI using a set of commands,
operators, and comparison operators with XML elements, attributes,
and text components. Patterns take the form of a “path,” similar to
the “expressions” used in configuring the SA8250 for HTTP parsing
as described later in this chapter.
A path consists of a sequence of one or more XML elements
separated by single or double slashes (/ or //). The first element is also
preceded by single or double slashes. These slashes are step
operators and are used to select elements relative to the context node,
as described in this table.
The comparison operators are described in this table.
Operator Name Description
/
child operator Selects all immediate children of the context node
//
descendant operator Selects elements anywhere under the context node
XML Step Operators
Operator Name Description
=
Equal Returns true if any values of the nodes specified in the pattern equals
to a given value
!=
Not equal Returns true if at least one value of the nodes specified in the
patterns does not equal to a given value
<
Less than Returns true if at least one value of the nodes specified in the
patterns is less than the specified value
<=
Less than or
equal to
Returns true if at least one value of the nodes specified in the
patterns is less than or equal to the specified value
>
Greater than Returns true if at least one value of the nodes specified in the
patterns is greater than the specified value
>=
Greater than
or equal to
Returns true if at least one value of the nodes specified in the
patterns is greater than or equal to the specified value
XML Comparison Operators