[ https://issues.apache.org/jira/browse/XMLBEANS-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Beeker resolved XMLBEANS-535. ------------------------------------- Fix Version/s: Version 5.0.1 Assignee: Andreas Beeker Resolution: Works for Me I've added a assert for the line numbers in [r1891149|https://svn.apache.org/viewvc?view=revision&revision=1891149]. So, looks good to me - I didn't need to change the production code. > Error line number always -1 for XML validation errors > ------------------------------------------------------ > > Key: XMLBEANS-535 > URL: https://issues.apache.org/jira/browse/XMLBEANS-535 > Project: XMLBeans > Issue Type: Bug > Components: XmlObject > Affects Versions: Version 3.0.1 > Reporter: Paola Bonini > Assignee: Andreas Beeker > Priority: Major > Fix For: Version 5.0.1 > > Time Spent: 10m > Remaining Estimate: 0h > > After upgrading to xmlbeans 3.0.1 the validation of an XML document returns > always -1 as line number of detected XML errors. > I execute validation calling XmlObject.validate(XmlOptions), where XmlOptions > class has this settings: > setLoadLineNumbers() > setSavePrettyPrint() > setErrorListener() > The same code works correctly returning the line number of detected XML > validation errors using xmlbeans 2.3.0. > Is there a way to get the correct line for XML validation error salso in > 3.0.1 version? > Regards, > Paola -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org