name = '!--'; $this->parent = null; $this->attributes = array(); $this->value = null; $this->children = array(); } /** * @param $includeNamespace boolean * @return string */ function getName($includeNamespace = true) { return false; } /** * @param $name string */ function setName($name) { assert(false); } /** * @return array all attributes */ function getAttributes() { return array(); } /** * @param $name string attribute name * @return string attribute value */ function getAttribute($name) { return null; } /** * @param $name string attribute name * @param value string attribute value */ function setAttribute($name, $value) { assert(false); } /** * @param $attributes array */ function setAttributes($attributes) { assert(false); } /** * @return array this node's children (XMLNode objects) */ function &getChildren() { return array(); } /** * @param $name * @param $index * @return XMLNode the ($index+1)th child matching the specified name */ function &getChildByName($name, $index = 0) { $child = null; return $child; } /** * Get the value of a child node. * @param $name String name of node * @param $index Optional integer index of child node to find * @return string */ function &getChildValue($name, $index = 0) { $returner = null; return $returner; } /** * @param $node XMLNode the child node to add */ function addChild(&$node) { assert(false); } } ?>