gainend 发表于 2012-10-17 09:12 
我的文件已经在按xml格式在桌面,请您仔细说怎么操作读进去文件。
忘了你是要读xml
xmluse "c:\work\desktop\data1",clear doctype(excel)
see this,
Assuming that we have a file named auto.xml that was saved using the
doctype(dta) option of xmlsave, we can read in this dataset with the
command
. xmluse auto, doctype(dta) clear
If the file was saved from Microsoft Excel to a file called auto.xml that
contained the worksheet Rollover Data, with the first row representing
column headers (or variable names), we could import the worksheet by
typing
. xmluse auto, doctype(excel) sheet("Rollover Data") firstrow clear
Continuing with the previous example, if we wanted just the first column
of data in that worksheet, and we knew there were only 75 rows, including
one for the variable name, we could have typed
. xmluse auto, doc(excel) sheet("Rollover Data") cells(A1:A75) first
clear