ClassName

atg.droplet.xml.NodeMatch

Component

/atg/dynamo/droplet/xml/NodeMatch

The NodeMatch servlet bean selects the next DOM node that matches a pattern.

Input Parameters

node
Specifies the DOM node to be passed 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 Parameter

matched
Optional: Specifies the node that has been matched.

Open Parameters

output
Optional: Specifies the parameter used when a node is selected. The result is bound to the matched output parameter.

failure
Optional: Specifies the parameter used when there is a failure during the XML query.

empty
Optional: Specifies the parameter used when no node is selected.

unset
Optional: Specifies the parameter to use when the node parameter is not set.

Example

See Processing XML in a JSP.

 
loading table of contents...