How can I detect an error at the beginning of a rule? For example, consider the Mini XML Example included in documents. If I give the parser something like this:
<element>this is an error<element>
Then I get:
Error! Waiting here: "
Error! Waiting here: ""
Analysis failed.
This is great, but then think about feeding it:
element>this is an error</element>
And I get very general and not very useful:
Analysis failed.
How can I change the rule for error reporting in an informative way?
source share