Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 87088200D51 for ; Fri, 8 Dec 2017 01:02:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 85ACD160C1E; Fri, 8 Dec 2017 00:02:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C1E99160C0C for ; Fri, 8 Dec 2017 01:02:26 +0100 (CET) Received: (qmail 87392 invoked by uid 500); 8 Dec 2017 00:02:25 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 87381 invoked by uid 99); 8 Dec 2017 00:02:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2017 00:02:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 803F5DFA55; Fri, 8 Dec 2017 00:02:25 +0000 (UTC) From: michaelandrepearce To: dev@activemq.apache.org Reply-To: dev@activemq.apache.org References: In-Reply-To: Subject: [GitHub] activemq-artemis pull request #1688: ARTEMIS-1537 broker was less strict whi... Content-Type: text/plain Message-Id: <20171208000225.803F5DFA55@git1-us-west.apache.org> Date: Fri, 8 Dec 2017 00:02:25 +0000 (UTC) archived-at: Fri, 08 Dec 2017 00:02:27 -0000 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)); ---