|
XML and PHP. Part 1: Using The WDDX Functions
As A First Approximation Enter WDDX
We will begin by making use of the
WDDX functions that PHP offers for free, no
need to create our own XML parser or even know the WDDX DTD, we can just use
them and be happy.
The WDDX functions do
not need any external library, and implement methods to generate, serialize
and deserialize information into WDDX packets.
WDDX, the Web Distributed Data Exchange, is an XML application that:
"... is a mechanism for exchanging complex data structures between application environments. It has been designed with web applications in mind. WDDX consists of a language and platform neutral representation of instantiated data based on XML 1.0 (which is defined using this DTD) and a set of serializer/ deserializer components for every environment that uses WDDX. The process of creating an XML representation of application data is called serialization. The process of instantiating application data from a WDDX XML representation is called deserialization. "
(Quoted from: "WDDX Document Type Definition (DTD)",
http://www.wddx.org/DTD.htm)
WDDX has a simple DTD, and can be used to serialize variables of different
types. The DTD recognizes variables of type string, numeric, and boolean, as
well as arrays (when the indexes are numeric) and structures (when the indexes
are strings, also called associative arrays). Complex data structures can
also be represented (e.g. arrays of arrays).
[ 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. | ||


