plugin architecture - repost



I am building an application to help researcher record the outcomes of their
studies. These outcomes are document across a number of paper forms. The
information documented on these forms varies widely.

My current approach is to use a Document class with a collection of Question
classes. I create an instance of the Document, add a number of questions to
it, serialize the Document object to XML, then treat this XML file as a
'template'. I've created a number of these 'template' files. When I want
to use a specific template, I open the XML file, deserialize it, add data to
it, serialize it, then save the xml to a datasource associated w/ the study.

I started researching Plugsin and thought this architecture might provide a
more tight-bound solution. Essentially, each template is a plugin. The
sticking point is how to define and save a collection of Question classes
with the plugin.

I'd appreciate hearing others thoughts on these approaches.

Thanks,

Craig Buchanan



.



Relevant Pages

  • What Not to Do (a cautionary tale)
    ... script that reads in an XML file and an ERB template, ... to the template, and writes out the result to a file. ... and all hell broke loose as a result. ... Don't upgrade your Ruby environment unless you need to ...
    (comp.lang.ruby)
  • Re: Word 200 Macro using replace
    ... this field is populated from different fields in an XML file. ... The carraige ... returns aren't part of the template, they come from the XML file". ... > create a macro that will run automatically everytime a new .doc file is ...
    (microsoft.public.word.docmanagement)
  • "value substitution/population" in template XML using XPath
    ... I need to populate a large number of "template" XML files ... indicated in a seperate XML data file as, ... another XML file. ...
    (comp.text.xml)
  • Re: automating email with links to records just submitted to an SQL DB using asp.net (vb)
    ... What I usually do for emailing is create an XML file and call it, say, ... public static void Send(string templatePath, string templateID, string ... recipients, Hashtable tokens) ... XmlDocument template = new XmlDocument; ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Standard document layout
    ... You are going to have different outcomes for the different documents that ... you apply the template to. ... You will not necessarily have to clear the formatting for every document, ... that has the standard information like ...
    (microsoft.public.word.docmanagement)