16、按照上图所示输入必要的信息。在 Columns 选项卡上,选择将每个 XML 文件放在单独的文件中。可以点击 Show Command 查看并保存命令,供以后在命令行上使用。
应该会看到DB20000,这表示一切正常。
17、输出文件是 C:\DB2\hellowld\user1_author.del。user1_author.del 文件的内容如下:
"Claire",1,"DB2 UDB ","", 100 "Renata",2,"DB2 UDB ","", 98 "Jane",3,"WEB COMMERCE ","", 89 |
注意,MODULE_NAME 列被填充到 20 个字符。另外,XML 文档实际上不在 DEL 文件中,这里只有一个引用(XDS),它指向包含 XML 数据的文件。
下面是 author.del.001.xml 的内容(为了便于阅读,已经调整了格式):
<?xml version="1.0" encoding="UTF-8" ?> <author_info> <name>Claire</name> <ID>1</ID> <department> <department_title>DB2 CE</department_title> <responsibility>Supporting customer problems</responsibility> <start_year>2005</start_year> </department> <department> <department_title>DB2 Index Manager</department_title> <responsibility>Develop new features for DB2 indexes</responsibility> <start_year/> </department> </author_info> |
如果使用 Web 浏览器查看 XML 文档,会看到:
 |
| 图7:XML 数据 |
上一页 [1] [2] [3]