PRImA-Research-Lab / prima-page-viewer

Java based viewer for PAGE XML files (layout + text content). Also supports ALTO XML, FineReader XML, and HOCR.
Apache License 2.0
34 stars 9 forks source link

No GUI response when XML loading fails #2

Closed jakesebright closed 7 years ago

jakesebright commented 7 years ago

I downloaded PAGE Viewer in order to view and validate ALTO OCR on top of corresponding images. When I launched the program and opened my XML file, the application hung with no response. I downloaded the source code to figure out why, and it turns out my ALTO file was missing a tag! I wished I had known this!

In response, I added to the application a dialog box notifying a user when their XML is invalid. I thought it may be nice to add this to the master so others are not left in the same confusion.

screen shot 2017-08-31 at 9 11 17 am
chris1010010 commented 7 years ago

Very useful, thanks.