Barry Beattie wrote:
thanx for the memory jog, guys.

sadly, unlike a UDF, I can't tear the cfwddx tag apart to turn a struct
from this


ADDR1 = "aaa"
ADDR1_READONLY = "true"
ADDR2 = "bbb"
ADDR2_READONLY = "true"
ADDR3 = "ccc"
ADDR3_READONLY = "false"

to this (turning one dimentional data to 2D)

<ADDR1 readonly="true">aaa</ADDR1>
<ADDR2 readonly="true">bbb</ADDR2>
<ADDR3 readonly="false">ccc</ADDR3>

although, suppose I could rejig the cfwddx output, I suppose...

there really isn't a CF2XML function anywhere?

But Barry, which mapping would you pick - there are many ways you could do it e.g. underscores map to attributes, key names map to tag names, key values map to text nodes is the one you've done (not a bad one, how would arrays work?) but there could be many others. Nice thing about wddx is that it's completely unambiguous, serialisation/deserialisation is built into CF and libraries for same in all major programming languages are up on openwddx.org.


This sort of leads in to the big hype exploder about XML - the important thing is not that its in XML, but what schema/language etc it's in. You wouldn't see magazine issues devoted to the wonderful business opportunities presented by the us-ascii character set, but that's how it seems sometimes with XML :-)

Robin
http://www.rocketboots.com.au

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to