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

improve fromXML parsing error reporting #27

Closed
dbolene opened this Issue Jan 27, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@dbolene

dbolene commented Jan 27, 2011

It would be awesome if you could put in the exception what line of the xml file was being parsed.

d...

@dbolene

This comment has been minimized.

Show comment
Hide comment
@dbolene

dbolene Jan 28, 2011

Thought about it more. I'm sure keeping track of the line number is probably hard (perhaps impossible). How about putting in the exception what the xpath is to the error? Or at least the element or attribute it is choking on?

Thanks as always,

david...

dbolene commented Jan 28, 2011

Thought about it more. I'm sure keeping track of the line number is probably hard (perhaps impossible). How about putting in the exception what the xpath is to the error? Or at least the element or attribute it is choking on?

Thanks as always,

david...

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Jan 29, 2011

Owner

Yea, internally the physical layout of the input is thrown out, and is treated as "stuff that can turn into schema". Since the parsing is done by combinator parser, I'm not sure how much I can get out of it, but I should be able to get something out.

Owner

eed3si9n commented Jan 29, 2011

Yea, internally the physical layout of the input is thrown out, and is treated as "stuff that can turn into schema". Since the parsing is done by combinator parser, I'm not sure how much I can get out of it, but I should be able to get something out.

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Feb 3, 2011

Owner

Took me a while but I was able to construct the following runtime error:

scalaxb.ParserFailure: parser error "`{http://www.w3.org/1999/xhtml}
base' expected but title found" while parsing /{http://www.w3.org/1999/
xhtml}html/{http://www.w3.org/1999/xhtml}head/title

2c0d62e

Owner

eed3si9n commented Feb 3, 2011

Took me a while but I was able to construct the following runtime error:

scalaxb.ParserFailure: parser error "`{http://www.w3.org/1999/xhtml}
base' expected but title found" while parsing /{http://www.w3.org/1999/
xhtml}html/{http://www.w3.org/1999/xhtml}head/title

2c0d62e

This issue was closed.

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