code: function(doc) {
          var way_list = doc.getElementsByTagName("way");
          var return_ways = [];
          for (var i = 0; i < way_list.length; i++) {
              var way = way_list[i];
              var way_object = {
                id: way.getAttribute("id")
              };
              
              way_object.tags = this.getTags(way);
              
              var node_list = way.getElementsByTagName("nd");
              
              way_object.nodes = new Array(node_list.length);
              
              for (var j = 0; j < node_list.length; j++) {
                  way_object.nodes[j] = node_list[j].getAttribute("ref");
              }  
              return_ways.push(way_object);
          }
          return return_ways; 
          
      }
docs: Method: getWays
  Return the way items from a doc.
  
  Parameters:
  doc - {DOMElement} node to parse tags from