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

    https://github.com/apache/activemq-artemis/pull/1688#discussion_r155675210
  
    --- Diff: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java
 ---
    @@ -253,9 +253,12 @@ public Configuration parseMainConfig(final InputStream 
input) throws Exception {
           String xml = XMLUtil.readerToString(reader);
           xml = XMLUtil.replaceSystemProps(xml);
           Element e = XMLUtil.stringToElement(xml);
    -
    +      NodeList children = e.getElementsByTagName("core");
    --- End diff --
    
    e.g.
          SchemaFactory schemaFactory = 
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
          Schema schema = schemaFactory.newSchema(new 
File("schema/artemis-configuration.xsd"));
          Validator validator = schema.newValidator();
          validator.validate(new DOMSource(e));


---

Reply via email to