public virtual void writexmlcollectionUnwrapped(GXXMLWriter oWriter, string itemName, string itemNamespace, bool includeState)
 {
     foreach (T obj in this)
     {
         string xml = obj.ToXml(false, includeState, itemName, itemNamespace);
         xml = GxUserType.UpdateNodeDefaultNamespace(xml, "", true, null);
         oWriter.WriteRawText(xml);
     }
 }
        public short readxmlcollectionUnwrapped(GXXMLReader oReader, string sName, string itemName)
        {
            short currError = 1;

            while (oReader.LocalName == itemName && currError > 0)
            {
                T currObject = new T();
                currObject.context = this.context;
                string xml = GxUserType.UpdateNodeDefaultNamespace(oReader.ReadRawXML(), null, false, this.GetPrefixesInContext());
                currObject.FromXml(xml, itemName, oReader.NamespaceURI);
                Add(currObject);
                oReader.Read();
            }
            return(currError);
        }