I am going to have all XAML in database. I wonder to know how to implement functionality to read xaml from DB. Do I have to make a Parser which can distinguish all controls (buttons, text boxes, etc. ) or apply any other solution? The Parser will be hard to code because xaml will be read as strings so there would be many many operations on it(substring, index of, etc). My question is: is there a better solution for this problem?