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


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


Release Notes: 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.


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


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


Release Notes: 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.
Recent comments
27 Aug 2001 20:11
Re: 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. :-)
26 Aug 2001 15:32
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?