xmlparse()

Scalar. Converts a string into an XML value.

Syntax

xmlparse ( string )

Parameters

value

The XML value represented as a string.

Usage

Converts a string into an XML value. The function takes a string as its argument, and returns an XML value. Since there is no XML data type, the value returned from this function can only be used as input to other functions expecting XML as input, such as xmlserialize().

Example

xmlserialize ( xmlparse ('<t/>') ) returns '<t/>'. The string gets converted into an XML value, then back into a string.