YPath into nested omaps
"Phlip" <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <014401c72e30$d38b5420$81a1b04c@Marley> |
Clark C. Evans wrote: > sauce = "--- !map > - a: > - !omap > - sku : BL394D > - quantity : 4 > - description : Basketball > - b: two" > o = YAML::parse(sauce) > p o.emit > > The above should work... since I've added in the sequence you need. New question: How close is YPath to working there? '/a/sku' should work, right? If it's close enough, I could reeeeally use a patch right now! -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! ------------------------------------------------------------------------- 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