| XML Includes |
|
|
|
| Written by Andrew Smith |
| Saturday, 14 June 2008 13:34 |
|
XML includes allow includes of external XML files into a document. We use XML for our configuration files (some of which can get quite big) and as such this gives much greater felixibility in how miRicoh is configured. There are a couple of standard ways include external data into XML files, one using ENTITY refernces and another using XInclude (http://www.w3.org/TR/xinclude/). We use a very lightweight XML parser within miRicoh to keep performance high and overheads low but the disadvatnage of this is that some of these extended features of XML processing are not present by default. The specification of XInclude from w3 has many good features, but it also had a lot of functionality that we did not need, and was also missing a key element - authorisation and security.We wanted to add the ability use an XML include and therefore have added functionality similar to that specified by w3 but have adapted the standard slightly to fit the needs of m3i and miRicoh. Firstly we have implemented the following features that can be found in the standard:
And in addition we have added the following key feature:
What this means in practice is that you can include external XML elements from secure locations (including password protected file shares). If a configuration file is to be split up into smaller, more managable chunks, and say these chunks may contain sensitive data - then all of this can now be distributed on servers or within your organisations file system providing flexibility and security. The schema we have defined for our XML includes (SXInclude) can be found at http://www.m3ic.net/schema/1.0/SXInclude/, note we have used to prefix sxi: rather than xi: to differentiate it from the w3 standard. To use the include, a simple XML file might look something like:
As m3i is all about giving people options, this is yet another way in which more flexibility and configuration can be added into the system. |


















