concrete/src/File/Image/Svg/Sanitizer.php
protected function xmlToData(DOMDocument $xml)
    {
        $data = $xml->saveXML();
        if ($data === false) {
            throw SanitizerException::create(SanitizerException::ERROR_FAILED_TO_GENERATE_XML);
        }

        return $data;
    }
protected function xmlToData(DOMDocument $xml)
    {
        $data = $xml->saveXML();
        if ($data === false) {
            throw SanitizerException::create(SanitizerException::ERROR_FAILED_TO_GENERATE_XML);
        }

        return $data;
    }
protected function xmlToData ( DOMDocument $ xml ) { $ data = $ xml -> saveXML ( ) ; if ( $ data === false ) { throw SanitizerException :: create ( SanitizerException :: ERROR_FAILED_TO_GENERATE_XML ) ; } return $ data ; }
Render a DOMDocument instance as a string.

@param \DOMDocument $xml

@throws \Concrete\Core\File\Image\Svg\SanitizerException in case of errors

@return string
Render a DOMDocument instance as a string .