private Dictionary<string, FieldDescriptor> ParseContentTypeElement(XPathNavigator contentTypeElement, IXmlNamespaceResolver nsres)
{
Dictionary<string, FieldDescriptor> result = null;
foreach (XPathNavigator subElement in contentTypeElement.SelectChildren(XPathNodeType.Element))
{
switch (subElement.LocalName)
{
case "DisplayName":
_displayName = subElement.Value;
break;
case "Description":
_description = subElement.Value;
break;
case "Icon":
_icon = subElement.Value;
break;
case "Fields":
result = ParseFieldElements(subElement, nsres);
break;
case "Actions":
//_actions = null;
//ParseActions(subElement, nsres);
Logger.WriteWarning("Ignoring obsolete Actions element in List definition: " + this.Name);
break;
default:
throw new NotSupportedException(String.Concat("Unknown element in ContentListDefinition: ", subElement.LocalName));
}
}
return result;
}
private Dictionary<string, FieldDescriptor> ParseFieldElements(XPathNavigator fieldsElement, IXmlNamespaceResolver nsres)