Hi RAS,
The sample file is attached here. The file demonstrates how the values of Model's Background style's parameters are captured and stored in an XML file "C:\myModel.xml".
This also shows how it effectively constructs the values back again.
Let me know if you shall need any further clarifications here.
Happy coding!
-Ajeet
Diagram_WF_XMLSerialization_ee592a36.zip