{"action":"opened","issue":{"url":"https://api.github.com/repos/JATS4R/validator/issues/5","labels_url":"https://api.github.com/repos/JATS4R/validator/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/JATS4R/validator/issues/5/comments","events_url":"https://api.github.com/repos/JATS4R/validator/issues/5/events","html_url":"https://github.com/JATS4R/validator/issues/5","id":95946155,"number":5,"title":"Better results presentation for the validator","user":{"login":"Klortho","id":77226,"avatar_url":"https://avatars.githubusercontent.com/u/77226?v=3","gravatar_id":"","url":"https://api.github.com/users/Klortho","html_url":"https://github.com/Klortho","followers_url":"https://api.github.com/users/Klortho/followers","following_url":"https://api.github.com/users/Klortho/following{/other_user}","gists_url":"https://api.github.com/users/Klortho/gists{/gist_id}","starred_url":"https://api.github.com/users/Klortho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Klortho/subscriptions","organizations_url":"https://api.github.com/users/Klortho/orgs","repos_url":"https://api.github.com/users/Klortho/repos","events_url":"https://api.github.com/users/Klortho/events{/privacy}","received_events_url":"https://api.github.com/users/Klortho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-19T20:26:20Z","updated_at":"2015-07-19T20:26:20Z","closed_at":null,"body":"It would be nice if the messages that get reported could be interleaved with the actual source document. Off the top of my head, the one way I can think to do this would be to re-serialize the document on the fly, and keep track of where we are in the dom tree. When the xpath expression in the error message matches the node we are on, insert the message there.\r\n\r\nThe (big) drawback of this approach is that the serialized version of the document won't match exactly what they uploaded.  There is no way for us to know, post-parsing, small lexical things like whitespace and, for example, whether single- or double-quotes were used for attribute values.  Users might be confused by this."}}