| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | class IGSN_Registration_Metadata_XMLWriter extends IGSN_Metadata_Base_XMLWriter { |
| 8: | |
| 9: | function writeXML($input) { |
| 10: | $sep = ';'; |
| 11: | $COMMA = ','; |
| 12: | $regw = new XMLWriter(); |
| 13: | if (!$regw) { |
| 14: | return false; |
| 15: | } |
| 16: | $regw->openMemory(); |
| 17: | $regw->setIndent(true); |
| 18: | $regw->setIndentString(' '); |
| 19: | $regw->startDocument('1.0', 'UTF-8'); |
| 20: | $regw->startElementNS(NULL, "sample", "http://igsn.org/schema/kernel-v.1.0"); |
| 21: | $regw->writeAttributeNs("xsi", "schemaLocation", "http://www.w3.org/2001/XMLSchema-instance","http://igsn.org/schema/kernel-v.1.0 http://doidb.wdc-terra.org/igsn/schemas/igsn.org/schema/1.0/igsn.xsd"); |
| 22: | |
| 23: | return $this->writeElements($regw,$input); |
| 24: | } |
| 25: | } |
| 26: | |