XMLSerializer
in package
Table of Contents
Properties
- $previousToken : Token
- $writer : XMLWriter
- $xmlns : NamespaceUri
Methods
- __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
toDom()
public
toDom(TokenCollection $tokens) : DOMDocument
Parameters
- $tokens : TokenCollection
Return values
DOMDocumenttoXML()
public
toXML(TokenCollection $tokens) : string
Parameters
- $tokens : TokenCollection
Return values
stringaddToken()
private
addToken(Token $token) : void
Parameters
- $token : Token