You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "Andreas Beeker (Jira)" <ji...@apache.org> on 2021/06/29 22:05:00 UTC

[jira] [Resolved] (XMLBEANS-535) Error line number always -1 for XML validation errors

     [ 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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org