important: XMLWriter expects UTF-8 data from you. It can output xml in various encodings, but input should be strictly utf-8!Esta es la extensión XMLWriter. Envuelve a la API xmlWriter de libxml.
Esta extensión representa un escritor que provee medios no almacenados en caché de sólo avance para la generación de flujos o ficheros con datos XML.
Esta extensión se puede usar con el estilo orientado a objetos o con el procedimental. Cada método documentado describe la llamada procedimental alternativa.
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 < <