473,382 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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
Nov 16 '05 #1
2 2040
well, if you already know XmlReader, what's the problem, hey?

"Chua Wen Ching" <ch************@nospam.hotmail.com> wrote in message
news:77**********************************@microsof t.com...
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

Nov 16 '05 #2
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!
http://www.x-unity.net/teststudio.aspx

"Chua Wen Ching" <ch************@nospam.hotmail.com> wrote in message
news:77**********************************@microsof t.com...
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


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dito | last post by:
I have a .asp page that contains an activex componet. When I launch it in a browser, it returns an error that the viewer is unable to create it's resource objects. "To rectify this problem,...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
1
by: MatthewRoberts | last post by:
Howdy All, I am having difficulty with two-way communication across AppDomains in an attempt to dynamically script applications. Everything works as expected, except when using ByRef parameters....
13
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
3
by: MatthewRoberts | last post by:
Howdy All, I am having difficulty with two-way communication across AppDomains in an attempt to dynamically script applications. Everything works as expected, except when using ByRef parameters....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.