I'd like an opinion about to create an hypothetic scripting system using XML. The idea is to use a SAX parser and C# reflection.
I cannot find a library/framework which allow to specify custom action using XML files. At this time I use XML for serialize application classes, bug could be awesome to specify which actions the application shall execute using XML.
So, I'm thinking about:
- SAX parser implementation for C#?
- XML script conventions?
What I'd like to achieve is the: - Possibility to assign a class instance property - Possibility to call class instance routines
Assuming that the class instance is implicit, the following XML script would be gold for me:
<Script>
<Property Name='SomeProperty'>
<Value>
< ... >
</Value>
</Property>
<RoutineCall>
<Parameters>
<Parameter Name='ArgName'>
< ... >
</Parameter>
</Parameters>
</RoutineCall>
</Script>
It is already done by someone? Is it possible?