$XMLGenerator->AddNode("Rights_CopyrightAndOtherRestrictions", "\r\n\t<copyrightAndOtherRestrictions>\r\n\t<source>\r\n\t\t\t<string language=\"none\">LOMv1.0</string>\r\n\t\t</source>\r\n\t\t<value>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</value>\r\n\t</copyrightAndOtherRestrictions>"); $XMLGenerator->AddNode("Rights_Description", "\r\n\t<description>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</description>"); $XMLGenerator->AddNode("Relation_Kind", "</rights>\r\n<relation>\r\n\t<kind>\r\n\t\t<source>\r\n\t\t\t<string language=\"none\">LOMv1.0</string>\r\n\t\t</source>\r\n\t\t<value>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</value>\r\n\t</kind>"); $XMLGenerator->AddNode("Relation_Resource_Identifier_Catalog", "\r\n\t<resource>\r\n\t\t<identifier>\r\n\t\t\t<catalog>", "</catalog>"); $XMLGenerator->AddNode("Relation_Resource_Identifier_Entry", "\r\n\t\t\t<entry>", "</entry>\r\n\t\t</identifier>"); $XMLGenerator->AddNode("Relation_Resource_Description", "\r\n\t\t<description>\r\n\t\t\t<string language=\"pt\">", "</string>\r\n\t\t</description>"); $XMLGenerator->AddNode("Annotation_Entity", "\r\n\t</resource>\r\n</relation>\r\n<annotation>\r\n\t<entity>[BEGIN:VCARD", "END:VCARD]\r\n\t</entity>"); $XMLGenerator->AddNode("Annotation_Date", "\r\n\t<date>\r\n\t\t<dateTime>", "</dateTime>\r\n\t</date>"); $XMLGenerator->AddNode("Annotation_Description", "\r\n\t<description>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</description>"); $XMLGenerator->AddNode("Classification_Purpose", "\r\n</annotation>\r\n<classification>\r\n\t<purpose>\r\n\t\t<source>\r\n\t\t\t<string language=\"none\">LOMv1.0</string>\r\n\t\t</source>\r\n\t\t<value>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</value>\r\n\t</purpose>"); $XMLGenerator->AddNode("Classification_TaxonPath_Source", "\r\n\t<taxonPath>\r\n\t\t<source>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</source>"); $XMLGenerator->AddNode("Classification_TaxonPath_Taxon_ID", "\r\n\t\t<taxon>\r\n\t\t\t<id>", "</id>"); $XMLGenerator->AddNode("Classification_TaxonPath_Taxon_Entry", "\r\n\t\t\t<entry>\r\n\t\t\t\t<string language=\"pt\">", "</string>\r\n\t\t\t</entry>\r\n\t\t</taxon>\r\n\t</taxonPath>"); $XMLGenerator->AddNode("Classification_Keyword", "\r\n\t<keyword>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</keyword>"); $XMLGenerator->AddNode("Classification_Description", "\r\n\t<description>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</description>\r\n</classification>"); /* GetXML returns the XML for further processing */ $xml = $XMLGenerator->GetXML(); /* EchoXML directly echos the XML out. */ //$XMLGenerator->EchoXML(); $XMLGenerator->SaveXML(); //O ficheiro xml a mostrar deve ter o mesmo nome do ficheiro xml em mysql2lom echo "<br>"; echo print_string("metadatagenok", "metadatalom"); echo "<hr>"; show_source($CFG->dataroot . "/" . $cid . "/metadata/lommetadata_" . $cid . "_" . $loid . ".xml"); echo "<hr>"; }