I think you're missing the point of storing the name in an attribute
rather the tag name itself. First, the tag is not pulling double duty by
describing both the type of data and the data's identity. Second, and
more important on a practical level, by placing the variable name in an
attribute, you avoid naming conflicts with XML itself.

For instance, I don't believe XML allows you to include a number at the
beginning of your tag or spaces within it. However, most languages will
allow this in some form or another. Specifically, ColdFusion will allow
you to name a struct key just about anything. By placing the name in an
attribute, you avoid such conflicts.

So, though many people working with XML take the easy way out, it is not
necessarily the better way, and it is certainly not the standard. Unless
you have a real reason to switch, you're probably safer with WDDX or
mimicking the structure of WDDX as much as possible as quite a bit of
time and energy went into designing it.

Benjamin S. Rogers
http://www.c4.net/
v.508.240.0051
f.508.240.0057

-----Original Message-----
From: Brian Thornton [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 24, 2002 3:45 PM
To: CF-Talk
Subject: Re: WDDX to XML


I want to return to data in true XML not WDDX.
For instance I do not want:
        <wddxPacket version='1.0'><header/><data><struct>
I would like standard XML naming

Instead of:
<var name='AIRPORTNAME'>
I would like
<AIRPORTNAME>

----- Original Message -----
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 12:30 PM
Subject: RE: WDDX to XML


> wddx is xml
>
> ..tony
>
> Tony Weeg
> Senior Web Developer
> Information System Design
> Navtrak, Inc.
> Fleet Management Solutions
> www.navtrak.net
> 410.548.2337
>
>
> -----Original Message-----
> From: Brian Thornton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 3:31 PM
> To: CF-Talk
> Subject: WDDX to XML
>
>
> What is the best way to move data from WDDX to XML?
>
>
> 

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to