I cant believe i spent two hours and not found a solution. I want a simple tutorial to show me 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.
So far i ran multiple test in yaml-0.1.1 source for C and i either get an error, no output whatso ever or in run-emitter.c case. It reads in the yaml file and prints it to STDOUT, it does not produce the text via libyaml functions/structs (WTF!). In the cases with an error i dont know if it was bc the file was bad or my build is incorrect (i didnt modify anything...) The file was copied from yaml.org
Can anyone point me to a tutorial? (i googled for at least 30mins reading anything that looked relevent) or a name of a lib that has a good tutorial or example. Maybe you can tell me which libyaml test loads in files and does something with it or why i gotten errors. This document does not explain how to use the file, only how to load it -_-. Please help http://pyyaml.org/wiki/LibYAML#Documentation
I need a C/C++ solution.