public function parent() {
		$parent = $this->domnode;
		if(!$parent)
			return new Node(null);
		while(true) {
			$parent = $parent->parentNode;
			if(!$parent)
				return;
			if($parent->nodeType == XML_ELEMENT_NODE)
				return new Node($parent);
		}
	}
public function parent() {
		$parent = $this->domnode;
		if(!$parent)
			return new Node(null);
		while(true) {
			$parent = $parent->parentNode;
			if(!$parent)
				return;
			if($parent->nodeType == XML_ELEMENT_NODE)
				return new Node($parent);
		}
	}
public function parent ( ) { $ parent = $ this -> domnode ; if ( ! $ parent ) return new Node ( null ) ; while ( true ) { $ parent = $ parent -> parentNode ; if ( ! $ parent ) return ; if ( $ parent -> nodeType == XML_ELEMENT_NODE ) return new Node ( $ parent ) ; } }
Returns the parent node.

@return Node
Returns the parent node .