XMLWriter
class XMLWriter (View source)
Methods
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create new xmlwriter using source uri for output
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create new xmlwriter using memory for string output
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Toggle indentation on/off.
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Set string used for indenting.
(PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
Create start comment
(PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
Create end comment
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start attribute
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End attribute
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full attribute
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start namespaced attribute
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full namespaced attribute
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start element tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current element
(PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
End current element
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start namespaced element tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full element tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full namespaced element tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start PI tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current PI
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Writes a PI
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start CDATA tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current CDATA
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full CDATA tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write text
(PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
Write a raw XML text
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create document tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current document
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full comment tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD element
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD element
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD element tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD AttList
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD AttList
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD AttList tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD Entity
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD Entity
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD Entity tag
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Returns current buffer
(PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
Flush current buffer
Details
bool
openUri(string $uri)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create new xmlwriter using source uri for output
bool
openMemory()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create new xmlwriter using memory for string output
bool
setIndent(bool|int $enable)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Toggle indentation on/off.
bool
setIndentString(string $indentation)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Set string used for indenting.
bool
startComment()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
Create start comment
bool
endComment()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
Create end comment
bool
startAttribute(string $name)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start attribute
bool
endAttribute()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End attribute
bool
writeAttribute(string $name, string $value)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full attribute
bool
startAttributeNs(string|null $prefix, string $name, string $namespace)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start namespaced attribute
bool
writeAttributeNs(string|null $prefix, string $name, string $namespace, string $value)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full namespaced attribute
bool
startElement(string $name)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start element tag
bool
endElement()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current element
bool
fullEndElement()
(PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
End current element
bool
startElementNs(string|null $prefix, string $name, string $namespace)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start namespaced element tag
bool
writeElement(string $name, string $content = null)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full element tag
bool
writeElementNs(string|null $prefix, string $name, string $namespace, string $content = null)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full namespaced element tag
bool
startPi(string $target)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start PI tag
bool
endPi()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current PI
bool
writePi(string $target, string $content)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Writes a PI
bool
startCdata()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start CDATA tag
bool
endCdata()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current CDATA
bool
writeCdata(string $content)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full CDATA tag
bool
text(string $content)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write text
bool
writeRaw(string $content)
(PHP 5 >= 5.2.0, PECL xmlwriter >= 2.0.4)
Write a raw XML text
bool
startDocument(string $version = '1.0', string $encoding = null, string $standalone = null)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create document tag
bool
endDocument()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current document
bool
writeComment(string $content)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full comment tag
bool
startDtd(string $qualifiedName, string $publicId = null, string $systemId = null)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD tag
bool
endDtd()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD
bool
writeDtd(string $name, string $publicId = null, string $systemId = null, string $content = null)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD tag
bool
startDtdElement(string $qualifiedName)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD element
bool
endDtdElement()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD element
bool
writeDtdElement(string $name, string $content)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD element tag
bool
startDtdAttlist(string $name)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD AttList
bool
endDtdAttlist()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD AttList
bool
writeDtdAttlist(string $name, string $content)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD AttList tag
bool
startDtdEntity(string $name, bool $isParam)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Create start DTD Entity
bool
endDtdEntity()
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
End current DTD Entity
bool
writeDtdEntity(string $name, string $content, bool $pe, string $pubid, string $sysid, string $ndataid)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Write full DTD Entity tag
string
outputMemory(bool $flush = true)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
Returns current buffer
string|int
flush(bool $empty = true)
(PHP 5 >= 5.1.2, PECL xmlwriter >= 1.0.0)
Flush current buffer
static XMLWriter
toUri(string $uri)
No description
static XMLWriter
toMemory()
No description
static XMLWriter
toStream($stream)
No description