Listing 2. Документ (Listing 1), форматированный как R-выражения. Обратное отображение R-выражений в XML так же просто и эффективно.
((Recipe)
((Name) 'Lime Jello Marshmallow Cottage Cheese Surprise')
((Description) 'My grandma\'s favorite (may she rest in peace).')
((Ingredients)
((Ingredient)
((Qty Unit('box')) 1)
((Item) 'lime gelatin')
)
((Ingredient)
((Qty Unit('g')) 500)
((Item) 'multicolored tiny marshmallows')
)
((Ingredient)
((Qty Unit('ml')) 500)
((Item) 'Cottage cheese')
)
((Ingredient)
((Qty Unit('dash'))
((Item Optional('1')) 'Tabasco sauce')
)
)
)