chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1740350 [3/6] - in /chemistry/portcmis/trunk: PortCMIS/ PortCMIS/binding/ PortCMIS/binding/atompub/ PortCMIS/binding/browser/ PortCMIS/binding/browser/json/ PortCMIS/client/ PortCMIS/const/ PortCMIS/data/ PortCMIS/enum/ PortCMIS/exceptions...
Date Thu, 21 Apr 2016 16:29:05 GMT
Modified: chemistry/portcmis/trunk/PortCMIS/binding/atompub/XmlConverter.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/binding/atompub/XmlConverter.cs?rev=1740350&r1=1740349&r2=1740350&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/binding/atompub/XmlConverter.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/binding/atompub/XmlConverter.cs Thu Apr 21 16:29:04 2016
@@ -49,19 +49,19 @@ namespace PortCMIS.Binding.AtomPub
 
             writer.WriteStartElement(XmlConstants.TAG_REPOSITORY_INFO, ns);
 
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_ID, source.Id);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_NAME, source.Name);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_DESCRIPTION, source.Description);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_VENDOR, source.VendorName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRODUCT, source.ProductName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRODUCT_VERSION, source.ProductVersion);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_ROOT_FOLDER_ID, source.RootFolderId);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CHANGE_LOG_TOKEN, source.LatestChangeLogToken);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_ID, source.Id);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_NAME, source.Name);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_DESCRIPTION, source.Description);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_VENDOR, source.VendorName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRODUCT, source.ProductName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRODUCT_VERSION, source.ProductVersion);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_ROOT_FOLDER_ID, source.RootFolderId);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CHANGE_LOG_TOKEN, source.LatestChangeLogToken);
             writeRepositoryCapabilities(writer, cmisVersion, source.Capabilities);
             writeAclCapabilities(writer, cmisVersion, source.AclCapabilities);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CMIS_VERSION_SUPPORTED, source.CmisVersionSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_THIN_CLIENT_URI, source.ThinClientUri);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CHANGES_INCOMPLETE, source.ChangesIncomplete);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CMIS_VERSION_SUPPORTED, source.CmisVersionSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_THIN_CLIENT_URI, source.ThinClientUri);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CHANGES_INCOMPLETE, source.ChangesIncomplete);
             if (source.ChangesOnType != null)
             {
                 foreach (BaseTypeId baseType in source.ChangesOnType)
@@ -72,11 +72,11 @@ namespace PortCMIS.Binding.AtomPub
                                 + "The Item base type has been removed from the list.");
                         continue;
                     }
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CHANGES_ON_TYPE, baseType);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_CHANGES_ON_TYPE, baseType);
                 }
             }
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANONYMOUS, source.PrincipalIdAnonymous);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANYONE, source.PrincipalIdAnyone);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANONYMOUS, source.PrincipalIdAnonymous);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANYONE, source.PrincipalIdAnyone);
             if (cmisVersion != CmisVersion.Cmis_1_0 && source.ExtensionFeatures != null)
             {
                 foreach (ExtensionFeature feature in source.ExtensionFeatures)
@@ -98,24 +98,24 @@ namespace PortCMIS.Binding.AtomPub
 
             writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_REPINFO_CAPABILITIES, XmlConstants.NAMESPACE_CMIS);
 
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_ACL, source.AclCapability);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_ALL_VERSIONS_SEARCHABLE, source.IsAllVersionsSearchableSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_CHANGES, source.ChangesCapability);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_CONTENT_STREAM_UPDATABILITY, source.ContentStreamUpdatesCapability);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_GET_DESCENDANTS, source.IsGetDescendantsSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_GET_FOLDER_TREE, source.IsGetFolderTreeSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_ACL, source.AclCapability);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_ALL_VERSIONS_SEARCHABLE, source.IsAllVersionsSearchableSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_CHANGES, source.ChangesCapability);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_CONTENT_STREAM_UPDATABILITY, source.ContentStreamUpdatesCapability);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_GET_DESCENDANTS, source.IsGetDescendantsSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_GET_FOLDER_TREE, source.IsGetFolderTreeSupported);
             if (cmisVersion != CmisVersion.Cmis_1_0)
             {
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_ORDER_BY, source.OrderByCapability);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_ORDER_BY, source.OrderByCapability);
             }
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_MULTIFILING, source.IsMultifilingSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_PWC_SEARCHABLE, source.IsPwcSearchableSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_PWC_UPDATABLE, source.IsPwcUpdatableSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_QUERY, source.QueryCapability);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_RENDITIONS, source.RenditionsCapability);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_UNFILING, source.IsUnfilingSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_VERSION_SPECIFIC_FILING, source.IsVersionSpecificFilingSupported);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_JOIN, source.JoinCapability);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_MULTIFILING, source.IsMultifilingSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_PWC_SEARCHABLE, source.IsPwcSearchableSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_PWC_UPDATABLE, source.IsPwcUpdatableSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_QUERY, source.QueryCapability);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_RENDITIONS, source.RenditionsCapability);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_UNFILING, source.IsUnfilingSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_VERSION_SPECIFIC_FILING, source.IsVersionSpecificFilingSupported);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_JOIN, source.JoinCapability);
             if (cmisVersion != CmisVersion.Cmis_1_0)
             {
                 if (source.CreatablePropertyTypes != null)
@@ -128,7 +128,7 @@ namespace PortCMIS.Binding.AtomPub
                     {
                         foreach (PropertyType pt in creatablePropertyTypes.CanCreate)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_CREATABLE_PROPERTY_TYPES_CANCREATE,
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_CREATABLE_PROPERTY_TYPES_CANCREATE,
                                     pt);
                         }
                     }
@@ -142,35 +142,35 @@ namespace PortCMIS.Binding.AtomPub
 
                     writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES, XmlConstants.NAMESPACE_CMIS);
 
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_ID,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_ID,
                             newTypeSettableAttributes.CanSetId);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_LOCALNAME,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_LOCALNAME,
                             newTypeSettableAttributes.CanSetLocalName);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
                             XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_LOCALNAMESPACE,
                             newTypeSettableAttributes.CanSetLocalNamespace);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME,
                             newTypeSettableAttributes.CanSetDisplayName);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME,
                             newTypeSettableAttributes.CanSetQueryName);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION,
                             newTypeSettableAttributes.CanSetDescription);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CREATEABLE,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CREATEABLE,
                             newTypeSettableAttributes.CanSetCreatable);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_FILEABLE,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_FILEABLE,
                             newTypeSettableAttributes.CanSetFileable);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYABLE,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYABLE,
                             newTypeSettableAttributes.CanSetQueryable);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
                             XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_FULLTEXTINDEXED,
                             newTypeSettableAttributes.CanSetFulltextIndexed);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
                             XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_INCLUDEDINSUPERTYTPEQUERY,
                             newTypeSettableAttributes.CanSetIncludedInSupertypeQuery);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
                             XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CONTROLABLEPOLICY,
                             newTypeSettableAttributes.CanSetControllablePolicy);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS,
                             XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CONTROLABLEACL,
                             newTypeSettableAttributes.CanSetControllableAcl);
 
@@ -192,16 +192,16 @@ namespace PortCMIS.Binding.AtomPub
 
             writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_REPINFO_ACL_CAPABILITIES, XmlConstants.NAMESPACE_CMIS);
 
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_SUPPORTED_PERMISSIONS, source.SupportedPermissions);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_ACL_PROPAGATION, source.AclPropagation);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_SUPPORTED_PERMISSIONS, source.SupportedPermissions);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_ACL_PROPAGATION, source.AclPropagation);
             if (source.Permissions != null)
             {
                 foreach (IPermissionDefinition pd in source.Permissions)
                 {
                     writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_ACLCAP_PERMISSIONS, XmlConstants.NAMESPACE_CMIS);
 
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_PERMISSION_PERMISSION, pd.Id);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_PERMISSION_DESCRIPTION, pd.Description);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_PERMISSION_PERMISSION, pd.Id);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_PERMISSION_DESCRIPTION, pd.Description);
 
                     writeExtensions(writer, pd);
                     writer.WriteEndElement();
@@ -213,12 +213,12 @@ namespace PortCMIS.Binding.AtomPub
                 {
                     writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_ACLCAP_PERMISSION_MAPPING, XmlConstants.NAMESPACE_CMIS);
 
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_MAPPING_KEY, pm.Key);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_MAPPING_KEY, pm.Key);
                     if (pm.Permissions != null)
                     {
                         foreach (String perm in pm.Permissions)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_MAPPING_PERMISSION, perm);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACLCAP_MAPPING_PERMISSION, perm);
                         }
                     }
 
@@ -240,19 +240,19 @@ namespace PortCMIS.Binding.AtomPub
 
             writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_REPINFO_EXTENDED_FEATURES, XmlConstants.NAMESPACE_CMIS);
 
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_ID, source.Id);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_URL, source.Url);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_COMMON_NAME, source.CommonName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_VERSION_LABEL, source.VersionLabel);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_DESCRIPTION, source.Description);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_ID, source.Id);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_URL, source.Url);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_COMMON_NAME, source.CommonName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_VERSION_LABEL, source.VersionLabel);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_DESCRIPTION, source.Description);
             if (source.FeatureData != null)
             {
                 foreach (KeyValuePair<string, string> data in source.FeatureData)
                 {
                     writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_FEATURE_DATA, XmlConstants.NAMESPACE_CMIS);
 
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_DATA_KEY, data.Key);
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_DATA_VALUE, data.Value);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_DATA_KEY, data.Key);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_FEATURE_DATA_VALUE, data.Value);
 
                     writer.WriteEndElement();
                 }
@@ -322,30 +322,30 @@ namespace PortCMIS.Binding.AtomPub
                 throw new CmisRuntimeException("Type definition has no base type id!");
             }
 
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_ID, source.Id);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_LOCALNAME, source.LocalName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_LOCALNAMESPACE, source.LocalNamespace);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_DISPLAYNAME, source.DisplayName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_QUERYNAME, source.QueryName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_DESCRIPTION, source.Description);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_BASE_ID, source.BaseTypeId);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_PARENT_ID, source.ParentTypeId);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CREATABLE, source.IsCreatable);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_FILEABLE, source.IsFileable);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_QUERYABLE, source.IsQueryable);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_FULLTEXT_INDEXED, source.IsFulltextIndexed);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_INCLUDE_IN_SUPERTYPE_QUERY, source.IsIncludedInSupertypeQuery);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CONTROLABLE_POLICY, source.IsControllablePolicy);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CONTROLABLE_ACL, source.IsControllableAcl);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_ID, source.Id);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_LOCALNAME, source.LocalName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_LOCALNAMESPACE, source.LocalNamespace);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_DISPLAYNAME, source.DisplayName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_QUERYNAME, source.QueryName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_DESCRIPTION, source.Description);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_BASE_ID, source.BaseTypeId);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_PARENT_ID, source.ParentTypeId);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CREATABLE, source.IsCreatable);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_FILEABLE, source.IsFileable);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_QUERYABLE, source.IsQueryable);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_FULLTEXT_INDEXED, source.IsFulltextIndexed);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_INCLUDE_IN_SUPERTYPE_QUERY, source.IsIncludedInSupertypeQuery);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CONTROLABLE_POLICY, source.IsControllablePolicy);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CONTROLABLE_ACL, source.IsControllableAcl);
             if (cmisVersion != CmisVersion.Cmis_1_0 && source.TypeMutability != null)
             {
                 ITypeMutability tm = source.TypeMutability;
 
                 writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_TYPE_TYPE_MUTABILITY, XmlConstants.NAMESPACE_CMIS);
 
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_TYPE_MUTABILITY_CREATE, tm.CanCreate);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_TYPE_MUTABILITY_UPDATE, tm.CanUpdate);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_TYPE_MUTABILITY_DELETE, tm.CanDelete);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_TYPE_MUTABILITY_CREATE, tm.CanCreate);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_TYPE_MUTABILITY_UPDATE, tm.CanUpdate);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_TYPE_MUTABILITY_DELETE, tm.CanDelete);
 
                 writeExtensions(writer, tm);
                 writer.WriteEndElement();
@@ -361,8 +361,8 @@ namespace PortCMIS.Binding.AtomPub
             if (source is DocumentTypeDefinition)
             {
                 DocumentTypeDefinition docDef = (DocumentTypeDefinition)source;
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_VERSIONABLE, docDef.IsVersionable);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CONTENTSTREAM_ALLOWED, docDef.ContentStreamAllowed);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_VERSIONABLE, docDef.IsVersionable);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_CONTENTSTREAM_ALLOWED, docDef.ContentStreamAllowed);
             }
 
             if (source is RelationshipTypeDefinition)
@@ -374,7 +374,7 @@ namespace PortCMIS.Binding.AtomPub
                     {
                         if (id != null)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_ALLOWED_SOURCE_TYPES, id);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_ALLOWED_SOURCE_TYPES, id);
                         }
                     }
                 }
@@ -384,7 +384,7 @@ namespace PortCMIS.Binding.AtomPub
                     {
                         if (id != null)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_ALLOWED_TARGET_TYPES, id);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_TYPE_ALLOWED_TARGET_TYPES, id);
                         }
                     }
                 }
@@ -433,23 +433,23 @@ namespace PortCMIS.Binding.AtomPub
                     writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_TYPE_PROP_DEF_URI, XmlConstants.NAMESPACE_CMIS);
                     break;
                 default:
-                    throw new CmisRuntimeException("Property defintion has no property type!");
+                    throw new CmisRuntimeException("Property definition has no property type!");
             }
 
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_ID, source.Id);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_LOCALNAME, source.LocalName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_LOCALNAMESPACE, source.LocalNamespace);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_DISPLAYNAME, source.DisplayName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_QUERYNAME, source.QueryName);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_DESCRIPTION, source.Description);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_PROPERTY_TYPE, source.PropertyType);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CARDINALITY, source.Cardinality);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_UPDATABILITY, source.Updatability);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_INHERITED, source.IsInherited);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_REQUIRED, source.IsRequired);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_QUERYABLE, source.IsQueryable);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_ORDERABLE, source.IsOrderable);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_OPENCHOICE, source.IsOpenChoice);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_ID, source.Id);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_LOCALNAME, source.LocalName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_LOCALNAMESPACE, source.LocalNamespace);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_DISPLAYNAME, source.DisplayName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_QUERYNAME, source.QueryName);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_DESCRIPTION, source.Description);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_PROPERTY_TYPE, source.PropertyType);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CARDINALITY, source.Cardinality);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_UPDATABILITY, source.Updatability);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_INHERITED, source.IsInherited);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_REQUIRED, source.IsRequired);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_QUERYABLE, source.IsQueryable);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_ORDERABLE, source.IsOrderable);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_OPENCHOICE, source.IsOpenChoice);
 
             if (source is IPropertyStringDefinition)
             {
@@ -462,7 +462,7 @@ namespace PortCMIS.Binding.AtomPub
                     writeProperty(writer, prop, true);
                 }
 
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MAX_LENGTH, def.MaxLength);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MAX_LENGTH, def.MaxLength);
 
                 if (def.Choices != null)
                 {
@@ -508,8 +508,8 @@ namespace PortCMIS.Binding.AtomPub
                     writeProperty(writer, prop, true);
                 }
 
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MAX_VALUE, def.MaxValue);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MIN_VALUE, def.MinValue);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MAX_VALUE, def.MaxValue);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MIN_VALUE, def.MinValue);
 
                 if (def.Choices != null)
                 {
@@ -555,7 +555,7 @@ namespace PortCMIS.Binding.AtomPub
                     writeProperty(writer, prop, true);
                 }
 
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_RESOLUTION, def.DateTimeResolution);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_RESOLUTION, def.DateTimeResolution);
 
                 if (def.Choices != null)
                 {
@@ -579,9 +579,9 @@ namespace PortCMIS.Binding.AtomPub
                     writeProperty(writer, prop, true);
                 }
 
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MAX_VALUE, def.MaxValue);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MIN_VALUE, def.MinValue);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_PRECISION, def.Precision);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MAX_VALUE, def.MaxValue);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_MIN_VALUE, def.MinValue);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_PRECISION, def.Precision);
 
                 if (def.Choices != null)
                 {
@@ -667,31 +667,31 @@ namespace PortCMIS.Binding.AtomPub
                     case PropertyType.Uri:
                         foreach (string value in (IList<string>)source.Value)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
                         }
                         break;
                     case PropertyType.Integer:
                         foreach (BigInteger value in (IList<BigInteger>)source.Value)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
                         }
                         break;
                     case PropertyType.Boolean:
                         foreach (bool? value in (IList<bool?>)source.Value)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
                         }
                         break;
                     case PropertyType.DateTime:
                         foreach (DateTime value in (IList<DateTime>)source.Value)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
                         }
                         break;
                     case PropertyType.Decimal:
                         foreach (decimal? value in (IList<decimal?>)source.Value)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_TYPE_CHOICE_VALUE, value);
                         }
                         break;
                     default:
@@ -784,8 +784,8 @@ namespace PortCMIS.Binding.AtomPub
 
                 writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_OBJECT_CHANGE_EVENT_INFO, XmlConstants.NAMESPACE_CMIS);
 
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CHANGE_EVENT_TYPE, info.ChangeType);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CHANGE_EVENT_TIME, info.ChangeTime);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CHANGE_EVENT_TYPE, info.ChangeType);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_CHANGE_EVENT_TIME, info.ChangeTime);
 
                 writeExtensions(writer, info);
                 writer.WriteEndElement();
@@ -794,7 +794,7 @@ namespace PortCMIS.Binding.AtomPub
             {
                 writeAcl(writer, cmisVersion, false, source.Acl);
             }
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_OBJECT_EXACT_ACL, source.IsExactAcl);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_OBJECT_EXACT_ACL, source.IsExactAcl);
             if (source.PolicyIds != null)
             {
                 IPolicyIdList pids = source.PolicyIds;
@@ -807,7 +807,7 @@ namespace PortCMIS.Binding.AtomPub
                     {
                         if (id != null)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_POLICY_ID, id);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_POLICY_ID, id);
                         }
                     }
                 }
@@ -823,14 +823,14 @@ namespace PortCMIS.Binding.AtomPub
                     {
                         writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_OBJECT_RENDITION, XmlConstants.NAMESPACE_CMIS);
 
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_STREAM_ID, rend.StreamId);
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_MIMETYPE, rend.MimeType);
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_LENGTH, rend.Length);
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_KIND, rend.Kind);
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_TITLE, rend.Title);
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_HEIGHT, rend.Height);
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_WIDTH, rend.Width);
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_DOCUMENT_ID, rend.RenditionDocumentId);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_STREAM_ID, rend.StreamId);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_MIMETYPE, rend.MimeType);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_LENGTH, rend.Length);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_KIND, rend.Kind);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_TITLE, rend.Title);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_HEIGHT, rend.Height);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_WIDTH, rend.Width);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_RENDITION_DOCUMENT_ID, rend.RenditionDocumentId);
 
                         writeExtensions(writer, rend);
                         writer.WriteEndElement();
@@ -921,31 +921,31 @@ namespace PortCMIS.Binding.AtomPub
                     case PropertyType.Uri:
                         foreach (string value in (IList<string>)source.Values)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
                         }
                         break;
                     case PropertyType.Integer:
                         foreach (BigInteger value in (IList<BigInteger>)source.Values)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
                         }
                         break;
                     case PropertyType.Boolean:
                         foreach (bool value in (IList<bool>)source.Values)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
                         }
                         break;
                     case PropertyType.DateTime:
                         foreach (DateTime value in (IList<DateTime>)source.Values)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
                         }
                         break;
                     case PropertyType.Decimal:
                         foreach (decimal value in (IList<decimal>)source.Values)
                         {
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_PROPERTY_VALUE, value);
                         }
                         break;
                 }
@@ -986,7 +986,7 @@ namespace PortCMIS.Binding.AtomPub
                                     + "The canCreateItem action has been removed from the Allowable Actions.");
                             continue;
                         }
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, action.GetCmisValue(), true);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, action.GetCmisValue(), true);
                     }
                 }
             }
@@ -1026,7 +1026,7 @@ namespace PortCMIS.Binding.AtomPub
 
                             writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_ACE_PRINCIPAL, XmlConstants.NAMESPACE_CMIS);
 
-                            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACE_PRINCIPAL_ID, principal.Id);
+                            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACE_PRINCIPAL_ID, principal.Id);
 
                             writeExtensions(writer, principal);
                             writer.WriteEndElement();
@@ -1035,10 +1035,10 @@ namespace PortCMIS.Binding.AtomPub
                         {
                             foreach (String perm in ace.Permissions)
                             {
-                                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACE_PERMISSIONS, perm);
+                                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACE_PERMISSIONS, perm);
                             }
                         }
-                        XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACE_IS_DIRECT, ace.IsDirect);
+                        XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_ACE_IS_DIRECT, ace.IsDirect);
 
                         writeExtensions(writer, ace);
                         writer.WriteEndElement();
@@ -1064,13 +1064,13 @@ namespace PortCMIS.Binding.AtomPub
             writer.WriteStartElement(XmlConstants.TAG_QUERY, XmlConstants.NAMESPACE_CMIS);
             writer.WriteAttributeString("xmlns", XmlConstants.PREFIX_CMIS, null, XmlConstants.NAMESPACE_CMIS);
 
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_STATEMENT, source.Statement);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_SEARCHALLVERSIONS, source.SearchAllVersions);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_INCLUDEALLOWABLEACTIONS, source.IncludeAllowableActions);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_INCLUDERELATIONSHIPS, source.IncludeRelationships);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_RENDITIONFILTER, source.RenditionFilter);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_MAXITEMS, source.MaxItems);
-            XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_SKIPCOUNT, source.SkipCount);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_STATEMENT, source.Statement);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_SEARCHALLVERSIONS, source.SearchAllVersions);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_INCLUDEALLOWABLEACTIONS, source.IncludeAllowableActions);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_INCLUDERELATIONSHIPS, source.IncludeRelationships);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_RENDITIONFILTER, source.RenditionFilter);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_MAXITEMS, source.MaxItems);
+            XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_QUERY_SKIPCOUNT, source.SkipCount);
 
             writeExtensions(writer, source);
             writer.WriteEndElement();
@@ -1098,8 +1098,8 @@ namespace PortCMIS.Binding.AtomPub
 
                 writer.WriteStartElement(XmlConstants.PREFIX_CMIS, XmlConstants.TAG_BULK_UPDATE_ID_AND_TOKEN, XmlConstants.NAMESPACE_CMIS);
 
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_IDANDTOKEN_ID, idAndToken.Id);
-                XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_IDANDTOKEN_CHANGETOKEN, idAndToken.ChangeToken);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_IDANDTOKEN_ID, idAndToken.Id);
+                XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_IDANDTOKEN_CHANGETOKEN, idAndToken.ChangeToken);
 
                 writeExtensions(writer, idAndToken);
                 writer.WriteEndElement();
@@ -1126,7 +1126,7 @@ namespace PortCMIS.Binding.AtomPub
             {
                 foreach (string id in bulkUpdate.AddSecondaryTypeIds)
                 {
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_BULK_UPDATE_ADD_SECONDARY_TYPES, id);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_BULK_UPDATE_ADD_SECONDARY_TYPES, id);
                 }
             }
 
@@ -1134,7 +1134,7 @@ namespace PortCMIS.Binding.AtomPub
             {
                 foreach (string id in bulkUpdate.RemoveSecondaryTypeIds)
                 {
-                    XmlUtils.write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_BULK_UPDATE_REMOVE_SECONDARY_TYPES, id);
+                    XmlUtils.Write(writer, XmlConstants.PREFIX_CMIS, XmlConstants.NAMESPACE_CMIS, XmlConstants.TAG_BULK_UPDATE_REMOVE_SECONDARY_TYPES, id);
                 }
             }
 
@@ -1245,37 +1245,37 @@ namespace PortCMIS.Binding.AtomPub
 
         public static RepositoryInfo convertRepositoryInfo(XmlReader parser)
         {
-            return REPOSITORY_INFO_PARSER.walk(parser);
+            return REPOSITORY_INFO_PARSER.Walk(parser);
         }
 
         public static ITypeDefinition convertTypeDefinition(XmlReader parser)
         {
-            return TYPE_DEF_PARSER.walk(parser);
+            return TYPE_DEF_PARSER.Walk(parser);
         }
 
         public static IObjectData convertObject(XmlReader parser)
         {
-            return OBJECT_PARSER.walk(parser);
+            return OBJECT_PARSER.Walk(parser);
         }
 
         public static QueryType convertQuery(XmlReader parser)
         {
-            return QUERY_PARSER.walk(parser);
+            return QUERY_PARSER.Walk(parser);
         }
 
         public static IAllowableActions convertAllowableActions(XmlReader parser)
         {
-            return ALLOWABLE_ACTIONS_PARSER.walk(parser);
+            return ALLOWABLE_ACTIONS_PARSER.Walk(parser);
         }
 
         public static IAcl convertAcl(XmlReader parser)
         {
-            return ACL_PARSER.walk(parser);
+            return ACL_PARSER.Walk(parser);
         }
 
         public static BulkUpdate convertBulkUpdate(XmlReader parser)
         {
-            return BULK_UPDATE_PARSER.walk(parser);
+            return BULK_UPDATE_PARSER.Walk(parser);
         }
 
         // ------------------------------
@@ -1283,116 +1283,116 @@ namespace PortCMIS.Binding.AtomPub
         // ------------------------------
 
         private static readonly RepositoryInfoParser REPOSITORY_INFO_PARSER = new RepositoryInfoParser();
-        private class RepositoryInfoParser : XMLWalker<RepositoryInfo>
+        private class RepositoryInfoParser : XmlWalker<RepositoryInfo>
         {
-            protected override RepositoryInfo prepareTarget(XmlReader parser, string localname, string ns)
+            protected override RepositoryInfo PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new RepositoryInfo();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, RepositoryInfo target)
+            protected override bool Read(XmlReader parser, string localname, string ns, RepositoryInfo target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_ID))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_ID))
                     {
-                        target.Id = readText(parser);
+                        target.Id = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_NAME))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_NAME))
                     {
-                        target.Name = readText(parser);
+                        target.Name = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_DESCRIPTION))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_DESCRIPTION))
                     {
-                        target.Description = readText(parser);
+                        target.Description = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_VENDOR))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_VENDOR))
                     {
-                        target.VendorName = readText(parser);
+                        target.VendorName = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_PRODUCT))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_PRODUCT))
                     {
-                        target.ProductName = readText(parser);
+                        target.ProductName = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_PRODUCT_VERSION))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_PRODUCT_VERSION))
                     {
-                        target.ProductVersion = readText(parser);
+                        target.ProductVersion = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_ROOT_FOLDER_ID))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_ROOT_FOLDER_ID))
                     {
-                        target.RootFolderId = readText(parser);
+                        target.RootFolderId = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_CHANGE_LOG_TOKEN))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_CHANGE_LOG_TOKEN))
                     {
-                        target.LatestChangeLogToken = readText(parser);
+                        target.LatestChangeLogToken = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_CAPABILITIES))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_CAPABILITIES))
                     {
-                        target.Capabilities = CAPABILITIES_PARSER.walk(parser);
+                        target.Capabilities = CAPABILITIES_PARSER.Walk(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_ACL_CAPABILITIES))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_ACL_CAPABILITIES))
                     {
-                        target.AclCapabilities = ACL_CAPABILITIES_PARSER.walk(parser);
+                        target.AclCapabilities = ACL_CAPABILITIES_PARSER.Walk(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_CMIS_VERSION_SUPPORTED))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_CMIS_VERSION_SUPPORTED))
                     {
-                        target.CmisVersionSupported = readText(parser);
+                        target.CmisVersionSupported = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_THIN_CLIENT_URI))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_THIN_CLIENT_URI))
                     {
-                        target.ThinClientUri = readText(parser);
+                        target.ThinClientUri = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_CHANGES_INCOMPLETE))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_CHANGES_INCOMPLETE))
                     {
-                        target.ChangesIncomplete = readBoolean(parser);
+                        target.ChangesIncomplete = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_CHANGES_ON_TYPE))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_CHANGES_ON_TYPE))
                     {
-                        target.ChangesOnType = addToList(target.ChangesOnType, readEnum<BaseTypeId>(parser));
+                        target.ChangesOnType = AddToList(target.ChangesOnType, ReadEnum<BaseTypeId>(parser));
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANONYMOUS))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANONYMOUS))
                     {
-                        target.PrincipalIdAnonymous = readText(parser);
+                        target.PrincipalIdAnonymous = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANYONE))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_PRINCIPAL_ID_ANYONE))
                     {
-                        target.PrincipalIdAnyone = readText(parser);
+                        target.PrincipalIdAnyone = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_REPINFO_EXTENDED_FEATURES))
+                    if (IsTag(localname, XmlConstants.TAG_REPINFO_EXTENDED_FEATURES))
                     {
-                        target.ExtensionFeatures = addToList(target.ExtensionFeatures, EXTENDED_FEATURES_PARSER.walk(parser));
+                        target.ExtensionFeatures = AddToList(target.ExtensionFeatures, EXTENDED_FEATURES_PARSER.Walk(parser));
                         return true;
                     }
                 }
@@ -1402,116 +1402,116 @@ namespace PortCMIS.Binding.AtomPub
         };
 
         private static readonly CapabilitiesParser CAPABILITIES_PARSER = new CapabilitiesParser();
-        private class CapabilitiesParser : XMLWalker<RepositoryCapabilities>
+        private class CapabilitiesParser : XmlWalker<RepositoryCapabilities>
         {
-            protected override RepositoryCapabilities prepareTarget(XmlReader parser, string localname, string ns)
+            protected override RepositoryCapabilities PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new RepositoryCapabilities();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, RepositoryCapabilities target)
+            protected override bool Read(XmlReader parser, string localname, string ns, RepositoryCapabilities target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_CAP_ACL))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_ACL))
                     {
-                        target.AclCapability = readEnum<CapabilityAcl>(parser);
+                        target.AclCapability = ReadEnum<CapabilityAcl>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_ALL_VERSIONS_SEARCHABLE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_ALL_VERSIONS_SEARCHABLE))
                     {
-                        target.IsAllVersionsSearchableSupported = readBoolean(parser);
+                        target.IsAllVersionsSearchableSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_CHANGES))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_CHANGES))
                     {
-                        target.ChangesCapability = readEnum<CapabilityChanges>(parser);
+                        target.ChangesCapability = ReadEnum<CapabilityChanges>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_CONTENT_STREAM_UPDATABILITY))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_CONTENT_STREAM_UPDATABILITY))
                     {
-                        target.ContentStreamUpdatesCapability = readEnum<CapabilityContentStreamUpdates>(parser);
+                        target.ContentStreamUpdatesCapability = ReadEnum<CapabilityContentStreamUpdates>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_GET_DESCENDANTS))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_GET_DESCENDANTS))
                     {
-                        target.IsGetDescendantsSupported = readBoolean(parser);
+                        target.IsGetDescendantsSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_GET_FOLDER_TREE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_GET_FOLDER_TREE))
                     {
-                        target.IsGetFolderTreeSupported = readBoolean(parser);
+                        target.IsGetFolderTreeSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_ORDER_BY))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_ORDER_BY))
                     {
-                        target.OrderByCapability = readEnum<CapabilityOrderBy>(parser);
+                        target.OrderByCapability = ReadEnum<CapabilityOrderBy>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_MULTIFILING))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_MULTIFILING))
                     {
-                        target.IsMultifilingSupported = readBoolean(parser);
+                        target.IsMultifilingSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_PWC_SEARCHABLE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_PWC_SEARCHABLE))
                     {
-                        target.IsPwcSearchableSupported = readBoolean(parser);
+                        target.IsPwcSearchableSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_PWC_UPDATABLE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_PWC_UPDATABLE))
                     {
-                        target.IsPwcUpdatableSupported = readBoolean(parser);
+                        target.IsPwcUpdatableSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_QUERY))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_QUERY))
                     {
-                        target.QueryCapability = readEnum<CapabilityQuery>(parser);
+                        target.QueryCapability = ReadEnum<CapabilityQuery>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_RENDITIONS))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_RENDITIONS))
                     {
-                        target.RenditionsCapability = readEnum<CapabilityRenditions>(parser);
+                        target.RenditionsCapability = ReadEnum<CapabilityRenditions>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_UNFILING))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_UNFILING))
                     {
-                        target.IsUnfilingSupported = readBoolean(parser);
+                        target.IsUnfilingSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_VERSION_SPECIFIC_FILING))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_VERSION_SPECIFIC_FILING))
                     {
-                        target.IsVersionSpecificFilingSupported = readBoolean(parser);
+                        target.IsVersionSpecificFilingSupported = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_JOIN))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_JOIN))
                     {
-                        target.JoinCapability = readEnum<CapabilityJoin>(parser);
+                        target.JoinCapability = ReadEnum<CapabilityJoin>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_CREATABLE_PROPERTY_TYPES))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_CREATABLE_PROPERTY_TYPES))
                     {
-                        target.CreatablePropertyTypes = CREATABLE_PROPERTY_TYPES_PARSER.walk(parser);
+                        target.CreatablePropertyTypes = CREATABLE_PROPERTY_TYPES_PARSER.Walk(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES))
                     {
-                        target.NewTypeSettableAttributes = NEW_TYPES_SETTABLE_ATTRIBUTES_PARSER.walk(parser);
+                        target.NewTypeSettableAttributes = NEW_TYPES_SETTABLE_ATTRIBUTES_PARSER.Walk(parser);
                         return true;
                     }
                 }
@@ -1521,20 +1521,24 @@ namespace PortCMIS.Binding.AtomPub
         };
 
         private static readonly CreatablePropertyTypesParser CREATABLE_PROPERTY_TYPES_PARSER = new CreatablePropertyTypesParser();
-        private class CreatablePropertyTypesParser : XMLWalker<CreatablePropertyTypes>
+        private class CreatablePropertyTypesParser : XmlWalker<CreatablePropertyTypes>
         {
-            protected override CreatablePropertyTypes prepareTarget(XmlReader parser, string localname, string ns)
+            protected override CreatablePropertyTypes PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new CreatablePropertyTypes();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, CreatablePropertyTypes target)
+            protected override bool Read(XmlReader parser, string localname, string ns, CreatablePropertyTypes target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_CAP_CREATABLE_PROPERTY_TYPES_CANCREATE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_CREATABLE_PROPERTY_TYPES_CANCREATE))
                     {
-                        target.CanCreate.Add(readEnum<PropertyType>(parser));
+                        if (target.CanCreate == null)
+                        {
+                            target.CanCreate = new HashSet<PropertyType>();
+                        }
+                        target.CanCreate.Add(ReadEnum<PropertyType>(parser));
                         return true;
                     }
                 }
@@ -1543,92 +1547,92 @@ namespace PortCMIS.Binding.AtomPub
         };
 
         private static readonly NewTypesSettableAttributesParser NEW_TYPES_SETTABLE_ATTRIBUTES_PARSER = new NewTypesSettableAttributesParser();
-        private class NewTypesSettableAttributesParser : XMLWalker<NewTypeSettableAttributes>
+        private class NewTypesSettableAttributesParser : XmlWalker<NewTypeSettableAttributes>
         {
-            protected override NewTypeSettableAttributes prepareTarget(XmlReader parser, string localname, string ns)
+            protected override NewTypeSettableAttributes PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new NewTypeSettableAttributes();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, NewTypeSettableAttributes target)
+            protected override bool Read(XmlReader parser, string localname, string ns, NewTypeSettableAttributes target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_ID))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_ID))
                     {
-                        target.CanSetId = readBoolean(parser);
+                        target.CanSetId = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_LOCALNAME))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_LOCALNAME))
                     {
-                        target.CanSetLocalName = readBoolean(parser);
+                        target.CanSetLocalName = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_LOCALNAMESPACE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_LOCALNAMESPACE))
                     {
-                        target.CanSetLocalNamespace = readBoolean(parser);
+                        target.CanSetLocalNamespace = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME))
                     {
-                        target.CanSetDisplayName = readBoolean(parser);
+                        target.CanSetDisplayName = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME))
                     {
-                        target.CanSetQueryName = readBoolean(parser);
+                        target.CanSetQueryName = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DESCRIPTION))
                     {
-                        target.CanSetDescription = readBoolean(parser);
+                        target.CanSetDescription = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CREATEABLE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CREATEABLE))
                     {
-                        target.CanSetCreatable = readBoolean(parser);
+                        target.CanSetCreatable = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_FILEABLE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_FILEABLE))
                     {
-                        target.CanSetFileable = readBoolean(parser);
+                        target.CanSetFileable = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYABLE))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYABLE))
                     {
-                        target.CanSetQueryable = readBoolean(parser);
+                        target.CanSetQueryable = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_FULLTEXTINDEXED))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_FULLTEXTINDEXED))
                     {
-                        target.CanSetFulltextIndexed = readBoolean(parser);
+                        target.CanSetFulltextIndexed = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_INCLUDEDINSUPERTYTPEQUERY))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_INCLUDEDINSUPERTYTPEQUERY))
                     {
-                        target.CanSetIncludedInSupertypeQuery = readBoolean(parser);
+                        target.CanSetIncludedInSupertypeQuery = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CONTROLABLEPOLICY))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CONTROLABLEPOLICY))
                     {
-                        target.CanSetControllablePolicy = readBoolean(parser);
+                        target.CanSetControllablePolicy = ReadBoolean(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CONTROLABLEACL))
+                    if (IsTag(localname, XmlConstants.TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_CONTROLABLEACL))
                     {
-                        target.CanSetControllableAcl = readBoolean(parser);
+                        target.CanSetControllableAcl = ReadBoolean(parser);
                         return true;
                     }
                 }
@@ -1639,40 +1643,45 @@ namespace PortCMIS.Binding.AtomPub
 
 
         private static readonly AclCapabilitiesParser ACL_CAPABILITIES_PARSER = new AclCapabilitiesParser();
-        private class AclCapabilitiesParser : XMLWalker<AclCapabilities>
+        private class AclCapabilitiesParser : XmlWalker<AclCapabilities>
         {
-            protected override AclCapabilities prepareTarget(XmlReader parser, string localname, string ns)
+            protected override AclCapabilities PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new AclCapabilities();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, AclCapabilities target)
+            protected override bool Read(XmlReader parser, string localname, string ns, AclCapabilities target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_SUPPORTED_PERMISSIONS))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_SUPPORTED_PERMISSIONS))
                     {
-                        target.SupportedPermissions = readEnum<SupportedPermissions>(parser);
+                        target.SupportedPermissions = ReadEnum<SupportedPermissions>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_ACL_PROPAGATION))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_ACL_PROPAGATION))
                     {
-                        target.AclPropagation = readEnum<AclPropagation>(parser);
+                        target.AclPropagation = ReadEnum<AclPropagation>(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_PERMISSIONS))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_PERMISSIONS))
                     {
-                        target.Permissions = addToList(target.Permissions, PERMISSION_DEFINITION_PARSER.walk(parser));
+                        target.Permissions = AddToList(target.Permissions, PERMISSION_DEFINITION_PARSER.Walk(parser));
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_PERMISSION_MAPPING))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_PERMISSION_MAPPING))
                     {
-                        PermissionMapping pm = PERMISSION_MAPPING_PARSER.walk(parser);
+                        PermissionMapping pm = PERMISSION_MAPPING_PARSER.Walk(parser);
 
                         IDictionary<string, IPermissionMapping> mapping = target.PermissionMapping;
+                        if (mapping == null)
+                        {
+                            target.PermissionMapping = new Dictionary<string, IPermissionMapping>();
+                            mapping = target.PermissionMapping;
+                        }
                         mapping.Add(pm.Key, pm);
 
                         return true;
@@ -1685,26 +1694,26 @@ namespace PortCMIS.Binding.AtomPub
 
 
         private static readonly PermissionDefinitionParser PERMISSION_DEFINITION_PARSER = new PermissionDefinitionParser();
-        private class PermissionDefinitionParser : XMLWalker<PermissionDefinition>
+        private class PermissionDefinitionParser : XmlWalker<PermissionDefinition>
         {
-            protected override PermissionDefinition prepareTarget(XmlReader parser, string localname, string ns)
+            protected override PermissionDefinition PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new PermissionDefinition();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, PermissionDefinition target)
+            protected override bool Read(XmlReader parser, string localname, string ns, PermissionDefinition target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_PERMISSION_PERMISSION))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_PERMISSION_PERMISSION))
                     {
-                        target.Id = readText(parser);
+                        target.Id = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_PERMISSION_DESCRIPTION))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_PERMISSION_DESCRIPTION))
                     {
-                        target.Description = readText(parser);
+                        target.Description = ReadText(parser);
                         return true;
                     }
                 }
@@ -1715,26 +1724,26 @@ namespace PortCMIS.Binding.AtomPub
 
 
         private static readonly PermissionMappingParser PERMISSION_MAPPING_PARSER = new PermissionMappingParser();
-        private class PermissionMappingParser : XMLWalker<PermissionMapping>
+        private class PermissionMappingParser : XmlWalker<PermissionMapping>
         {
-            protected override PermissionMapping prepareTarget(XmlReader parser, string localname, string ns)
+            protected override PermissionMapping PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new PermissionMapping();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, PermissionMapping target)
+            protected override bool Read(XmlReader parser, string localname, string ns, PermissionMapping target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_MAPPING_KEY))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_MAPPING_KEY))
                     {
-                        target.Key = readText(parser);
+                        target.Key = ReadText(parser);
                         return true;
                     }
 
-                    if (isTag(localname, XmlConstants.TAG_ACLCAP_MAPPING_PERMISSION))
+                    if (IsTag(localname, XmlConstants.TAG_ACLCAP_MAPPING_PERMISSION))
                     {
-                        target.Permissions = addToList(target.Permissions, readText(parser));
+                        target.Permissions = AddToList(target.Permissions, ReadText(parser));
                         return true;
                     }
                 }
@@ -1744,50 +1753,50 @@ namespace PortCMIS.Binding.AtomPub
         };
 
         private static readonly ExtensionFeatureParser EXTENDED_FEATURES_PARSER = new ExtensionFeatureParser();
-        private class ExtensionFeatureParser : XMLWalker<ExtensionFeature>
+        private class ExtensionFeatureParser : XmlWalker<ExtensionFeature>
         {
-            protected override ExtensionFeature prepareTarget(XmlReader parser, string localname, string ns)
+            protected override ExtensionFeature PrepareTarget(XmlReader parser, string localname, string ns)
             {
                 return new ExtensionFeature();
             }
 
-            protected override bool read(XmlReader parser, string localname, string ns, ExtensionFeature target)
+            protected override bool Read(XmlReader parser, string localname, string ns, ExtensionFeature target)
             {
-                if (isCmisNamespace(ns))
+                if (IsCmisNamespace(ns))
                 {
-                    if (isTag(localname, XmlConstants.TAG_FEATURE_ID))

[... 1710 lines stripped ...]



Mime
View raw message