Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a simple text file like xml?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01089149
Message ID:
01089152
Views:
29
This message has been marked as the solution to the initial question of the thread.
The standard new line combination in DOS and Windows is CHR(13)+CHR(10). Try that firs. If it doesn't help, use something else to display context of the file.

>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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform