>>I am trying to create a simple text file that would look like XML.
>>
>>Here is what I do:
>>
>>
>>cMyStr = "<MYTAG>" + mytable.fld1 + "</MYTAG>" + chr(13) + ;
>> "<MYTAG2>" + mytable.fld2 + "</MYTAG2>" + chr(13) + ;
>> "<MYTAG3>" + mytable.fld3 + "</MYTAG3>"
>>strtofile(cMyStr, "MYFILE.XML" )
>>
>>
>>The problem is that when I look at the MYFILE.XML in DOS (typing TYPE MYFILE.XML) only the last tag is shown to be in the resulting file.
>>
>>What am I missing here?
>>
>>Thank you.
>
>There's some code that will DBF to XML and XML to DBF w/o CA or X2C in these messages:
>Main program in message #
1086916>Performance fix in message #
1086938 (error handler call)
>Performance fix in message #
1087429 (speed)
Thank you for references.
>I know there are CrLfs in XML FIles - but am not sure how they behave when embedded in XML strings. XML Vales or Node Text do not like "&" - IF they work - forget I mentioned it - if there are issues there may be some XML substitution for CrLf (like there is for ampersand).
The solution was pretty simple, I was missing CHR(10) after CHR(13).
Thank you for your input.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham