Fully Qualified Name: | Laminas\XmlRpc\Generator\DomDocument |
Extends: | AbstractGenerator |
DOMDocument based implementation of a XML/RPC generator
Name | Description | Defined By |
---|---|---|
__construct() | Construct new instance of the generator | AbstractGenerator |
__toString() | Returns XML without document declaration | AbstractGenerator |
closeElement() | End of an XML element | AbstractGenerator |
flush() | Returns the XML as a string and flushes all internal buffers | AbstractGenerator |
getEncoding() | Return encoding | AbstractGenerator |
openElement() | Start XML element | AbstractGenerator |
saveXml() | Save XML as a string | DomDocument |
setEncoding() | Set XML encoding | AbstractGenerator |
stripDeclaration() | Removes XML declaration from a string | AbstractGenerator |
Construct new instance of the generator
Parameter Name | Type | Description |
---|---|---|
$encoding | string | XML |
Returns:
Returns XML without document declaration
Returns: string
End of an XML element
Method marks the end of an XML element
Parameter Name | Type | Description |
---|---|---|
$name | string | XML |
Returns: \AbstractGenerator Fluent interface
Returns the XML as a string and flushes all internal buffers
Returns: string
Return encoding
Returns: string
Start XML element
Method opens a new XML element with an element name and an optional value
Parameter Name | Type | Description |
---|---|---|
$name | string | XML |
$value | string | Optional |
Returns: \AbstractGenerator Fluent interface
Save XML as a string
Returns: string
Set XML encoding
Parameter Name | Type | Description |
---|---|---|
$encoding | string |
Returns: \AbstractGenerator
Removes XML declaration from a string
Parameter Name | Type | Description |
---|---|---|
$xml | string |
Returns: string