pattersongray.com
PGA












  About XML
  M3-Lite & XML
  Demo

THE NAME
XML = eXtended Meta Language

THE NEED
Mainly the need for structuring, storing and sending data gave birth to XML. This opens a whole new field for data management over the Web.

THE FUTURE
XML is currently the next technological advance in web design. XML's eXtensibility creates a great way to use it in data manipulation and transport. This standard is already implemented by large industries as healthcare, e-commerce, transportation, etc.

THE DIFFERENCE
The greatest facility XML brings is the data definition instead of data formating as HTML does. HTML will not be replaced by XML but rather complemented. Just as HTML it uses a markup language with the only difference that in XML you can define your own tags according to your needs. That's what makes this markup language eXtensible. It also may contain a DTD (stands for Document Type Definition) that basically defines the tags used in a particular XML document.

THE LOOK
Mainly this is how a very simple XML document looks:


	<data>
		<person>John Doe</person>
		<age>32</age>
		<Dob>11/25/68</Dob>
		<City>Seattle</City>
	</data>

 

Because of its built-in web server and fast and robust tcp/ip services, M3-Lite is quite up to the task of creating and sending out XML documents. Simple XML documents can be created via a SQL query and more complex documents can easily be written using standard M code. Efficient multi-tasking capabilities provides easy and fast access for hundreds of clients at the same time.

 

SCENARIO
NOTE: Unfortunately at this point in time this demo can be viewed only with Internet Explorer 5 or higher.

This demo is a great feature presentation of blending M3-Lite with XML technology. Basically is a patient look-up for a clinic where doctors can remotely check on their patients records.

The client sends an HTML form to the server requesting a certain patient ID# record.

M3-Lite takes this information and requests the right record from the database

The patient's record is pulled from the M3-Lite database where a M routine transforms it (on-the-fly) in a xml document. See an xml report document..

M3-Lite sends the xml document to the client along with a stylesheet (report.xsl). These two documents (XML and stylesheet) are merged together in a html (see html source) document. The stylesheet (report.xsl) helps displaying the xml document in the browser window.

Finally the whole packet arrives to the client's browser where the xml parser process the xml and xsl documents and outputs an html containing all the requires data.

In the following demo you can enter patient ID# (from 100 to 800), check the radio buttons, etc. Use the "?" button for a search, select a record and see it displayed. Also if you want a specific record to be delivered to you in raw xml, just click the "GET XML" button.

TRY THE DEMO LIVE !

Comments? Need help? Suggestions?

 


2000 Patterson, Gray & Associates. All rights reserved.