[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Enlightenment via avoiding the T-word
- From: Don Park <donpark@docuverse.com>
- To: xml-dev@lists.xml.org
- Date: Tue, 28 Aug 2001 04:04:31 -0700
The example below can be handled easily using Atoms and Molecules design
pattern. Looking at the example from this perspective, I see:
Atoms:
name, address, mode, price, quantity
Molecules:
customer, delivery, product
String Molecules:
lines, line
Super Molecule
purchase
What we need is a XML processing framework that supports molecules and atoms
design pattern. What we don't need is more complications and fancy
if-but-when-must at what I consider to be lexical slum level. *argh* I am
starting to sound like Len.
Best,
Don Park
>
> <purchase xmlns="http://foobar/purchase">
> <customer>
> <name>Nicolas</name>
> <address>Paris, France</address>
> </customer>
> <delivery>
> <mode>UPS</mode>
> <address>Somewhere else</address>
> </delivery>
> <lines>
> <line>
> <!-- duh, will this wake up Echelon :) ? -->
> <product>
> <name>ACME Explosives</name>
> <price currency="dollar">2000</price>
> </product>
> <quantity>200</quantity>
> </line>
> </lines>
> </purchase>