The subject basically says it all.
XmlBeans' XmlError.getLine() always returns -1.
Is there any way to get at least an approximate position for an error?
I have already tried the XmlObject, but since whitespace, quotes, et al. are stripped or changed, that’s not much help.
The documentation suggests you can do this by providing XmlOptions: