scottbw / Xcri4j

Java Library for parsing XCRI documents
MIT License
4 stars 2 forks source link

Support for custom extensions #3

Open oucs0130 opened 12 years ago

oucs0130 commented 12 years ago

Here at Oxford we are using xcri to pass course data between systems. However our data contains extra information that is outside the scope of xcri (for example course presenter, course administrator, term information, student supervisor approval needed, and collaborating departments). So we have extended xcri 1.2 with custom tags and attributes, all within their own namespace.

Xcri4j looks to be a good starting point to process this data (as it does), but it obviously ignores our custom data. We are looking to add hooks to xcri4j that will allow us to call custom classes so as to process this custom data. The custom classes will all be contained in their own project. Is the addition of these hooks to xcri4j likely to be of interest to Xcri4j?

scottbw commented 12 years ago

I can see it being useful to quite a few people to have hooks for their extensions, so I'd say yes.

On a related note it may be useful to be able to have a "generic" extension model too as a container when you aren't using custom parser classes - so being able to do something like mycourse.getExtension("course-presenter", NS);