uber / cyborg

Display Android Vectordrawables on iOS.
Apache License 2.0
300 stars 19 forks source link

Detect xml errors #40

Closed benpious closed 5 years ago

benpious commented 5 years ago

Previously the parser would not detect invalid XML files, and would generally give either a useless error or could sometimes even "successfully" parse an invalid file. This hooks up the libxml2 error handler and ends parsing if it detects an error.

It also gives line and column numbers in the overall XML file for non XML errors.