Yes, this is easy to do - since the XML config file is read with a
standard XML parser, use the XML entity mechanism to chop up the file.
This should probably be a FAQ, but the best explanation I have seen for
how to do this is in the Docbook documentation:

http://www.docbook.org/tdg/en/html/ch01.html#s-entities

Basically, you define entities for each chunk:

<!ENTITY part1 SYSTEM "part1.xml">
<!ENTITY part2 SYSTEM "part2.xml">
<!ENTITY part3 SYSTEM "part3.xml">

<maverick version="2.0">
  &part1;
  &part2;
  &part3;
</maverick>

That should work just fine.  The config format already allows multiple
<commands> and <views> elements.

Jeff Schnitzer
[EMAIL PROTECTED]

> -----Original Message-----
> From: Yurii Urazlin [mailto:Urazlin@;scph.mipt.ru]
> Sent: Saturday, November 09, 2002 10:07 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Mav-user] q: multiple config files
> 
> greetings,
> 
> i develop a big application and its functionality may be partitioned
into
> several weekly coupled components. it would be great to have several
> configuration files - one for each component, containing commands and
> views
> necessary for a particular component to function. is there a way to
have
> several configuration files for maverick, that would give whole config
of
> servlet?
> 
> thanks,
> yurazlin.
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> [INVALID FOOTER]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]

Reply via email to