How to build XML Scripting Engine?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chua Wen Ching

    How to build XML Scripting Engine?

    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.
    --
    Regards,
    Chua Wen Ching
    Visit us at http://www.necoders.com
  • Lloyd Dupont

    #2
    Re: How to build XML Scripting Engine?

    well, if you already know XmlReader, what's the problem, hey?

    "Chua Wen Ching" <chua_wen_ching @nospam.hotmail .com> wrote in message
    news:77FD3E4B-ECAC-4AF0-BF73-CCC808D435DB@mi crosoft.com...[color=blue]
    > 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.
    > --
    > Regards,
    > Chua Wen Ching
    > Visit us at http://www.necoders.com[/color]


    Comment

    • Dmitriy Lapshin [C# / .NET MVP]

      #3
      Re: How to build XML Scripting Engine?

      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

      --
      Sincerely,
      Dmitriy Lapshin [C# / .NET MVP]
      Bring the power of unit testing to the VS .NET IDE today!


      "Chua Wen Ching" <chua_wen_ching @nospam.hotmail .com> wrote in message
      news:77FD3E4B-ECAC-4AF0-BF73-CCC808D435DB@mi crosoft.com...[color=blue]
      > 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.
      > --
      > Regards,
      > Chua Wen Ching
      > Visit us at http://www.necoders.com[/color]

      Comment

      Working...