I have written a WPF application that I want to port to Silverlight 2.
My business logic and model (for the M-V-VM design pattern) are packaged into a separate assembly which I am trying to recast as a Silverlight class library.
Unfortunately, the XmlNode class which I use to parse an XML file with model data is not supported by Silverlight 2. The guidance is to use LING to XML instead (http://silverlight.net/forums/t/14577.aspx). Using LINQ seems overkill to me for my task. I am considering replacing the XML parsing code using the XML DOM with a scheme based on regular expressions (for parsing the attributes). Alternatively, I am considering writing my own implementation of XmlNode which would be referenced in case the project was compiled for Sliverlight 2.
Does anyone have faced a similar sitation? Does anyone have any suggestions (maybe a 3rd option) on how to proceed (RegEx or re-write)?