Github user stanlyDoge commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1688#discussion_r156024601
--- 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 --
Hmm, after another investigation I am not sure if this is possible with
current XSD schema. It does not contain 'configuration' element, so it cannot
be checked this way. There are two solutions - modify XSD schema to contain
missing element or use my solution, where I am getting first child of
'configuration', which is 'core'.
---