are there plans to include support for recursive structures or pointers in
upcoming WDDX specification revisions? my suggestion for doing so would be
the inclusion of a simple new element in the DTD: something along the lines
of 'pointer' or 'structPointer'.
here's the modification to the WDDX DTD:
<!ELEMENT var (boolean | number | dateTime | string | array | struct |
recordset | pointer)>
<!ELEMENT pointer EMPTY>
<!ATTLIST pointer
value CDATA #REQUIRED>
and here's an example packet with some structural recursion:
<?xml version='1.0'?>
<!DOCTYPE wddxPacket SYSTEM 'wddx_0090.dtd'>
<wddxPacket version='0.9'>
<header/>
<data>
<struct>
<var name='foo'>
<struct>
<var name='bar'>
<pointer value='data.foo'>
</var>
</struct>
</var>
</struct>
</data>
</wddxPacket>
data would of course be the root node. or maybe a 'ThisPacket.data'
substructure. would it need to be more complicated than that? in addition
to providing for recursion, a pointer type would also cut down the size of
packets that use the same struct references in multiple nodes. and it would
provide greater support for interoperability with object-oriented databases.
thanks for your attention. please don't make me start a petition...
;)
brendan avery 2.0 - [EMAIL PROTECTED]
310.779.2211 - santa monica, california
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists