String Parsing Functions

String parsing functions convert between XML text and nodes, and serialize sequences back to text.
parse-xml("<a>Hello <b>World</b></a>")Creates an XML document from an XML string and returns its root node.
parse-xml-fragment("I say<a>Hello <b>World</b></a>")Creates an XML fragment from a string and returns its root node. Unlike parse-xml(), this does not raise an error even though the input is not well-formed XML on its own (it has no single root element).
serialize(1 to 3)Returns a serialized string representation of the sequence, with items separated by a single space.

ch03-string-parsing-functions.xpath.txt:
serialize(1 to 3)

1 2 3