I have a simple xaml file (test.xaml) with a single message box activity. I wanted to read the xaml file just like a XML file (nodes and attribute). I had tried using XamlServices.Load(stream,parserContext) function but it is throwing exception. Below is the image of text.xaml
Here is screenshot of XAML code.