当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > AppML XML 报告
The <xmlreport> element contains the elements of an XML report.
<xmlreport>元素嵌套了XML报告元素。
By adding an <xmlreport /> element after the <database> element, the AppML XML Report Service will generate an XML report based on the SQL defined in the <database> element. The AppML XML report root element is <table>. The first element after <table> is <sql>, which lists the SQL used in the description. Then there will be one <row> element for each record in the SQL. The <row> element contains one element for each field in the SQL:
通过在<database>元素之后添加一个<xmlreport />元素,该AppML XML报告服务将产生一个基于定义在<database>元素中SQL的XML报告;AppML XML 报告的根目录是<table>;在<table>之后的第一个标签是<sql>,它罗列了在描述中使用的SQL。此时,在SQL的每天记录之中都会出现一个<row>元素。<row>元素在SQL的每个字段中嵌套了一个元素:
<?xml version="1.0" ?> <appml> <database> <xmlreport /> </appml> |
View the output produced by the AppML XML Report Service
查看由AppML HTML 报告服务输出的结果
View the XML source file
查看XML 源文件
To create more advanced XML reports, look at the examples in the attributes and child elements below.
创建更多高级的XML 报告,见下面的属性案例和子元素列表中的案例。
The <xmlreport> element may have the following attributes:
<xmlreport>元素可以包含下面的属性:
Attribute 属性 | Value 值 | Description 描述 |
---|---|---|
name | name | Specifies a unique name for the XML report. This enables the AppML Report Service to run a number of different reports from the same AppML description 为XML 报告指定一个独立的名称。这可以使得AppML报告服务运行一组来自于相同AppML描述的不同的报告 |
src | src | Defines a reference to an <xmlreport> element stored in an external AppML description file 将一个参数定义在一个外部AppML描述文件中的<xmlreport>元素中 |
The <xmlreport> element may have the following child elements:
<xmlreport>元素可以包含下面的子元素:
Element 元素 | Description 描述 |
---|---|
sql | Defines an SQL statement for the XML report 为XML报告定义一个SQL语句 |