void Interop.IElementNamespaceFactoryCallback.Resolve(string namespaceName, string tagName, string attributes, Interop.IElementNamespace pNamespace) { if (_registeredNamespaces.ContainsKey(namespaceName)) { int flag = 0; // we read the attributes probably used for XML elements to control the render behavior // ElementDescriptor controls "literalcontent" attribute (Default=false, Literal=true, NestedLiteral=nested) Type t = _editor.GenericElementFactory.GetElementType(String.Format("{0}:{1}", namespaceName, tagName)); if (t != null) { object[] o = t.GetCustomAttributes(typeof(ElementDescriptorAttribute), true); if (o != null && o.Length == 1) { ElementDescriptorAttribute eda = o[0] as ElementDescriptorAttribute; if (eda != null) { flag = (int)eda.Descriptor; } } } pNamespace.AddTag(tagName, flag); // LiteralContent = true/false/nested } }
void Interop.IElementNamespaceFactory.Create(Interop.IElementNamespace pNamespace) { }