| @@ 1657-1667 (lines=11) @@ | ||
| 1654 | $schemaPrefix = $this->getPrefixFromNamespace($this->XMLSchemaVersion); |
|
| 1655 | $xml = ''; |
|
| 1656 | // imports |
|
| 1657 | if (sizeof($this->imports) > 0) { |
|
| 1658 | foreach ($this->imports as $ns => $list) { |
|
| 1659 | foreach ($list as $ii) { |
|
| 1660 | if ($ii['location'] != '') { |
|
| 1661 | $xml .= " <$schemaPrefix:import location=\"" . $ii['location'] . '" namespace="' . $ns . "\" />\n"; |
|
| 1662 | } else { |
|
| 1663 | $xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\" />\n"; |
|
| 1664 | } |
|
| 1665 | } |
|
| 1666 | } |
|
| 1667 | } |
|
| 1668 | // complex types |
|
| 1669 | foreach ($this->complexTypes as $typeName => $attrs) { |
|
| 1670 | $contentStr = ''; |
|
| @@ 5563-5573 (lines=11) @@ | ||
| 5560 | } |
|
| 5561 | $xml .= '>'; |
|
| 5562 | // imports |
|
| 5563 | if (sizeof($this->import) > 0) { |
|
| 5564 | foreach ($this->import as $ns => $list) { |
|
| 5565 | foreach ($list as $ii) { |
|
| 5566 | if ($ii['location'] != '') { |
|
| 5567 | $xml .= '<import location="' . $ii['location'] . '" namespace="' . $ns . '" />'; |
|
| 5568 | } else { |
|
| 5569 | $xml .= '<import namespace="' . $ns . '" />'; |
|
| 5570 | } |
|
| 5571 | } |
|
| 5572 | } |
|
| 5573 | } |
|
| 5574 | // types |
|
| 5575 | if (count($this->schemas)>=1) { |
|
| 5576 | $xml .= "\n<types>\n"; |
|