 function   DataSet(xmldoc,   tagLabel)   {   
      this.rootObj   =   xmldoc.getElementsByTagName(tagLabel)   
      this.getCount   =   getCount   
      this.getData   =   getData   
      this.getAttribute   =   getAttribute   
  }     
    
  function   getCount(){   
      return   this.rootObj.length   
  }   
    
  function   getData(index,   tagName){   
      if   (index   >=   this.count)   return   "index   overflow"   
      var   node   =   this.rootObj[index]  
      var str = "";      
      if(  node.getElementsByTagName(tagName).length != 0 && node.getElementsByTagName(tagName)[0].firstChild != null )
      {
		if(node.getElementsByTagName(tagName)[0].firstChild.data)
		{
			str   =   node.getElementsByTagName(tagName)[0].firstChild.data;
		}
		else
		{
			str   =   node.getElementsByTagName(tagName)[0].xml;
		}
      }
      return   str   
  }   
    
  function   getAttribute(index,   tagName)   {   
      if   (index   >=   this.count)   return   "index   overflow"   
      var   node   =   this.rootObj[index]   
      var   str   =   node.getAttribute(tagName)   
      return   str   
  }