XMLWriter

Introdução

Esta é a extensão XMLWriter. Ela encapsula a API xmlWriter da libxml.

Esta extensão representa um escritor que fornece um meio não armazenado em cache, somente para encaminhamento, de gerar fluxos ou arquivos contendo dados XML.

Esta extensão pode ser usada em um estilo orientado a objetos ou procedural. Cada método documentado descreve a chamada procedural alternativa.

adicionar nota

Notas de Usuários 2 notes

up
1
lingtalfi
10 years ago
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     <     &lt;

That's what you get with \XmlWriter:

Ampersand     &     &amp;
Single Quote     '     '
Double Quote     "     &quot;
Greater Than     >     &gt;
Less Than     <     &lt;
up
0
Alexey Zakhlestin
17 years ago
important: XMLWriter expects UTF-8 data from you. It can output xml in various encodings, but input should be strictly utf-8!
To Top