1.

Solve : Copy command - SUB tag??

Answer»

I'm using use the DOS 'copy' statement to link three parts of an xml file together. However the completed file has an additional 'SUB' tag at the end that I didn't expect:


http://www.somewhere">
1258,1101,1199,1507,813
1294,1118,1245,1580,820

SUB

(Note: the tag is usually white text in a little black box but it doesn't show up as text if you copy and paste it. Instead it just looks LIKE a thick black line or a little box > . I can see it SAYS SUB when I view the code with a proper text editor)

This SUB tag isn't in any of the three files to start with so it must be related to the copy command somehow. The annoying thing is that it stops the code working. If I delete it manually every thing then works fine. Any idea how to get RID of it automatically through the x command or merge the files WITHOUT it getting there in the first place? Try using the type command:

Code: [Select]type file1.xml > final.xml
type file2.xml >> final.xml
type file3.xml >> final.xmlwas the /b switch used with the copy command?rogerss, please give full details of how you are attempting to use the COPY command to link 3 xml files together.

I'm driving DOS through SAS using the x command. The SAS code is actually generating around 700 xml data files from the ORIGINAL data. The 'Append' solution using the type command instaed of Copying works absolutely perfectly. Thanks Dias. Star player!



Discussion

No Comment Found