Rest/Field/TypeValue.php
public function ezxmltext(Field $field)
    {
        try {
            $xml = $this->xmlHtml5Converter->convert($field->value->xml);
        } catch (LogicException $e) {
            $xml = $field->value->xml->saveHTML();
        }

        return '<![CDATA[' . $xml . ']]>';
    }
public function ezxmltext(Field $field)
    {
        try {
            $xml = $this->xmlHtml5Converter->convert($field->value->xml);
        } catch (LogicException $e) {
            $xml = $field->value->xml->saveHTML();
        }

        return '<![CDATA[' . $xml . ']]>';
    }
public function ezxmltext ( Field $ field ) { try { $ xml = $ this -> xmlHtml5Converter -> convert ( $ field -> value -> xml ) ; } catch ( LogicException $ e ) { $ xml = $ field -> value -> xml -> saveHTML ( ) ; } return '<![CDATA[' . $ xml . ']]>' ; }
Method for parsing ezxmltext field.

@param \eZ\Publish\API\Repository\Values\Content\Field $field

@return string
Method for parsing ezxmltext field .