Viewing Category: XML  [clear category selection]

Controlling the Mach II (or Model Glue) xml file size

I found a blog entry by Wayne Graham on the mach-ii.info web site. It explains how you can use XML Entities to "include" external xml files. In the case of Mach II and Model-Glue, you could separate out parts of the config file into different xml files. The short of it is you end up with a config file that looks like this (example is for Model-Glue, but can apply to Mach II):
<!DOCTYPE [
   <!ENTITY mapping "/modelgluesamples">

   <!ENTITY appName "StockQuote">
   <!ENTITY folder "stockquote">
   <!ENTITY hello "HelloWorld">
   <!ENTITY config SYSTEM "c:/websites/localhost/modelgluesamples/templates/config.xml">
   <!ENTITY controllers SYSTEM "http://localhost/modelgluesamples/templates/stockquote/controllers.xml">
   <!ENTITY events SYSTEM "http://localhost/modelgluesamples/templates/stockquote/event-handler.xml">
]>

<modelglue>
   &config;
   &controllers;
   &events;
</modelglue>

Mach II, Model-Glue, XML  |  Send
Posted 3/31/06 @ 5:47 AM by Matt Williams