ikorin24 / U8XmlParser

Extremely fast UTF-8 xml parser library
MIT License
95 stars 13 forks source link

FormatException should contain detailed error message. #22

Closed SebastianStehle closed 2 years ago

SebastianStehle commented 2 years ago

Your example was just throwing FormatException

There is a question mark missing and you just get a FormatException without any explanation. It is hard to find issues like that.

<?xml version="1.0" encoding="UTF-8"> 
<SomeData>
    <Data aa="20">bbb</Data>
    <Data aa="30">ccc</Data>
</SomeData>
ikorin24 commented 2 years ago

Is the output of row and column numbers intended to be displayed as error messages? ( cf. your another issue ( #18 ) )

SebastianStehle commented 2 years ago

This would make it even better. But if this document would be a few 100 lines long and I just get a format exception it becomes really hard to find issues.