Github user clebertsuconic commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/2040#discussion_r184177998
  
    --- Diff: 
artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
 ---
    @@ -323,7 +323,7 @@ public static double parseDouble(final Node elem) {
        public static void validate(final Node node, final String schemaFile) 
throws Exception {
           SchemaFactory factory = 
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
     
    -      Schema schema = factory.newSchema(findResource(schemaFile));
    +      Schema schema = factory.newSchema(new 
URL(findResource(schemaFile).toURI().toASCIIString()));
    --- End diff --
    
    Nice!!! And the test is satisfactory! 


---

Reply via email to