important: XMLWriter expects UTF-8 data from you. It can output xml in various encodings, but input should be strictly utf-8!Voici l'extension XMLWriter. Elle utilise l'API libxml xmlWriter.
Cette extension permet la génération de flux et de fichiers au format XML.
Cette extension peut être utilisée dans un style orienté objet ou un style procédural. Chaque méthode documentée décrit l'appel procédural équivalent.
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 < <