XMLWriter
- Введение
- Installing/Configuring
- Предопределенные константы
- XMLWriter Функции
- XMLWriter::endAttribute — End attribute
- XMLWriter::endCData — End current CDATA
- XMLWriter::endComment — Create end comment
- XMLWriter::endDocument — End current document
- XMLWriter::endDTDAttlist — End current DTD AttList
- XMLWriter::endDTDElement — End current DTD element
- XMLWriter::endDTDEntity — End current DTD Entity
- XMLWriter::endDTD — End current DTD
- XMLWriter::endElement — End current element
- XMLWriter::endPI — End current PI
- XMLWriter::flush — Flush current buffer
- XMLWriter::fullEndElement — End current element
- XMLWriter::openMemory — Create new xmlwriter using memory for string output
- XMLWriter::openURI — Create new xmlwriter using source uri for output
- XMLWriter::outputMemory — Returns current buffer
- XMLWriter::setIndentString — Set string used for indenting
- XMLWriter::setIndent — Toggle indentation on/off
- XMLWriter::startAttributeNS — Create start namespaced attribute
- XMLWriter::startAttribute — Create start attribute
- XMLWriter::startCData — Create start CDATA tag
- XMLWriter::startComment — Create start comment
- XMLWriter::startDocument — Create document tag
- XMLWriter::startDTDAttlist — Create start DTD AttList
- XMLWriter::startDTDElement — Create start DTD element
- XMLWriter::startDTDEntity — Create start DTD Entity
- XMLWriter::startDTD — Create start DTD tag
- XMLWriter::startElementNS — Create start namespaced element tag
- XMLWriter::startElement — Create start element tag
- XMLWriter::startPI — Create start PI tag
- XMLWriter::text — Write text
- XMLWriter::writeAttributeNS — Write full namespaced attribute
- XMLWriter::writeAttribute — Write full attribute
- XMLWriter::writeCData — Write full CDATA tag
- XMLWriter::writeComment — Write full comment tag
- XMLWriter::writeDTDAttlist — Write full DTD AttList tag
- XMLWriter::writeDTDElement — Write full DTD element tag
- XMLWriter::writeDTDEntity — Write full DTD Entity tag
- XMLWriter::writeDTD — Write full DTD tag
- XMLWriter::writeElementNS — Write full namesapced element tag
- XMLWriter::writeElement — Write full element tag
- XMLWriter::writePI — Writes a PI
- XMLWriter::writeRaw — Write a raw XML text
Коментарии
important: XMLWriter expects UTF-8 data from you. It can output xml in various encodings, but input should be strictly utf-8!
The single quote predefined entity is not escaped.
The other predefined entities are but not the single quote, so you will have to do it yourself.
That's what you would expect:
Ampersand & &
Single Quote ' '
Double Quote " "
Greater Than > >
Less Than < <
That's what you get with \XmlWriter:
Ampersand & &
Single Quote ' '
Double Quote " "
Greater Than > >
Less Than < <