XMLSerializer
in package
Table of Contents
- $previousToken : Token
- $writer : XMLWriter
- $xmlns : NamespaceUri
- __construct() : mixed
- XMLSerializer constructor.
- toDom() : DOMDocument
- toXML() : string
- addToken() : void
Properties
$previousToken
private
Token
$previousToken
$writer
private
XMLWriter
$writer
$xmlns
private
NamespaceUri
$xmlns
Methods
__construct()
XMLSerializer constructor.
public
__construct([NamespaceUri $xmlns = null ]) : mixed
Parameters
- $xmlns : NamespaceUri = null
Return values
mixed —toDom()
public
toDom(TokenCollection $tokens) : DOMDocument
Parameters
- $tokens : TokenCollection
Return values
DOMDocument —toXML()
public
toXML(TokenCollection $tokens) : string
Parameters
- $tokens : TokenCollection
Return values
string —addToken()
private
addToken(Token $token) : void
Parameters
- $token : Token