Wednesday, March 28, 2007

Sandwich Markup Language

Haha! This is just great.

Here's how I like mine made:


<sandwich>
<bagel_top type="wheat" toasted="true"/>
<mayo extra="true"/>
<mustard type="dijon" extra="false"/&g;
<cheese_slice type="provlone"/>
<cheese_slice type="provlone"/>
<meat_slice type="roastbeef"/>
<meat_slice type="roastbeef"/>
<meat_slice type="roastbeef"/>
<bagel_bottom type="wheat" toasted="true"/>
</sandwich>


How do you like yours made?

1 comment:

Si said...

goodness me - what's with the dodgy indentation? Why have a bagel_top and _bottom when they're both essentially the same tag? Stick it it as <bagel etc=etc>Other crap</bagel>, and it works just fine. In other news, I don't have a favourite sandwich, but would rather bitch about XML pedantisms.