Re: [xml] Getting error messages, how?



Theodore H. Smith wrote:
I want to use libxml2 to report what is wrong with some XML. Basically, to generate an informative error report.

For example something like:

"Badly formed attribute on like 56, <p s=='s'>"

How do I get libxml2 to do this?


Use xmllint, which comes with libxml2. You might have to fool around with path specifications if you have DTDs, included files, etc. Check out the online help.

- Rush



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]