public
Description: YaYAML: Yet Another YAML .Net parser
Home | Edit | New

Home

Welcome to the yayaml wiki!

Example file structures

Data

- Mark McGwire
- Sammy Sosa
- Ken Griffey

Object model

YamlStream
  YamlDocument
    Elements:
	  YamlText(Mark McGwire)
	  YamlText(Sammy Sosa)
	  YamlText(Ken Griffey)

Data

hr:  65    # Home runs
avg: 0.278 # Batting average
rbi: 147   # Runs Batted In

Object model

YamlStream
  YamlDocument
    Elements:
	  YamlHash
	    { "hr" : YamlInteger(65) }
		{ "avg" : YamlDouble(0.278) }
		{ "rbi" : YamlInteger(147) }

Data

american:
  - Boston Red Sox
  - Detroit Tigers
  - New York Yankees
national:
  - New York Mets
  - Chicago Cubs
  - Atlanta Braves

Object model

YamlStream
  YamlDocument
    Elements:
	  YamlHash
	    { "american" : YamlElement[]:
		  YamlText(Boston Red Sox)
		  YamlText(Detroit Tigers)
		  YamlText(New York Yankees) }
		{ "national" : YamlElement[]:
		  YamlText(New York Mets)
		  YamlText(Chicago Cubs)
		  YamlText(Atlanta Braves) }

Data

-
  name: Mark McGwire
  hr:   65
  avg:  0.278
-
  name: Sammy Sosa
  hr:   63
  avg:  0.288

Object model

YamlStream
  YamlDocument
    Elements:
	  YamlHash
	    { "name" : YamlText(Mark McGwire) }
		{ "hr" : YamlInteger(65) }
		{ "avg" : YamlDouble(0.278) }
      YamlHash
	    { "name" : YamlText(Sammy Sosa) }
		{ "hr" : YamlInteger(63) }
		{ "avg" : YamlDouble(0.288) }
Last edited by jagregory, Tue Oct 28 07:57:17 -0700 2008
Home | Edit | New
Versions: