[Home] [By Thread] [By Date] [Recent Entries]

  • From: Don Park <donpark@d...>
  • To: xml-dev@l...
  • 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>


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member