Is it possible to validate an xml file against a Relax NG schema in ANSI C? I have come across this library called libxml2 but all help I could get from it is with respect to how to parse an xml file. Please help.
And if it can be done, what are the steps? Utterly ignorant about this w.r.t. the C environment.
Here is a minimalistic example (you should of course add your own error checking):
Compile this with gcc -I/usr/include/libxml2 rngval.c -o rngval -lxml2
You can check the relevant documentation at http://xmlsoft.org/html/libxml-relaxng.html