4.5. < AppML > reference manual

发布时间 : 2025-10-25 13:33:38 UTC      

Page Views: 9 views

4.5.1. < AppML > data model:

<appml security="security"> <datasource> Datasource definition goes here datasource> <filters> Filter definitions goes here (if any) filters> <update> Update definitions goes here (if any) update> <anything> Anything you want to add to the model anything> appml>     

4.5.2. < AppML > Security

< AppML > Security is set through the security attribute in the < AppML > tag.

<appml security="artists"> 

The above application begins with security definition attributes, and only artists users are allowed to log in.

In this case, the user name logged in must be a member of the “artists” group.

4.5.3. < datasource > element

The < datasource > element applied by < AppML > defines four different data types:

Child element (only one can be applied)

element

Description

< database >

Define data types

< xmlfile >

Define XML source files

< csvfile >

Define a comma-delimited text file

4.5.4. < database > element

The < database > element defines the database

Child element

element

Description

< connection >

Link database name

< execute >

SQL statement executed before data retrieval (optional)

< sql >

SQL statements for retrieving data

< maintable >

Master table of the application (optional)

< keyfield >

Key field of the main table (optional)

4.5.5. Data stored in the SQL database

This is the most common solution for data-oriented applications.

<datasource> <database> <connection>CDDataBaseconnection> <sql>SELECT Artist, Title, Country FROM CD_Catalogsql> database> datasource>    

The above model can select three data options (Artist, Title, Country) from the “CD_Catalog” table of the “CDDataBase” database.

The number of rows returned as a result is unknown.

4.5.6. Data stored in XML files

< AppML > can read data from a XML file:

Example

<appml> <datasource> <xmlfile src="cd_catalog.xml"> <record>CDrecord> <item> <name>Titlename> <nodename>TITLEnodename> item> <item> <name>Artistname> <nodename>ARTISTnodename> item> <item> <name>Countryname> <nodename>COUNTRYnodename> item> xmlfile> datasource> appml>    

尝试一下 »

This method stores data in a XML file on the server.

4.5.7. Data is stored in a text (Text) file

< AppML > can read data from a text file:

Example

<appml> <datasource> <csvfile src="cd_catalog.txt"> <item> <name>Titlename> <index>1index> item> <item> <name>Artistname> <index>2index> item> <item> <name>Pricename> <index>5index> item> csvfile> datasource> appml>    

尝试一下 »

This method can store data in a text file on the server.

4.5.8. You can create a database if you want.

< AppML > you can create a database if necessary:

<database> <connection>CDDataBaseconnection> <execute> CREATE TABLE CD_catalog ( CD_Id INT IDENTITY, Title NVARCHAR(255), Artist NVARCHAR(255), Country NVARCHAR(255), Company NVARCHAR(255), Price NUMBER,Published INT) execute> database>    

Perfect the rapid prototyping model!

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。