Given a DOM node, selects the next node that matches a specified pattern.

Class Name

atg.droplet.xml.NodeMatch

Component

/atg/dynamo/droplet/xml/NodeMatch

Required Input Parameters

node

The DOM node to pass to this servlet bean

match

The pattern that is used to select the next node. This pattern can be any XPath expression, as defined in the XPath specification. See http://www.w3.org/TR/xpath.

Examples of patterns:

comment()

Select a comment child of the current node

order[@id='1111']

Select the widget-order node with the id attribute 1111

order

Select a widget-order node

order[not(position()=1)]

Select any widget-order node that is a subchild that is not the first

Output Parameters

matched

The node that is matched.

Open Parameters

output

Rendered when a node is selected. The result is bound to the matched output parameter.

failure

Rendered when there is a failure during the XML query.

empty

Rendered when no node is selected.

unset

Rendered when the node parameter is not set.

Usage Notes

NodeMatch selects the next DOM node that matches a pattern.

Example

See Processing XML in a JSP.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices