XML generation make easy.
For explanation and infos, please see /libs/xml/extended_infos.txt This is a typical usage of this class:
Located in /xml/clXml.php (line 25)
XMLWriter | --clXml
Constructor.
Calls the xmlWriter constructor and start a new document.
Add an attribute to a node. Can only work on "opened" nodes.
Once a node is closed (with a data), an attribute cannot be added anymore
Check if a specified XSL sheet exists
Close a previously opened element.
Add a node
Detect the availables rendering sets in XSL_ROOT and populate $this->aryRenderingSets[]
To be registered as a valid rendering set, the set must comply with every conditions below: * That the directory is not a "go up" or "this directory" reference
* That the directory is readable
* That an "open.xsl" or "open" file exists
* That the "open[.xsl]" file is readable
* That an "close.xsl" or "close" file exists
* That the "close[.xsl]" file is readable
Close the document generation.
No more datas should be added after that
Add a general element to the tree.
This is used to include generic informations that you almost always want to include on every pages. By default, include the site title, the current language selected and the ISO code of the country that are stored in the session. Adapt accordingly to your needs.
Get the current rendering option
create a parent open element
Close the XML generation and output the document.
Either echo or return the xml document
Choose the rendering set. This method should NOT be called before detectRenderingSets().
If the specified rendering set is not detected or incomplete, the class falls back to the "html" set.
Attach a xsl stylesheet to the xml. If the style sheet file is not found, add a comment saying so
Start the generation of the XML document
Inherited From XMLWriter (Internal Class)
endAttribute ( )
endCdata ( )
endComment ( )
endDocument ( )
endDtd ( )
endDtdAttlist ( )
endDtdElement ( )
endDtdEntity ( )
endElement ( )
endPi ( )
flush ( )
fullEndElement ( )
openMemory ( )
openUri ( )
outputMemory ( )
setIndent ( )
setIndentString ( )
startAttribute ( )
startAttributeNs ( )
startCdata ( )
startComment ( )
startDocument ( )
startDtd ( )
startDtdAttlist ( )
startDtdElement ( )
startDtdEntity ( )
startElement ( )
startElementNs ( )
startPi ( )
text ( )
writeAttribute ( )
writeAttributeNs ( )
writeCdata ( )
writeComment ( )
writeDtd ( )
writeDtdAttlist ( )
writeDtdElement ( )
writeDtdEntity ( )
writeElement ( )
writeElementNs ( )
writePi ( )
writeRaw ( )
Documentation generated on Sun, 20 Jan 2008 00:13:31 +0100 by phpDocumentor 1.4.0