important: XMLWriter expects UTF-8 data from you. It can output xml in various encodings, but input should be strictly utf-8!This is the XMLWriter extension. It wraps the libxml xmlWriter API.
This extension represents a writer that provides a non-cached, forward-only means of generating streams or files containing XML data.
This extension can be used in an object-oriented style or a procedural one. Every method documented describes the alternative procedural call.
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 < <