code: function(node, obj) {
          var children = node.childNodes;
          var child, nodeName, value;
          for(var i=0, len=children.length; i<len; ++i) {
              child = children[i];
              if(child.nodeType == 1) {
                  nodeName = child.nodeName.split(":").pop();
                  value = child.getAttribute("value");
                  if(!obj[nodeName]) {
                      obj[nodeName] = value;
                  } else {
                      if(typeof obj[nodeName] == "string") {
                          obj[nodeName] = [obj[nodeName]];
                      }
                      obj[nodeName].push(value);
                  }
              }
          }
      }
docs: Method: readRestriction
  Reads restriction defined in the child nodes of a restriction element
  
  Parameters:
  node - {DOMElement} the node to parse
  obj - {Object} the object that receives the read result