Almost made things to work... just a little more effort and the project
will compile successfully!
Managed to run all this... still haven't dealt with segfaults, though.
Project finally works the way it should!!! Now the only thing left to do
is to implement XPath queries...