w3pop.com :: ÍøÂçѧԺ :: 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Óï¾ä |
ÆÀÂÛ (0)
All