code: function fromQueryNode(query) {
    var node = query.attrs.node.split('#')[0];
    var caps = new Caps(node);
    var identities = query.getChildren('identity');
    var features = query.getChildren('feature');
  
    identities.forEach(function(id) {
      caps.addIdentity(id.attrs.category, id.attrs.type, id.attrs.name, id.attrs.lang);
    });
    features.forEach(function(feature) {
      caps.addFeature(feature.attrs.var);
    });
  
    return caps;
  }
docs: Creates a {Caps} from an XML node
  
  @param {Object} node
  
  @returns {Caps}