How to build XML Scripting Engine?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

I have some enquiries.

1. I want to build a xml parser which can read my script format which is in
xml. Just say my xml format looks like this:

<something>
<command1>10</command1>
<command2>hello</command2>
</something>

I had an application, when you load that xml into the program. It will
translates it into 2 commands probably

TestA.Command1(10);
TestB.Command2("hello");

So next time, people just have to modify the xml script. The tools are just
there to be used.

Can i know what is best place to start with?

I have a bit of experience in XPath and XmlRead and XmlWrite.

Any recommended articles or available solutions to download (as a guideline
to start with) in C#?

Thanks. Cheers.
 
Hi,

Other things to look at can be:

'Factory' design pattern for a class factory creating command implementation
classes from command names
A common interface, say, IScriptCommand, which all command classes would
implement
 
Back
Top