Serializes the supplied node $arg and returns the serialized node as a string.
Syntax
fn:serialize()
Return Value
string
Examples
The function
returns the following output for the provided input using Saxon 9.5.1.10 PE version:
INPUT
OUTPUT
<a/> (element)
<?xml...?><a/>
"<a/>" (string)
<a/>
The function returns the following output for the provided input using Saxon
11.5 EE version:
INPUT
OUTPUT
<a/> (element)
<a/>
"<a/>" (string)
<a/>
For more information about changed behaviors in Application Integration due
to Saxon libraries upgrade, see the following knowledge base article: KB 000205484.