Source for file XML.php
Documentation is available at XML.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Based on the HTML renderer by Andrey Demenev.
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @package Text_Highlighter
* @author Stoyan Stefanov <ssttoo@gmail.com>
* @copyright 2006 Stoyan Stefanov
* @license http://www.php.net/license/3_0.txt PHP License
* @link http://pear.php.net/package/Text_Highlighter
require_once 'Text/Highlighter/Renderer.php';
require_once 'Text/Highlighter/Renderer/Array.php';
require_once 'XML/Serializer.php';
* XML renderer, based on Andrey Demenev's HTML renderer.
* @author Stoyan Stefanov <ssttoo@gmail.com>
* @package Text_Highlighter
* @copyright 2006 Stoyan Stefanov
* @license http://www.php.net/license/3_0.txt PHP License
* @version Release: 0.5.0
* @link http://pear.php.net/package/Text_Highlighter
* Options for XML_Serializer
var $_serializer_options = array ();
* Descendents of Text_Highlighter call this method from the constructor,
* passing $options they get as parameter.
if (isset ($this->_options['xml_serializer'])) {
$this->_serializer_options = $this->_options['xml_serializer'];
* Signals that no more tokens are available
// call parent's finalize(), then serialize array into XML
$serializer = new XML_Serializer ($this->_serializer_options);
$result = $serializer->serialize ($output);
$this->_output = $serializer->getSerializedData ();
* c-hanging-comment-ender-p: nil
Documentation generated on Sat, 17 Dec 2011 07:30:21 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|