protected function fromXML(DOMElement $node)
{
$this->declaringNodeType = $node->getAttribute('declaringNodeType');
$this->name = $node->getAttribute('name');
$this->isAutoCreated = Helper::getBoolAttribute($node, 'isAutoCreated');
$this->isMandatory = Helper::getBoolAttribute($node, 'mandatory');
$this->isProtected = Helper::getBoolAttribute($node, 'isProtected');
$this->onParentVersion = \PHPCR\Version\OnParentVersionAction::valueFromName($node->getAttribute('onParentVersion'));
}