Hi,
I amd trying to add element to exiting XElement.
Please help me
I am getting below element
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:ln="clr-namespace:DGSL.TruBot.ActivityLibrary;assembly=DGSL.TruBot.ActivityLibrary"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
True
And I want to add  below element to Sequence,
 
 
 
Final output should be 
 
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:ln="clr-namespace:DGSL.TruBot.ActivityLibrary;assembly=DGSL.TruBot.ActivityLibrary"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
True
 
 
I have used 
 
 
string DefaultActivityString = "OpenBrowser BrowserType =\"CHROME\"";
xmlnsAliasName ="ln"; 
 
public XElement GetXAML(string xmlnsAliasName)
{
return XElement.Parse(@"<" + xmlnsAliasName + ":" + DefaultActivityString + "/>");
}
however it is giving me error for invalid character 
 
Please help me to fix this.
 
Regards,
Pradeep