XMLNode Class Reference
[Xml]

Default handler for XMLParser returning a simple DOM-style object. This handler parses an XML document into a tree structure of XMLNode objects. More...

List of all members.

Public Member Functions

 addChild (&$node)
 getAttribute ($name)
 getAttributes ()
getChildByName ($name, $index=0)
getChildren ()
 getName ()
getParent ()
getValue ()
 setAttribute ($name, &$value)
 setAttributes ($attributes)
 setName ($name)
 setParent (&$parent)
 setValue ($value)
toXml ($output=null)
 XMLNode ($name=null)


Detailed Description

Default handler for XMLParser returning a simple DOM-style object. This handler parses an XML document into a tree structure of XMLNode objects.

Definition at line 18 of file XMLNode.inc.php.


Member Function Documentation

XMLNode.addChild ( &$  node  ) 

Parameters:
$node XMLNode the child node to add

Definition at line 148 of file XMLNode.inc.php.

XMLNode.getAttribute ( name  ) 

Parameters:
$name string attribute name
Returns:
string attribute value

Definition at line 86 of file XMLNode.inc.php.

Referenced by toXml().

XMLNode.getAttributes (  ) 

Returns:
array all attributes

Definition at line 78 of file XMLNode.inc.php.

& XMLNode.getChildByName ( name,
index = 0 
)

Parameters:
$name 
$index 
Returns:
XMLNode the ($index+1)th child matching the specified name

Definition at line 131 of file XMLNode.inc.php.

References getName().

& XMLNode.getChildren (  ) 

Returns:
array this node's children (XMLNode objects)

Definition at line 122 of file XMLNode.inc.php.

XMLNode.getName (  ) 

Returns:
string

Definition at line 50 of file XMLNode.inc.php.

Referenced by getChildByName().

& XMLNode.getParent (  ) 

Returns:
XMLNode

Definition at line 64 of file XMLNode.inc.php.

& XMLNode.getValue (  ) 

Returns:
string

Definition at line 108 of file XMLNode.inc.php.

XMLNode.setAttribute ( name,
&$  value 
)

Parameters:
$name string attribute name
value string attribute value

Definition at line 94 of file XMLNode.inc.php.

XMLNode.setAttributes ( attributes  ) 

Parameters:
$attributes array

Definition at line 101 of file XMLNode.inc.php.

XMLNode.setName ( name  ) 

Parameters:
$name string

Definition at line 57 of file XMLNode.inc.php.

XMLNode.setParent ( &$  parent  ) 

Parameters:
$parent XMLNode

Definition at line 71 of file XMLNode.inc.php.

XMLNode.setValue ( value  ) 

Parameters:
$value string

Definition at line 115 of file XMLNode.inc.php.

& XMLNode.toXml ( output = null  ) 

Parameters:
$output file handle to write to, or true for stdout, or null if XML to be returned as string
Returns:
string

Definition at line 156 of file XMLNode.inc.php.

References getAttribute().

XMLNode.XMLNode ( name = null  ) 

Constructor.

Parameters:
$name element/tag name

Definition at line 39 of file XMLNode.inc.php.


The documentation for this class was generated from the following file:

Generated on Mon Jul 14 10:55:49 2008 for Open Journal Systems by  doxygen 1.5.6