XML Class


Name: XML
Description:
Package: org.active-link.xml
Author: Zurab Davitiani
Version: 0.4.0
Extends: Tree
Requires: Tag, Tree, XMLBranch, XMLLeaf
See: Tree

All Methods

XML
addXMLAsBranch
addXMLBranch
addXMLLeaf
getBranches
getLeafs
getTagAttribute
getTagContent
getTagName
getXMLContent
getXMLString
hasBranch
hasLeaf
parseFromString
parseNodesFromTag
removeAllBranches
removeAllLeafs
removeBranches
setBranchTag
setTag
setTagAttribute
setTagContent

XML ( optional string argument )

Description:

Returns: none

Arguments:


addXMLAsBranch ( object xml, optional mixed id )

Description:

Returns: true if successful, false otherwise

Arguments:


addXMLBranch ( object xmlBranch, optional mixed id )

Description:

Returns: true if successful, false otherwise

Arguments:


addXMLLeaf ( object xmlLeaf, optional mixed id )

Description:

Returns: true if successful, false otherwise

Arguments:


getBranches ( optional string tagPath, optional string tagName, optional string attrName, optional string attrValue )

Description:

Returns: array of references to XMLBranch objects that meet specified criteria, or false if none found

Arguments:


getLeafs ( optional string tagPath )

Description:

Returns: array of references to XMLLeaf objects in specified tag path, false if none found

Arguments:


getTagAttribute ( string attributeName, optional string tagPath )

Description:

Returns: attribute of the specified tag if successful, false otherwise

Arguments:


getTagContent ( optional string tagPath )

Description:

Returns: content of the tag from the specified path if successful, false otherwise

Arguments:


getTagName ( )

Description:

Returns: tag name


getXMLContent ( )

Description:

Returns: contents of the current XML tag


getXMLString ( optional mixed indent )

Description:

Returns: complete XML string of current object

Arguments:


hasBranch ( )

Description:

Returns: true if branches exist, false otherwise


hasLeaf ( )

Description:

Returns: true if leaf(s) exist, false otherwise


parseFromString ( string parseString )

Description:

Returns: none

Arguments:


parseNodesFromTag ( )

Description:

Returns: none


removeAllBranches ( )

Description:


removeAllLeafs ( )

Description:


removeBranches ( optional string tagPath, optional string tagName, optional string attrName, optional string attrValue )

Description:

Returns: number of branches deleted

Arguments:


setBranchTag ( mixed branchId, object tag )

Description:

Returns: true on success, false otherwise

Arguments:


setTag ( object tag )

Description:

Returns: true if successful, false otherwise

Arguments:


setTagAttribute ( string attributeName, optional string attributeValue, optional string tagPath )

Description:

Returns: true if successful, false otherwise

Arguments:


setTagContent ( mixed content, optional string tagPath )

Description:

Returns: true if successful, false otherwise

Arguments: