function createNode($xmlTag) { if (isset($xmlTag['attributes']['type'])) { return null; } return parent::createNode(array('tag' => 'node', 'attributes' => $xmlTag['attributes'])); }