i have the following code

VB Code:
  1. Dim myStream As System.IO.Stream
  2. Dim openFileDialog1 As New OpenFileDialog()
  3.  
  4. openFileDialog1.Title = "Open a File"
  5. openFileDialog1.InitialDirectory = "c:\"
  6. openFileDialog1.Filter = "xml files (*.xml)|*.xml|All files (*.*)|*.*"
  7. openFileDialog1.FilterIndex = 1
  8. openFileDialog1.RestoreDirectory = True
  9.  
  10. If openFileDialog1.ShowDialog() = DialogResult.OK Then
  11.             myStream = openFileDialog1.OpenFile()
  12.             fileName = openFileDialog1.FileName
  13.             MsgBox(fileName)
  14.             If Not (myStream Is Nothing) Then
  15.                 myStream.Close()
  16.             End If
  17. End If

the thing that gets me, is that when i display the string name "filename" in the message box, it has two extension,

"test.xml.xml"

how can i only make it add one extension... I have no idea what is wrong..

thanks,

jeff