Cisco Cisco Process Orchestrator 3.0 Guia Do Utilizador
12-6
Cisco Process Orchestrator User Guide
OL-30196-01
Chapter 12 Advanced Authoring Concepts
Using Core Activities
Related Topics
See the online help for a list of:
•
Common regular expressions
•
Regular expression examples
•
Custom date and time format strings
•
Commonly-used wildcard special characters
•
Comparison operators
Adding an XPath Namespace Definition
An XML namespace provides a way to avoid element and attribute name conflicts within an XML
document. An XML namespace is uniquely identified by a Uniform Resource Identifier (URI) and is
assigned a prefix (unique to the XML document) used for its element and attribute names.
document. An XML namespace is uniquely identified by a Uniform Resource Identifier (URI) and is
assigned a prefix (unique to the XML document) used for its element and attribute names.
To add an XPath namespace:
Step 1
In the Process Editor, choose Toolbox > Core Activities > XPath Query, then drag and drop the activity
onto the Workflow pane.
onto the Workflow pane.
Step 2
Choose the XPath Query tab, then choose Namespaces > New.
Step 3
In the XPath Namespace Definition dialog, enter the prefix and URI for the new namespace, then click
OK.
OK.
In the following example, the elements prefixed with xdc are associated with a namespace whose name
is
is
, while those prefixed with h are associated with a namespace whose name
is
For additional examples, see
.
Example XML
<h:html xmlns:xdc="http://www.xml.com/books”
xmlns:h=”http://www.w3.org/HTML/1998/html4”>
<h:head><h:title>Book Review</h:title></h:head>
<h:body>
<xdc:bookreview>
<xdc:title>XML: A Primer</xdc:title>
<h:table>
<h:tr align=”center”>
<h:td>Author</h:td><h:td>Price</h:td>
<h:td>Pages</h:td><h:td>Date</h:td></h:tr>
<h:tr alignment”>
<h:td><xdc:author>Simon St. Laurent</xdc:author></h:td>
<h:td><xdc:price>31.98</xdc:price></h:td>
<h:td><xdc:pages>352</xdc:pages></h:td>
<h:td><xdc:date>1998/01</xdc:date></h:td>
</h:tr>
</h:table>
</xdc:bookreview>
</h:body>
</h:html>