You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lau Eng Huat <to...@gmail.com> on 2011/12/30 12:33:44 UTC

Merging multiple XML File in Tomcat

Hi guys,

Is it possible to merge multiple xml file into a single xml file in tomcat.
The web.xml file & server.xml is getting large and I want it to be more
organized. Is this possible ?

Re: Merging multiple XML File in Tomcat

Posted by Pid <pi...@pidster.com>.
On 30/12/2011 11:33, Lau Eng Huat wrote:
> Hi guys,
> 
> Is it possible to merge multiple xml file into a single xml file in tomcat.

Yes and no.

It is not possible to split web.xml into separate parts and subsequently
merge them.

It is possible (in Servlet 3.0) to create web-fragment.xml files with
distinct application components.  Read the Servlet Spec to understand more.


The server.xml file is parsed separately and can use XML entities, and
can therefore include external files.


> The web.xml file & server.xml is getting large and I want it to be more
> organized. Is this possible ?

Most people just put up with a verbose web.xml file.

Why is server.xml getting so big?  Have you removed all of the XML comments?


p



-- 

[key:62590808]