This
section describes miscellaneous functions that are available in
expressions.
deserializeConverts
the text of a given string into an XML document.
Syntax deserialize(string)
Parametersstring is
an XPath expression that evaluates to a string value.
ReturnsAn org.w3c.dom.Document value
that represents the XML document.
is-nullDetermines
whether a node in the process data model exists.
In XPath, null values are represented as empty
string values.
Parametersnode is
an XPath expression that evaluates to a node in the process data
model.
ReturnsA boolean value
of true if the node does not exist, and false if
the node exists.
ExampleThe
name of a string variable that a process includes is stringVar.
The following expression returns false:
is-null(/process_data/@stringVar)
serializeReturns
the string representation of given XML code. You can specify whether the
string includes the XML declaration as the first line.
Syntax serialize(node,bOmitXML)
ParametersA node and
an optional boolean bOmitXML. node is
an XPath expression that evaluates to a data location that stores
XML data. If a value of true() is provided for bOmitXML,
the first line in the string representation includes the XML declaration.
If bOmitXML is false(), the XML
declaration is not included. If bOmitXML is not
specified, the XML declaration is provided.
ReturnsA string that
represents the contents of the given node.
|
|
|