Hi Phil,
YAML-processors are mostly more comparable to DOM-parser than to SAX
or Stax.
You just tell SnakeYaml to load your documents, while more than on
document can be in one physical file.
You could do something like this:
Yaml yaml = new Yaml();
configs = yaml.loadAll(configContents);
while configContentscould be a yaml string, an InputStream or a Reader
configs are, so far I remember correctly, the Iterable of the
particular Yaml-Documents. If you have more than one you you could use
a loop.
You have 2 different ways how your configuration file shows up. Either
as standard Java-Objects or you use your own Objects that work very
much like beans.
good luck and have fun
:-)