Apologies if the logic in produced XML file doesn’t make much sense. I use it merely as an example of some complex XML attributes and nesting.
The method below returns XML string, which later can be saved as XML file or consumed as a XML string by web services ...read more
There are comments. Feel free to leave your comment.