Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XmlReader.getPath() should include the element position in a list of elements #40

Open
sockeqwe opened this issue Oct 5, 2016 · 0 comments
Milestone

Comments

@sockeqwe
Copy link
Contributor

sockeqwe commented Oct 5, 2016

When generating error messages XmlReader.getPath() doesn't display the position of the element that has caused the error is part of a list with sibling elements.

Example:

<foo>
   <bar attr="123" />
   <bar attr="CausesErrorBecauseNotInteger" />
</foo>

then the error message should print /foo/bar[1] (1 is the index/position of the element in the list, starting at 0) as path and not just /foo/bar as it is right now. Makes debugging easier, because we know which element (in the list of elements) has caused this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant