Linux Systems Administrator
Jupitermedia
US-AZ-Tucson

Justtechjobs.com Post A Job | Post A Resume

XML and PHP. Part 1: Using The WDDX Functions
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?faraz05/01/05 12:35
is WDDX still being supported?Raymond Sassine07/23/03 22:36
RE: Does PHP support WDDX Recordsets ??tryin 2help09/30/02 17:52
Help with PHP4and XMLradhakrishna08/23/02 11:51
How to use xml function in php??dysow05/29/02 02:46
RE: Deserialize packetBart Stutton04/10/02 17:25
Stability / PracticalityRobert Yelvington03/22/02 01:16
Deserialize packetandriani9701/04/02 06:36
RE: Does PHP support WDDX Recordsets ??AlainL12/21/01 02:19
RE: How to use DOM ?Tobias Beuving12/16/01 15:44
RE: Does PHP support WDDX Recordsets ??Jarek Zgoda12/04/01 06:41
RE: wddx under win32Mike06/09/01 20:48
RE: Does PHP support WDDX Recordsets ??Marlow06/06/01 06:49
PHP XML CODES GENERATORMonic04/20/01 20:01
where is you company located?Tyson03/18/01 03:16
wddx under win32Mikey Likes It03/12/01 23:00
RE: Does PHP support WDDX Recordsets ??Joao Marcus02/17/01 12:36
Help with PHP and XMLcullan crothers01/03/01 16:02
How to use DOM ?Tran Anh Nhan12/27/00 22:37
RE: Does PHP support WDDX Recordsets ??Cory Factor10/26/00 19:57
Does PHP support WDDX Recordsets ??jack-e06/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.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.