Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($name=null) | |
addChild (&$node) | |
destroy () | |
getAttribute ($name) | |
getAttributes () | |
& | getChildByName ($name, $index=0) |
& | getChildren () |
& | getChildValue ($name, $index=0) |
getName ($includeNamespace=true) | |
& | getParent () |
& | getValue () |
setAttribute ($name, $value) | |
setAttributes ($attributes) | |
setName ($name) | |
setParent (&$parent) | |
setValue ($value) | |
& | toXml ($output=null) |
Static Public Member Functions | |
static | xmlentities ($string, $quote_style=ENT_QUOTES) |
Data Fields | |
$attributes | |
$children | |
$name | |
$parent | |
$value | |
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.
XMLNode::__construct | ( | $name = null | ) |
Constructor.
$name | element/tag name |
Definition at line 54 of file XMLNode.inc.php.
References $name.
XMLNode::addChild | ( | & | $node | ) |
$node | XMLNode the child node to add |
Definition at line 186 of file XMLNode.inc.php.
XMLNode::destroy | ( | ) |
Definition at line 246 of file XMLNode.inc.php.
XMLNode::getAttribute | ( | $name | ) |
$name | string attribute name |
Definition at line 106 of file XMLNode.inc.php.
References $name.
Referenced by toXml().
XMLNode::getAttributes | ( | ) |
& XMLNode::getChildByName | ( | $name, | |
$index = 0 |
|||
) |
$name | |
$index |
Definition at line 151 of file XMLNode.inc.php.
References $name.
Referenced by getChildValue().
& XMLNode::getChildren | ( | ) |
Definition at line 142 of file XMLNode.inc.php.
References $children.
& XMLNode::getChildValue | ( | $name, | |
$index = 0 |
|||
) |
Get the value of a child node.
$name | String name of node |
$index | Optional integer index of child node to find |
Definition at line 173 of file XMLNode.inc.php.
References getChildByName().
XMLNode::getName | ( | $includeNamespace = true | ) |
$includeNamespace | boolean |
Definition at line 66 of file XMLNode.inc.php.
References $name.
& XMLNode::getParent | ( | ) |
& XMLNode::getValue | ( | ) |
XMLNode::setAttribute | ( | $name, | |
$value | |||
) |
$name | string attribute name |
value | string attribute value |
Definition at line 114 of file XMLNode.inc.php.
XMLNode::setAttributes | ( | $attributes | ) |
XMLNode::setName | ( | $name | ) |
XMLNode::setParent | ( | & | $parent | ) |
XMLNode::setValue | ( | $value | ) |
& XMLNode::toXml | ( | $output = null | ) |
$output | file handle to write to, or true for stdout, or null if XML to be returned as string |
Definition at line 194 of file XMLNode.inc.php.
References $name, $value, getAttribute(), and xmlentities().
|
static |
Definition at line 242 of file XMLNode.inc.php.
Referenced by MedraWebservice\_escapeXmlEntities(), and toXml().
array XMLNode::$attributes |
the element's attributes
Definition at line 36 of file XMLNode.inc.php.
Referenced by getAttributes(), and setAttributes().
array XMLNode::$children |
references to the XMLNode children of this node
Definition at line 48 of file XMLNode.inc.php.
Referenced by getChildren().
string XMLNode::$name |
the element (tag) name
Definition at line 24 of file XMLNode.inc.php.
Referenced by __construct(), getAttribute(), getChildByName(), getName(), setAttribute(), setName(), and toXml().
XMLNode XMLNode::$parent |
reference to the parent node (null if this is the root node)
Definition at line 30 of file XMLNode.inc.php.
Referenced by getParent(), and setParent().
string XMLNode::$value |
the element's value
Definition at line 42 of file XMLNode.inc.php.
Referenced by getValue(), setAttribute(), setValue(), and toXml().