ok I have some info stored. im making a rss feed out of it,

so the info is about nfl.

it has a team, then the score, then goes on to the next team, and gets a score.

now

for my rss feed, i need this layout.

Code:
<game>
<teamA></teamA>
<scoreA> </scoreA>
<teamB></teamB>
<scoreB> </scoreB>
</game>
<game>
<teamA></teamA>
<scoreA> </scoreA>
<teamB></teamB>
<scoreB> </scoreB>
</game>
the <game> style repeats after the first two teams, cuz it takes the first two teams and puts a "VS" in between. (in my asp script).

now the problem im hainvg is puting the "<game></game>" in there.

heres the code:

VB Code:
  1. Private Sub AddScores()
  2.     Dim lonLoop As Long, strCur() As String
  3.     Dim ff As Integer
  4.  
  5.     ff = FreeFile
  6.     Open "test.xml" For Output As #ff
  7.    
  8.      Print #ff, "<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>"
  9.      Print #ff, "<rss version=""2.0"">"
  10.  
  11.    
  12.     With lvScore
  13.         .ListItems.Clear
  14.        
  15.         For lonLoop = 1 To colScores.Count
  16.            
  17.             strCur = Split(colScores.Item(lonLoop), ":")
  18.            
  19.            
  20.             .ListItems.Add , , strCur(0)
  21.             .ListItems(.ListItems.Count).ListSubItems.Add , , strCur(1)
  22.            
  23.            
  24.           Print #ff, "<game>"
  25.        
  26.           Print #ff, "<teama>" & Trim(strCur(0)) & "</teama>"
  27.          
  28.           If Val(strCur(1)) > 0 Then
  29.              Print #ff, "<sce>" & strCur(1) & "</sce>"
  30.           Else
  31.              Print #ff, "<sce>" & Replace(strCur(1), "&nbsp;", "", vbTextCompare) & "</sce>"
  32.           End If
  33.          
  34.          
  35.         Print #ff, "</game>"
  36.          
  37.         Next lonLoop
  38.    
  39.  
  40.     End With
  41.     Print #ff, "</rss>"
  42.     Close #ff
  43. End Sub