diff --git a/lib/xmldb/classes/XMLDBStructure.class.php b/lib/xmldb/classes/XMLDBStructure.class.php index f9086e782ec..46a28e2b8d9 100644 --- a/lib/xmldb/classes/XMLDBStructure.class.php +++ b/lib/xmldb/classes/XMLDBStructure.class.php @@ -478,8 +478,12 @@ class XMLDBStructure extends XMLDBObject { $o.= 'version . '"'; if ($this->comment) { - $o.= ' COMMENT="' . htmlspecialchars($this->comment) . '"'; + $o.= ' COMMENT="' . htmlspecialchars($this->comment) . '"'."\n"; } + $rel = array_fill(0, count(explode('/', $this->path)), '..'); + $rel = implode('/', $rel); + $o.= ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'."\n"; + $o.= ' xsi:noNamespaceSchemaLocation="'.$rel.'/lib/xmldb/xmldb.xsd"'."\n"; $o.= '>' . "\n"; /// Now the tables if ($this->tables) { diff --git a/lib/xmldb/xmldb.xsd b/lib/xmldb/xmldb.xsd index ace90535224..0829bb1b293 100644 --- a/lib/xmldb/xmldb.xsd +++ b/lib/xmldb/xmldb.xsd @@ -1,59 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -67,19 +91,12 @@ + + + + - - - - - - - - - - - - + @@ -93,28 +110,14 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + @@ -145,17 +148,19 @@ - - - - + + + + + + - + @@ -164,13 +169,13 @@ - + - - - - + + + + @@ -185,12 +190,12 @@ - - + + - - - + + +