{"action":"created","issue":{"url":"https://api.github.com/repos/polotek/libxmljs/issues/327","labels_url":"https://api.github.com/repos/polotek/libxmljs/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/polotek/libxmljs/issues/327/comments","events_url":"https://api.github.com/repos/polotek/libxmljs/issues/327/events","html_url":"https://github.com/polotek/libxmljs/issues/327","id":101975508,"number":327,"title":"[Question] Getting error information?","user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T19:11:35Z","updated_at":"2015-08-23T03:43:52Z","closed_at":null,"body":"Is there a way to extract more meaningful information from XSD validation? Perhaps the schema issue or the node that occured using XPath?"},"comment":{"url":"https://api.github.com/repos/polotek/libxmljs/issues/comments/133778351","html_url":"https://github.com/polotek/libxmljs/issues/327#issuecomment-133778351","issue_url":"https://api.github.com/repos/polotek/libxmljs/issues/327","id":133778351,"user":{"login":"scaryguy","id":2168598,"avatar_url":"https://avatars.githubusercontent.com/u/2168598?v=3","gravatar_id":"","url":"https://api.github.com/users/scaryguy","html_url":"https://github.com/scaryguy","followers_url":"https://api.github.com/users/scaryguy/followers","following_url":"https://api.github.com/users/scaryguy/following{/other_user}","gists_url":"https://api.github.com/users/scaryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/scaryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scaryguy/subscriptions","organizations_url":"https://api.github.com/users/scaryguy/orgs","repos_url":"https://api.github.com/users/scaryguy/repos","events_url":"https://api.github.com/users/scaryguy/events{/privacy}","received_events_url":"https://api.github.com/users/scaryguy/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T03:43:52Z","updated_at":"2015-08-23T03:43:52Z","body":"@blakeembrey , looks like you didn't see this at the wiki:\r\n\r\n```js\r\nassert.equal(xmlDocInvalid.validationErrors.length, 2);\r\nconsole.log(xmlDocInvalid.validationErrors);\r\n```\r\nit prints something like this:\r\n\r\n```js\r\n[ { [Error: Element 'comment': Character content other than whitespace is not allowed because the content type is 'element-only'.\r\n  ] domain: 17, code: 1843, level: 2, column: 0, line: 2 },\r\n  { [Error: Element 'comment': Missing child element(s). Expected is one of ( author, content ).\r\n  ] domain: 17, code: 1871, level: 2, column: 0, line: 2 } ]\r\n```"}}