Please visit our sponsors !
AppML Elements
With AppML, you will describe your application elements
using XML.
AppML Elements
With AppML, all application elements are described using standard XML.
A predefined set of XML tags are used to describe files, documents, databases
or database content, input
forms, reports, queries, functions, menus, and a lot more.
Please take a closer look at the examples below:
A CD Catalog Stored in a Database:
TITLE |
ARTIST |
YEAR |
Empire Burlesque |
Bob Dylan |
1985 |
Hide your heart |
Bonnie Tyler |
1988 |
Greatest Hits |
Dolly Parton |
1982 |
Example 1: A Database Element
AppML uses an <appml> document to describe a selection of data from
the database:
<appml>
<database>
<connection>music_db</connection>
<sql>
Select title,artist,year from cd_catalog
</sql>
</database>
</appml>
|
Note that the description is written in standard XML. Also note that AppML uses SQL to
describe a selection from a database table.
Example 2: A Form Element
AppML can use a <form> element to describe an XHTML input form.
<form>
<table border="0" width="100%">
<tr>
<td>Title:</td>
<td><input size="30" id="title" value="" /></td>
</tr>
<tr>
<td>Artist:</td>
<td><input size="30" id="artist" value="" /></td>
</tr>
<tr>
<td>Year:</td>
<td><input size="4" id="year" value="" /></td>
</tr>
</table>
</form>
|
Note that the description is written in standard XHTML. Also note that AppML
uses the id attribute to identify the input fields.
AppML Separates Data from Process
In application development, it is vital to separate the data from the
processes that
act on the data.
It is important to understand that the element descriptions from the two examples above cannot
do anything.
AppML has to rely on a separate Web Service to connect to a database and execute
the selection. AppML also has to rely on a Web Service to execute the
application input form.
With AppML, all application elements are described using AppML, but the
application itself is executed by a collection of different Web Services.
You can read more about AppML Web Services in the next chapter.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|