Interestingly enough, we do the exact same thing in our project (many .xml
files), and currently we use a perl script to merge the XML files (boo!).
However, I've been writing an Ant task that merges XML files into a single
file to replace the perl...but it's not finished (doh!).  Most of the code
is written, however--I just haven't had time to work out the kinks yet.
It's configurable to flat include the top-level (children of the root)
elements from each source file in the output file, or to merge the contents
of top-level elements with the same name into single Elements (w/ the same
name) in the output file.  You can set the DocType and such as well via task
attributes.

I'll probably have this tested and complete in a week or so, if you're
interested.  I plan to add more options as I think of them.

I'm not sure about the use of XML include references, but good luck if you
go that route. :)

regards,

Joe Barefoot


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 9:08 AM
To: Struts Users Mailing List
Subject: Struts config, can it have includes?



Is it possible to have a struts-config.xml file that simply does nothing
more than include other xml-files which contain all the form-bean and
action tags?   Or does everything have to be slam-dunked into the main
struts-config.xml.    Reason I ask is that we have 3 developers here
developing a struts application.   Each one of us needs to create about
40-60 actions or so.    It would be easier to have many different .xml
files that each of us can own that are simply included into the main
struts-config.xml file.   We're early into the development project and
someone will always have that file checked out.

thanks,
Theron


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to