XML generator adapter based on XMLWriter

category Zend
package Zend_XmlRpc
subpackage Generator

 Methods

Construct new instance of the generator

__construct(string $encoding) 
Inherited

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::__construct()

Parameters

$encoding

string

XML encoding, default UTF-8

Returns XML without document declaration

__toString() : string
Inherited

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::__toString()

Returns

string

End of an XML element

closeElement(string $name) : \Zend\XmlRpc\Generator\AbstractGenerator
Inherited

Method marks the end of an XML element

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::closeElement()

Parameters

$name

string

XML tag name

Returns

Returns the XML as a string and flushes all internal buffers

flush() : string
Inherited

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::flush()

Returns

string

Return encoding

getEncoding() : string
Inherited

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::getEncoding()

Returns

string

Start XML element

openElement(string $name, string $value) : \Zend\XmlRpc\Generator\AbstractGenerator
Inherited

Method opens a new XML element with an element name and an optional value

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::openElement()

Parameters

$name

string

XML tag name

$value

string

Optional value of the XML tag

Returns

Emit XML document

saveXml() : string

Returns

string

Set XML encoding

setEncoding(string $encoding) : \Zend\XmlRpc\Generator\AbstractGenerator
Inherited

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::setEncoding()

Parameters

$encoding

string

Returns

Removes XML declaration from a string

stripDeclaration(string $xml) : string
Inherited

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::stripDeclaration()

Parameters

$xml

string

Returns

string

Close an previously opened XML element

_closeElement(string $name) : \Zend\XmlRpc\Generator\XmlWriter

Parameters

$name

string

Returns

Initialized XMLWriter instance

_init() : void

Open a new XML element

_openElement(string $name) : void

Parameters

$name

string

XML element name

Write XML text data into the currently opened XML element

_writeTextData(string $text) : void

Parameters

$text

string

XML text data

 Properties

 

XML encoding string

$encoding : string
Inherited

inherited_from \Zend\XmlRpc\Generator\AbstractGenerator::$$encoding
 

XMLWriter instance

$xmlWriter : \Zend\XmlRpc\Generator\XMLWriter