Re: XML shopping cart?

2003-08-25 Thread Massimo, Tiziana e Federica
> You are right.  I don't see any major advantage over using a structure.
>
> Call it a learning experience.  Nothing more.
>
I understand you are looking for a CF/XML learning experience, but I would
suggest to look elsewhere :-))


Massimo Foti
Certified Dreamweaver MX Developer
Certified Advanced ColdFusion MX Developer
http://www.massimocorner.com/



~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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


RE: XML shopping cart?

2003-08-25 Thread Chad Gray
The reason I started going in this direction is I have dynamic options
for each product.  

Each product may have it's own set of options color/size/accessories.
Plus each option will possibly modify the price and shipping.

The data was getting so complex I was going to start storing the
shopping cart information in a database rather then session variables.

Then I decided this would be a perfect time to learn how CF works with
XML.

You are right.  I don't see any major advantage over using a structure.

Call it a learning experience.  Nothing more.



> -Original Message-
> From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 1:36 PM
> To: CF-Talk
> Subject: Re: XML shopping cart?
> 
> > I thought I would play with the idea of converting my current
shopping
> > basket code so it would store all of the items in an XML structure
that
> > is stored in a session variable.
> 
> Are you sure it makes sense? What's the benefits?
> 


~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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


Re: XML shopping cart?

2003-08-25 Thread Massimo, Tiziana e Federica
> I thought I would play with the idea of converting my current shopping
> basket code so it would store all of the items in an XML structure that
> is stored in a session variable.

Are you sure it makes sense? What's the benefits?


> My question is how do I delete XML nodes from the structure?  Like when
> someone wants to remove an item from their shopping basket.
>
> Also how do you append new nodes to the XML structure?  I am assuming
> you use XmlElemNew() but I have not tried it yet.
>
> Also how do you edit the XML structure?  Like when a person updates the
> quantity of a product.

Quile I think that the XML in CF is both simple and powerful (in a peculiar
fusionesque way); I personally think that if you need to edit the XML
structure using the DOM is much easier.
But maybe it's just me... I know a bunch of developers that really can't
stand using DOM :-)))


Massimo Foti
Certified Dreamweaver MX Developer
Certified Advanced ColdFusion MX Developer
http://www.massimocorner.com/



~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


RE: XML shopping cart?

2003-08-25 Thread Chad Gray
Great article!  Thanks!

> -Original Message-
> From: Brad Roberts [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 1:32 PM
> To: CF-Talk
> Subject: RE: XML shopping cart?
> 
> Here's a good article:
> http://www.macromedia.com/devnet/mx/coldfusion/articles/xmlxslt.pdf
> 
> -Brad
> 
> -Original Message-
> From: Chad Gray [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 12:30 PM
> To: CF-Talk
> Subject: XML shopping cart?
> 
> 
> I have just started to get my feet wet with XML and CF.
> 
> I thought I would play with the idea of converting my current shopping
> basket code so it would store all of the items in an XML structure
that
> is stored in a session variable.
> 
> I have figured out how to create the XML structure and search the
> structure for the items with XmlSearch().
> 
> My question is how do I delete XML nodes from the structure?  Like
when
> someone wants to remove an item from their shopping basket.
> 
> Also how do you append new nodes to the XML structure?  I am assuming
> you use XmlElemNew() but I have not tried it yet.
> 
> Also how do you edit the XML structure?  Like when a person updates
the
> quantity of a product.
> 
> Thanks,
> Chad
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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


RE: XML shopping cart?

2003-08-25 Thread Brad Roberts
Here's a good article:
http://www.macromedia.com/devnet/mx/coldfusion/articles/xmlxslt.pdf

-Brad

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 12:30 PM
To: CF-Talk
Subject: XML shopping cart?


I have just started to get my feet wet with XML and CF.

I thought I would play with the idea of converting my current shopping
basket code so it would store all of the items in an XML structure that
is stored in a session variable.

I have figured out how to create the XML structure and search the
structure for the items with XmlSearch().

My question is how do I delete XML nodes from the structure?  Like when
someone wants to remove an item from their shopping basket.

Also how do you append new nodes to the XML structure?  I am assuming
you use XmlElemNew() but I have not tried it yet.

Also how do you edit the XML structure?  Like when a person updates the
quantity of a product.

Thanks,
Chad


~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


RE: XML shopping cart?

2003-08-25 Thread Bryan Love
You could cheat and use WDDX - it converts structures to XML and back
again...

+---+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+---+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis

"Let's Roll"
- Todd Beamer, Flight 93



-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 9:30 AM
To: CF-Talk
Subject: XML shopping cart?


I have just started to get my feet wet with XML and CF.

I thought I would play with the idea of converting my current shopping
basket code so it would store all of the items in an XML structure that
is stored in a session variable.

I have figured out how to create the XML structure and search the
structure for the items with XmlSearch().  

My question is how do I delete XML nodes from the structure?  Like when
someone wants to remove an item from their shopping basket.

Also how do you append new nodes to the XML structure?  I am assuming
you use XmlElemNew() but I have not tried it yet.

Also how do you edit the XML structure?  Like when a person updates the
quantity of a product.

Thanks,
Chad


~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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