I need to express in xml a list of actions that my program can do. The problem is that some actions need of additional elements and others do not. For example if my program has to perform actions on files: if I delete the only thing that interests me is the path, if the program does the copy… again I need the path, but also a path of destination .. How to write an xml file so structured?
Share
Something like this?
You could of course remove the
paramslevel and putparamtags directly under theactiontag, however the proposed structure will allow to add other types of nodes under theactiontag (for example, validation callbacks) without breaking too much things.