This example creates a simple Tag-List
The output of this example is the following XML file:
WCCOAui1:["Xml-Document = ... WCCOAui1:<Spaghetti-Bolognese> WCCOAui1: <Minced-Meat/> WCCOAui1: <Tomato-Concentrate/> WCCOAui1: <Peeled-Tomatoes/> WCCOAui1: <Pasta-Mix-of-Spices/> WCCOAui1: <Dried-Oregano-Powder/> WCCOAui1: <Cutup-Shallots/> WCCOAui1: <Sliced-Champignons/> WCCOAui1: <Other-Ingredients/> WCCOAui1:</Spaghetti-Bolognese> WCCOAui1:"]
One creates first the top-element container:
root = xmlAppendChild ( document , -1 , XML_ELEMENT_NODE , "Spaghetti-Bolognese" );
The code in the example then calls only ONCE the 'fwXml_appendChildContent()' function:
fwXml_appendChildContent ( document , root , sause_content , empty_a , empty_v , exceptionInfo );
The return parameter 'exceptionInfo' indicates the user of any errors...
The dynamic string 'sause_content' contains all the necessary information:
sause_content = makeDynString ( "Minced-Meat", "Tomato-Concentrate", "Peeled-Tomatoes", "Pasta-Mix-of-Spices", "Dried-Oregano-Powder", "Cutup-Shallots", "Sliced-Champignons", "Other-Ingredients" );