public function isAutoCreated() { $parent = $this->getParent(); if ($parent === null) { return false; } if (array_key_exists($this->getName(), $parent->getNodeType()->getAutoCreatedChildNodes())) { return true; } return false; }