[xml] schema validation error



I am trying to validate some xml with a schema i have. it works great when the xml is valid, however as soon as the xml is malformed in one way or another it kills my app.

basically i want to handle the failed validation and keep the app running, not have it die.

ive been looking at the api for libxml and have found the function xmlSchemaSetParserErrors and other similar ones, but im unsure if this is the way to go about it.

does anyone have any experience/ideas?

Thanks,

Andrew


Find great deals on eBay Net yourself a bargain


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