You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Bernard (Jira)" <ji...@apache.org> on 2020/07/06 07:19:00 UTC

[jira] [Updated] (NETBEANS-4543) XML validation breaks with multiple schema files

     [ https://issues.apache.org/jira/browse/NETBEANS-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernard updated NETBEANS-4543:
------------------------------
    Attachment: MultiSchemaValidation.zip

> XML validation breaks with multiple schema files
> ------------------------------------------------
>
>                 Key: NETBEANS-4543
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4543
>             Project: NetBeans
>          Issue Type: Bug
>          Components: xml - Schema
>    Affects Versions: 11.3
>            Reporter: Bernard
>            Priority: Critical
>         Attachments: MultiSchemaValidation.zip
>
>
> If an XML file loaded in the editor is validated against multiple schema files, then validation breaks under an observed condition.
> The condition is that definitions in the schema files reference each other. In this case, it appears to be important that the validator builds the schema from the multiple files in such a way that the order in which the files are loaded matching the hierarchy. Dependent files need to be loaded after the files that they depended on.
> I am coming to this conclusion after building a test case. This this test case builds the schema in the correct way, using an iterative brute force approach.
> If the schema files are loaded in the incorrect order, then the schema cannot be built, and validation is not even started.
> I am donating the code in the test case to Apache Netbeans with the aim that the validation using the editor is fixed, using the insight gained from the test case.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists