|
XML and PHP. Part 1: Using The WDDX Functions
Jesús M. Castagnetto
I've had text lying around from when we were writing the book (1) last year, and the people at Wrox gave they OK for
the information to be put as articles in PHPBuilder.com, so here it is the
first one of a series.
Introduction
The Extensible Markup Language (XML), is a metalanguage that allows the
definition of markup languages. It is not a markup language in itself, but you
can think of it as providing the construction rules for specialized languages
used for data description. XML is not the new generation HTML, it is more
oriented to be used in data applications in which the data and its rendition
are separated. HTML mixes data description with data rendering, i.e. it has
tags like <TITLE> mixed with tags such as <B>.
XML is more like SGML-lite (I am stretching the comparison here), and similar
to the DSSSL technology used in SGML for document rendering, it has several
options that the developer can use to generate a displayable document (CSS,
XSL, etc.). XML allows us to create our own "tags" to better
describe our data, and by using a DTD (a Document Type Definition) that
describes the structure and valid content of our documents, we can
easily perform validations on a document using general tools.
When we define our own tags (a DTD), we are making an "XML application", i.e.
we are applying the rules of the XML specification to define a particular class of
documents. The HTML DTD could be considered in this context an XML application,
except that it does not comply in toto with strict XML. A better example would be
the DocBook XML DTD, which is being used to create documentation in several
Open Source projects (the PHP manual, the Linux Documentation Project, etc.)
As a first approximation we can use XML for a creating letters, chapters of
books, articles, etc. Or we can use it in the context of data storage and
retrieval (an XML based database for example).
In this article I will focus on using XML documents for data encapsulation. Wrapping our data in XML
clothes will allow for different applications, running in separate servers,
to be able to pass complex information back and forth over HTTP connections.
[ Next Page ]
| Comments: | ||
| does jscript support wddx? | faraz | 05/01/05 12:35 |
| is WDDX still being supported? | Raymond Sassine | 07/23/03 22:36 |
| RE: Does PHP support WDDX Recordsets ?? | tryin 2help | 09/30/02 17:52 |
| Help with PHP4and XML | radhakrishna | 08/23/02 11:51 |
| How to use xml function in php?? | dysow | 05/29/02 02:46 |
| RE: Deserialize packet | Bart Stutton | 04/10/02 17:25 |
| Stability / Practicality | Robert Yelvington | 03/22/02 01:16 |
| Deserialize packet | andriani97 | 01/04/02 06:36 |
| RE: Does PHP support WDDX Recordsets ?? | AlainL | 12/21/01 02:19 |
| RE: How to use DOM ? | Tobias Beuving | 12/16/01 15:44 |
| RE: Does PHP support WDDX Recordsets ?? | Jarek Zgoda | 12/04/01 06:41 |
| RE: wddx under win32 | Mike | 06/09/01 20:48 |
| RE: Does PHP support WDDX Recordsets ?? | Marlow | 06/06/01 06:49 |
| PHP XML CODES GENERATOR | Monic | 04/20/01 20:01 |
| where is you company located? | Tyson | 03/18/01 03:16 |
| wddx under win32 | Mikey Likes It | 03/12/01 23:00 |
| RE: Does PHP support WDDX Recordsets ?? | Joao Marcus | 02/17/01 12:36 |
| Help with PHP and XML | cullan crothers | 01/03/01 16:02 |
| How to use DOM ? | Tran Anh Nhan | 12/27/00 22:37 |
| RE: Does PHP support WDDX Recordsets ?? | Cory Factor | 10/26/00 19:57 |
| Does PHP support WDDX Recordsets ?? | jack-e | 06/28/00 19:24 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


