Cache Server Page www.2cto.com 后台从文件读取xml文件的内容: Class Test.TestApplication.TestOneToMany Extends %CSP.Page{ ClassMethod OnPage() As %Status{;Write " ",!s file=##class(%FileCharacterStream).%New()s file.Filename="C:/person.xml"w file.Read()Quit $$$OK} Parameter CONTENTTYPE = "text/xml"; } //注意:此后台代码为ensemble开发平台使用的M语言 加载过来的xml文件为:teacher1 student1_1 student1_2 teacher2 student2_1 student2_2