protected function parseChildren(DOMElement $ir, DOMElement $parent)
	{
		foreach ($parent->childNodes as $child)
		{
			switch ($child->nodeType)
			{
				case XML_COMMENT_NODE:
					// Do nothing
					break;

				case XML_TEXT_NODE:
					if (trim($child->textContent) !== '')
					{
						$this->appendLiteralOutput($ir, $child->textContent);
					}
					break;

				case XML_ELEMENT_NODE:
					$this->parseNode($ir, $child);
					break;

				default:
					throw new RuntimeException("Cannot parse node '" . $child->nodeName . "''");
			}
		}
	}
protected function parseChildren(DOMElement $ir, DOMElement $parent)
	{
		foreach ($parent->childNodes as $child)
		{
			switch ($child->nodeType)
			{
				case XML_COMMENT_NODE:
					// Do nothing
					break;

				case XML_TEXT_NODE:
					if (trim($child->textContent) !== '')
					{
						$this->appendLiteralOutput($ir, $child->textContent);
					}
					break;

				case XML_ELEMENT_NODE:
					$this->parseNode($ir, $child);
					break;

				default:
					throw new RuntimeException("Cannot parse node '" . $child->nodeName . "''");
			}
		}
	}
protected function parseChildren ( DOMElement $ ir , DOMElement $ parent ) { foreach ( $ parent -> childNodes as $ child ) { switch ( $ child -> nodeType ) { case XML_COMMENT_NODE : // Do nothing break ; case XML_TEXT_NODE : if ( trim ( $ child -> textContent ) !== '' ) { $ this -> appendLiteralOutput ( $ ir , $ child -> textContent ) ; } break ; case XML_ELEMENT_NODE : $ this -> parseNode ( $ ir , $ child ) ; break ; default : throw new RuntimeException ( "Cannot parse node '" . $ child -> nodeName . "''" ) ; } } }
Parse all the children of a given element

@param  DOMElement $ir     Node in the internal representation that represents the parent node
@param  DOMElement $parent Parent node
@return void
Parse all the children of a given element