ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: APPML :: AppML XML ±¨¸æ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

APPML
AppML ¼ò½é
AppML °¸Àý
AppML °¸Àý˵Ã÷
AppML ÍøÂç·þÎñ
°¸ÀýÑо¿¼ò½é
°¸ÀýÑо¿£ºÊý¾Ý¿â
°¸ÀýÑо¿£ºAppML
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºÄ¿Â¼
°¸ÀýÑо¿£º²úÆ·
°¸ÀýÑо¿£ºÍÐÔËÈË
°¸ÀýÑо¿£º¹©Ó¦ÉÌ
°¸ÀýÑо¿£º¿Í»§
°¸ÀýÑо¿£º¹ÍÔ±
°¸ÀýÑо¿£ºÓ¦ÓóÌ..
°¸ÀýÑо¿£ºÏÂÔØ
AppML FAQ
AppML Îĵµ
AppML Êý¾Ý¿âÔªËØ

AppML XML ±¨¸æ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:3525 :: ::

The <xmlreport> element contains the elements of an XML report.
<xmlreport>ÔªËØÇ¶Ì×ÁËXML±¨¸æÔªËØ¡£


The <xmlreport> Element
<xmlreport>ÔªËØ

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>
<connection>northwind</connection>
<sql>SELECT CompanyName,ContactName,City FROM Customers</sql>
</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 ±¨¸æ£¬¼ûÏÂÃæµÄÊôÐÔ°¸ÀýºÍ×ÓÔªËØÁбíÖеݸÀý¡£


<xmlreport> Attributes
<xmlreport>ÊôÐÔ

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>ÔªËØÖÐ


<xmlreport> Child Elements
<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