[xml] getting failed validation output?



Hi,

I use the following interface to validate against the dtd.

/* parse the file, activating the DTD validation option */
doc = xmlCtxtReadFile(ctxt, filename, 0, (XML_PARSE_DTDATTR |
XML_PARSE_DTDVALID);

This works great, but I would like to be able to capture the output when
validation fails. Currently the useful error messages output to the
shell I ran from.  I could not find interface for giving this a buffer,
am I just missing it?

thanks,
--mc






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