With a full lexer, tokeniser and parser, poxml is robust enough to handle any syntax errors - and provides helpful feedback on the exact nature and location of the error.
This project has also been ported to C.
You can download this program for free (1.5MB zip, windows)
The download contains source code and a ready-to-run example.
(Click to enlarge)
You can also contact me directly - I make an effort to reply to every e-mail.