Changed HashMap to LinkedHashMap to preserve order of XML elements
Merge pull request #8 from pmarches/master

Output Xml elements in the same order they are set.

This helps with devices such as Technicolor TC8305C, which expect XML elements to follow strictly the order in the spec.