protected function wrapInXmlDocument($nodes, $charset = null) {
        $charset = strtoupper($charset ?: Validator::CHARSET_UTF_8);

        $document  = '<?xml version="1.0" encoding="' . $charset . '"?>' . PHP_EOL;
        $document .= '<root>' . $nodes . '</root>';

        return $document;
    }
protected function wrapInXmlDocument($nodes, $charset = null) {
        $charset = strtoupper($charset ?: Validator::CHARSET_UTF_8);

        $document  = '<?xml version="1.0" encoding="' . $charset . '"?>' . PHP_EOL;
        $document .= '<root>' . $nodes . '</root>';

        return $document;
    }
protected function wrapInXmlDocument ( $ nodes , $ charset = null ) { $ charset = strtoupper ( $ charset ? : Validator :: CHARSET_UTF_8 ) ; $ document = '<?xml version="1.0" encoding="' . $ charset . '"?>' . PHP_EOL ; $ document .= '<root>' . $ nodes . '</root>' ; return $ document ; }
Wraps a set of XML nodes in an XML-document

@param  string $nodes   One or more XML-nodes, as a string
@param  string $charset Charset to specify in XML-document
@return string
Wraps a set of XML nodes in an XML - document