XMLDocument Class
Name: XMLDocument
Description:
- * XMLDocument class provides a document class for XML
Package: org.active-link.xml
Author: Zurab Davitiani
Version: 0.4.0
Extends: File
Requires: File, XML, Tag
See: XML
All Methods
XMLDocument
getXML
getXMLString
parseFromString
save
setDefaultXMLTag
setEncoding
setVersion
setXML
XMLDocument
( optional string filename, optional string fileOpenMode )
Description:
- * If filename is set and fileOpenMode is one of the modes that allows file to be read then file is opened and its contents parsed
- * If filename is set and fileOpenMode is something other than above the appropriate file is opened/created
- * If filename is not set then no files are opened/parsed/created and object contains default values
Arguments:
- optional string filename
- optional string fileOpenMode
getXML
( )
Description:
- * Returns the XML object containing actual XML tree; in PHP 4 make sure to use =& to get a reference instead of a copy
Returns: object of type XML containing actual XML tree
getXMLString
( )
Description:
- * Returns the XML string of a complete XML document
Returns: string containing contents of XML document
parseFromString
( string XMLDocString )
Description:
- * Parses XML document from supplied string, also called from constructor when parsing file contents
Returns: none
Arguments:
save
( string filename )
Description:
- * Saves document contents to a supplied filename
Returns: true if successful, false otherwise
Arguments:
setDefaultXMLTag
( )
Description:
- * (Re)sets XML version/encoding to default values
Returns: none
setEncoding
( string encoding )
Description:
- * Sets encoding of the XML document
Returns: none
Arguments:
setVersion
( string version )
Description:
- * Sets version of the XML document
Returns: none
Arguments:
setXML
( object xml )
Description:
- * Sets XML object of the XMLDocument, sets/changes/updates XML content to the supplied XML tree, uses reference no copy is created
Returns: true if successful, false otherwise
Arguments: