public function getImporterXsd(): string
    {
        $xsd = new \DOMDocument('1.0', 'utf-8');
        $xsd->loadXML('<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"/>');
        foreach ($this->schemas as $schema) {
            $node = $xsd->createElementNS('http://www.w3.org/2001/XMLSchema', 'import');
            $node->setAttribute('namespace', $schema->getNamespace());
            $node->setAttribute('schemaLocation', str_replace('\\', '/', $schema->getLocation()));
            $xsd->documentElement->appendChild($node);
        }
        return $xsd->saveXML();
    }
public function getImporterXsd(): string
    {
        $xsd = new \DOMDocument('1.0', 'utf-8');
        $xsd->loadXML('<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"/>');
        foreach ($this->schemas as $schema) {
            $node = $xsd->createElementNS('http://www.w3.org/2001/XMLSchema', 'import');
            $node->setAttribute('namespace', $schema->getNamespace());
            $node->setAttribute('schemaLocation', str_replace('\\', '/', $schema->getLocation()));
            $xsd->documentElement->appendChild($node);
        }
        return $xsd->saveXML();
    }
public function getImporterXsd ( ) : string { $ xsd = new \ DOMDocument ( '1.0' , 'utf-8' ) ; $ xsd -> loadXML ( '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"/>' ) ; foreach ( $ this -> schemas as $ schema ) { $ node = $ xsd -> createElementNS ( 'http://www.w3.org/2001/XMLSchema' , 'import' ) ; $ node -> setAttribute ( 'namespace' , $ schema -> getNamespace ( ) ) ; $ node -> setAttribute ( 'schemaLocation' , str_replace ( '\\' , '/' , $ schema -> getLocation ( ) ) ) ; $ xsd -> documentElement -> appendChild ( $ node ) ; } return $ xsd -> saveXML ( ) ; }
Return the XML of a Xsd that includes all the namespaces
with the local location

@return string
Return the XML of a Xsd that includes all the namespaces with the local location