I have problem with adding new node (with namespace) to my xml document which is used to generating xaml. I'm doing it like this:
XmlElement richTextColumns = xmlDoc.CreateElement("local2:RichTextColumns");
but i receive error 0xC00CE01D (while calling xmlDoc.getxml). I have tried adding attribute xmlns:local2="using:App2.Common" to xmlDoc:
var att = xmlDoc.CreateAttribute("xmlns:local2");
att.InnerText = "using:Dictionary.Common";
xmlDoc.Attributes.SetNamedItem(att);
it results in this error
Object reference not set to an instance of an object.
Thank you in advance :)