Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

How to Use AppML

How to Use


This section will demonstrate how to createan application through the following 4 simple steps.

The next chapter will introduce how to downloadand start developing web applications on your own computer.


1. Create Model

Create a file with the following content

  Demo

  SELECT CustomerName,ContactName,City,Country FROM Customers

  CustomerName

 

  CustomerName

 

Save the file as Customers.xml in the Models subdirectory (recommended).


Model Parsing

The tag defines the model.

The tag defines the data source of the model.

The tag defines the database.

The tag defines the database connection.

The tag defines the data query

The tag defines the default sort order.

The tag defines valid query filters.


2. Create a Web Page

In the first app, create an HTML page:

Example

My First Web Application

 

 

 

 

 

 

Customer City Country
Alfreds Futterkiste Berlin Germany

Try it »


3. Add Styles

Add cascading styles to your web page app:

Example

My First Web Application

 

 

 

 

 

 

class="appmltable"
Customer City Country
Alfreds Futterkiste Berlin Germany

Try it »


4. Add a script, then run the application

Add a script to your web page to run app:

Example

My First Web Application

class="appmltable">

 

 

 

 

 

 

id="Template01" id="appml_row"
Customer City Country

#CustomerName#

#City#

#Country#

Try it »


Example Parsing

The library contains a large number of functions. These functions can be called in your web page.