Call us! 512-349-0334 or (877) INDUSOFT

Save Recipes as .XML Files in InduSoft Web Studio

You can save recipes as .XML files.  Why would you want to do this?  When a recipe is saved as a .DAT file, the format of the recipe is tightly associated with the recipe tags on the recipe worksheet or the class tag member structure that you have defined.  For instance, if you created two tags, “ChocoCake” and “VanillaCake” from the generic Cake class called “cCakes” having the members, “Flour”, “Yeast”, “Sugar”, “Milk”, “Eggs”, “OvenTemp”, “BakeTime”; and forgot to add an input field for “Eggs,” and also forgot to enter the class member, “Flavoring,” then saved the recipe, you would have the scenarios shown below.

The first recipe for ChocoCake (Figure 1) was saved in .DAT format and the recipe broke when the class structure was changed.  However the second recipe for VanillaCake was saved as an .XML file and each class member is fully qualified (Figure 2).  Loading this recipe file will continue to populate the correct class members or tags, even though newly added members or tags will contain a default value of “zero”.  Therefore, old recipes will continue to load correctly and new recipes can be added containing values for the new class members.

InduSoft Web Studio Recipe

InduSoft Web Studio Recipe

Leave a Reply