Function to parse XML

The following sample parses the XML string stored in the xmlString variable. The sample selects all config elements in the XML document node, loops through them, and append their contents.