PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
//begin xml file generation to store marker info
header('Content-type: application/xml');
$xml = new XmlWriter();
$xml->openMemory();
$xml->startDocument('1.0', 'UTF-8');
$xml->startElement('markers');
//write xml element
$xml->startelement('marker');
$xml->writeCData("some text");
$xml->endElement();
//end of document and output
$xml->endElement();
$xml->endElement();
echo $xml->outputMemory(true);
?>
Is HTML allowed in XML? You might want to check the class to see what it's outputting- or is it one of those classes you dare not look at in fear of your eyes bleeding?