I have some questions to ask... just say i have this xml file:
What i want to do is similar to a scripting?
1. I will load all the configuration within the <settings/> tag.
2. I then go into commands, and still will reference back the <settings/> tag.
Execute this first :-
(behind the scene call) Func1(auto); // auto is get from the <settings/> tag.
(behind the scene call) Func2(80%); // 80% is get from the <settings/> tag.
(behind the scene call) Func3(10); // 10 is get from the <settings/> tag
It is something like C#, where the config, volume and speed are global variables.
It will then be used inside each command, if necessary.
Propose Solution :-
xml script (which anyone can write with a text editor, as long follow the right format - maybe schemas provided)
xml parser (validate the xml based on the schemas)
load the xml and execute it behind the scene
Any idea how this can be done? I know how to do this in C# script instead of Xml Script?
Hope someone share shed some light for me. Thanks.
Chua Wen Ching
Visit us at http://www.necoders.com