XML Decode | DECODE_XML

Syntax

DECODE_XML( [value] )

Parameters

value
An XML encoded TEXT value to decode.

Return Value

The decoded value. If the value is not a valid XML encoded TEXT value, NULL is returned.

Description

Decode a TEXT value as XML.

Examples

DECODE_XML("\"some text\"") # returns NULL
DECODE_XML("null") # returns NULL
DECODE_XML("<Root id=\"tester\"><A>1</A><B>2</B></Root>") # returns ["Root" => ["A" => 1, "B" => 2]]