public static function fromNode($node, $parent) {
        if (is_null($node["value"]))
            return new Feature($node, $parent, $node->children());
        else
            return new ValueFeature($node, $parent, $node->children());
    }
public static function fromNode($node, $parent) {
        if (is_null($node["value"]))
            return new Feature($node, $parent, $node->children());
        else
            return new ValueFeature($node, $parent, $node->children());
    }
public static function fromNode ( $ node , $ parent ) { if ( is_null ( $ node [ "value" ] ) ) return new Feature ( $ node , $ parent , $ node -> children ( ) ) ; else return new ValueFeature ( $ node , $ parent , $ node -> children ( ) ) ; }
Creates a feature from an XML node.
@param \SimpleXMLElement $node
@param \SimpleXMLElement $parent
@return Feature
Creates a feature from an XML node .