From: Clark C . E. <cc...@cl...> - 2001-12-13 03:09:20
|
| I think that the right way to handle an XML tag is | as a type. Thus the best way to represent the following: | | <p attr="val">mixed<em>text</em></p> | | Would be: | | xml: !p | attr: val | =: | - mixed | - !em text <x:p xmlns:x="some-uri">one<x:q>two</x:q></x:p> --- !!some-uri.p - one - !!.q | The way I see it, 'p' is a type; it means "this is a paragraph". It makes | perfect sense to convert it into an in-memory paragraph data type (something | which may well exist in a word processing application). It also may work well with the whole namespace debacle (proof goes here) | The fact that in most cases a YAML processor would encode the XML types | using normal maps is besides the point. They are still types. Right. Ok. I'm sold. How much flexibility do I have in the type names... can I quote them? !!"some-uri".x This would allow a full injection of XML into YAML. | We could just drop it... Your choice! Clark |