Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

acanby

macrumors newbie
Original poster
Aug 9, 2008
4
0
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.