Issue creating or writing to a .xml file

Feb 24, 2020
2
0
Hello,

I would appreciate some assistance with the issues I have with any XML write function.

I have checked with IT and they say there ae no blocks in place.

I have no problem with any XML reading function from a hand created file, or using xpath.

Here is the .btm file extract for creating a file.
It is immediately closed as this is just a common check and create routine.

IFF NOT ISFILE Test.xml THEN echo %@xmlcreate[Test.xml] echo %@xmlsave[Test.xml] echo %@xmlclose[] ENDIFF

All commands return 0 indicating success.

If I add echo > Test.xml to the file that line does create the file.

I get the same result from the TCC prompt.

Thanks,
Kevin
 

samintz

Scott Mintz
May 20, 2008
1,557
26
Solon, OH, USA
If you just want to create a zero byte file then:
Code:
>Test.xml
will do the trick. The problem with echo is that it will output "Echo is off" or something similar unless you play some games. Plus the CR-LF EOL is also output.
 

Similar threads