XML generator adapter based on XMLWriter

package Zend_XmlRpc
inherited_from \Zend_XmlRpc_Generator_GeneratorAbstract

 Methods

Construct new instance of the generator

__construct(string $encoding = 'UTF-8'
Inherited

Parameters

$encoding

string

XML encoding, default UTF-8

Returns XML without document declaration

__toString() : string
Inherited

Returns

string

End of an XML element

closeElement(string $name) : \Zend_XmlRpc_Generator_Abstract
Inherited

Method marks the end of an XML element

Parameters

$name

string

XML tag name

Returns

\Zend_XmlRpc_Generator_AbstractFluent interface

Returns the XML as a string and flushes all internal buffers

flush() : string
Inherited

Returns

string

Return encoding

getEncoding() : string
Inherited

Returns

string

Start XML element

openElement(string $name, string $value = null) : \Zend_XmlRpc_Generator_Abstract
Inherited

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

Parameters

$name

string

XML tag name

$value

string

Optional value of the XML tag

Returns

\Zend_XmlRpc_Generator_AbstractFluent interface

Return XML as a string

saveXml() 
inherited_from \Zend_XmlRpc_Generator_GeneratorAbstract::saveXml()

Return XML as a string

saveXml() : string
Inherited

Returns

string

Removes XML declaration from a string

stripDeclaration(string $xml) : string
Inherited

Parameters

$xml

string

Returns

string

Close an previously opened XML element

_closeElement(string $name) : void
inherited_from \Zend_XmlRpc_Generator_GeneratorAbstract::_closeElement()

Parameters

$name

string

End XML element

_closeElement(string $name) 
Inherited

Parameters

$name

string

Initialized XMLWriter instance

_init() : void

Open a new XML element

_openElement(string $name) : void
inherited_from \Zend_XmlRpc_Generator_GeneratorAbstract::_openElement()

Parameters

$name

string

XML element name

Start XML element

_openElement(string $name) 
Inherited

Parameters

$name

string

XML element name

Write XML text data into the currently opened XML element

_writeTextData(string $text) : void
inherited_from \Zend_XmlRpc_Generator_GeneratorAbstract::_writeTextData()

Parameters

$text

string

XML text data

Write XML text data into the currently opened XML element

_writeTextData(string $text) 
Inherited

Parameters

$text

string

 Properties

 

XML encoding string

$_encoding : string

Default

 

XMLWriter instance

$_xmlWriter : \XMLWriter

Default