Hi,

I am reading a XML string from a database and writing into a file. The problem is I have some fraction values in the database. Iam using MSXML parser to read the XML string and write it. But it converts all the fraction to date and writes to the file.
For example if I have 5/8 in my XML string, it is written in file as 8-May.
I even tried CStr, but it didn't work. AmI doing something wrong?
I have given the code below.
VB Code:
  1. strTempString = XMLDoc.childNodes(0).childNodes(j).childNodes(0).Text & "," & _
  2.             strPriceKey & "," & _
  3.             XMLDoc.childNodes(0).childNodes(j).childNodes(3).Text & "," & _
  4.             XMLDoc.childNodes(0).childNodes(j).childNodes(4).Text & "," & _
  5.             XMLDoc.childNodes(0).childNodes(j).childNodes(7).Text & "," & _
  6.             XMLDoc.childNodes(0).childNodes(j).childNodes(8).Text & "," & _
  7.             XMLDoc.childNodes(0).childNodes(j).childNodes(2).Text & "," & _
  8.             XMLDoc.childNodes(0).childNodes(j).childNodes(5).Text & "," & _
  9.             XMLDoc.childNodes(0).childNodes(j).childNodes(6).Text & "," & _
  10.             CStr(XMLDoc.childNodes(0).childNodes(j).childNodes(11).Text) & "," & _
  11.             XMLDoc.childNodes(0).childNodes(j).childNodes(10).Text & "," & _
  12.         XMLDoc.childNodes(0).childNodes(j).childNodes(9).Text
  13.         strFileArray(j) = strTempString
  14.         intFnum = FreeFile
  15.         Open strFilename For Output Lock Write As #intFnum
  16.         For i = 0 To UBound(strFileArray)
  17.             Print #intFnum, strFileArray(i)
  18.         Next i
  19.         Erase strFileArray
  20.         Close #intFnum
In the above code
CStr(XMLDoc.childNodes(0).childNodes(j).childNodes(11).Text)
is the fractional part.

Thanks,
Pres