The XML writer class is a PHP class for composing and outputting generic XML documents. It can compose XML documents with custom DTDs and XSL stylesheets. The document data can use any character set encoding. If necessary the class can convert input data with character set ISO-8859-1 into UTF-8 documents, and vice-versa.
| Tags | Internet Web Dynamic Content Software Development Libraries php classes |
|---|---|
| Operating Systems | OS Independent |
Recent releases


Changes: Input and output character set encodings are now treated as case insensitive.


Changes: This release adds an example script on how to generate an XML document with the class, as well a DTD for the generated document and an XSL stylesheet to render that document as an HTML page in an XML-capable browser.


Changes: This version adds the 'generatedcomment' variable to define the text of a comment to identify the application that generated the XML document.


Changes: This release adds support to generate the DTD and stylesheet tags, and now optimizes empty tags using short tag notation.


Changes: A function to add a tag and the respective text data with a single function call, and new example code for the class in the documentation.
- All comments
Recent commentsRe: Examples?
> There are no examples in the (very
> terse) documentation, and almost no
> comments in the code. Can you provide
> some examples showing how this class
> works?
Concindentally, I have just added some example code to the class documentation. :-)
Examples?
There are no examples in the (very terse) documentation, and almost no comments in the code. Can you provide some examples showing how this class works?