Maprunner / rg2

Updated user interface for Routegadget
MIT License
36 stars 20 forks source link

error processing xml file #398

Closed okvittem closed 7 years ago

okvittem commented 7 years ago

Hi, RG2 fails loading a result xml file. The file appears to be accepted by RG1, but not with RG2. File is at http://www.ntnu.no/ntnu-bil/grupper/o/resultater/run201713.xml It validates. Error messages attached. screenshot from 2017-09-15 11-29-33

Maprunner commented 7 years ago

IOF V2.0.3 DTD defines Person as:

<!ELEMENT Person (PersonName, PersonId, BirthDate?, Address*, Tele*, Nationality?, ModifyDate?)>

I read this as meaning a Person must have a PersonName and a PersonId. Your results file doesn't have a PersonId defined, which is why you are getting this error.

But it's a simple enough change to check that PersonId does exist, so I'll put it in the next release.

Although the best solution may be to move to IOF XML V3 instead.