Extract schema from YAML

Gabriel de Perthuis <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
I'd like to build some kind of schema describing the structure of big
YAML documents. For example, from the invoice example [1]:
/
/invoice
/date
/bill-to
/bill-to/given
/bill-to/family
/bill-to/address
/bill-to/address/lines
/bill-to/address/city
/bill-to/address/state
/bill-to/address/postal
/ship-to
/product
/product/sku
/product/quantity
/product/description
/product/price
/tax
/total
/comments

Can someone show me how to do that?
Alternatively, I can do that with XML; so if there is no other way, I'll
try to convert into XML and use the « xmlstarlet elements » command.

Thanks,

[1] http://www.yaml.org/start.html

-- 
Gabriel de Perthuis


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.