title: Parse YAML Files in C++
body: <p>I want a simple tutorial to show me how to load a yaml file and parse the data. Expat style would be great but any solution that actually shows me the data in some form would be useful.</p>
  <p>So far I ran multiple tests in the <code>yaml-0.1.1</code> source code for C and I either get an error, no output whatsoever, or in the <code>run-emitter.c</code> case. It reads in the yaml file and prints it to <code>STDOUT</code>, it does not produce the text via <code>libyaml</code> functions/structs. In the cases with an error I don't know if it was because the file was bad or my build is incorrect (I didn't modify anything...) The file was copied from yaml.org</p>
  <p>Can anyone point me to a tutorial? (I googled for at least 30 minutes reading anything that looked relevant) or a name of a lib that has a good tutorial or example. Maybe you can tell me which <code>libyaml</code> test loads in files and does something with it or why I got errors. This document does not explain how to <em>use</em> the file--only how to load it:</p>
  <p><a href="http://pyyaml.org/wiki/LibYAML#Documentation" rel="nofollow noreferrer">http://pyyaml.org/wiki/LibYAML#Documentation</a></p>