Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 24243 invoked from network); 11 Feb 2011 20:13:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 20:13:00 -0000 Received: (qmail 45849 invoked by uid 500); 11 Feb 2011 20:12:58 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 45760 invoked by uid 500); 11 Feb 2011 20:12:58 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 45752 invoked by uid 99); 11 Feb 2011 20:12:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 20:12:57 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.187] (HELO moutng.kundenserver.de) (212.227.126.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 20:12:50 +0000 Received: from [192.168.178.20] (trir-5d805943.pool.mediaWays.net [93.128.89.67]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MH5MY-1PsxQX3Zuk-00DmKy; Fri, 11 Feb 2011 21:12:28 +0100 Message-ID: <4D559829.5010604@oliver-heger.de> Date: Fri, 11 Feb 2011 21:12:25 +0100 From: Oliver Heger User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Commons Users List Subject: Re: [configuration] XInclude support in xml files References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:vFRutbHWUOqXpf1F4/pkYj3gZiVD+4z/yinWCJSYIO7 DA+5Jv01tlIPFIFgS78dCP4nxttDOpcZ+kIEui+pFyCccV5c9x VTlPnRi8/p9shbfBULe/TmyJJDoHQOdLQ65m+eRb6TB97NY4Mr TXz+xUxX+pmLX2rZaGydN2Zuslc92fjJRI/Hg1rQYeWzgFCD7Y uOugFfXbQLuD/H88a31Qg== Am 10.02.2011 19:49, schrieb Jon Smith: > Hi, > > I have searched through the archive as well as documentation but couldn't > find if Commons Configuration's XML format supports XInclude. > > I know Digester has added this support but XMLConfiguration doesn't seem to > be using it or, at least, does not allow XInclude awareness to be set to > true. > > I also tried giving my own XInclude and Namespace aware DocumentBuilder to > DefaultConfigurationBuilder but didn't seem to get XInclude to work. > > Following is what I am trying to do: > > configuration.xml snippet: > > > > > > file1.xml snippet: > > > > > > > > Any pointers? > > The intent is to not to let users touch configuration.xml but include more > files to the already included (e.g. file1.xml) file. > > thanks > > J > It is correct that there is no support for XInclude in XMLConfiguration - unfortunately. (Patches would be welcome ;-) If Digester supports XInclude, then it would probably be a good idea to align the code. XMLConfiguration does not use Digester for reading XML files, it does its own parsing. Can you elaborate a bit why it did not work to setup your own DocumentBuilder? Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org