2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / ChangeLog
1 2007-02-19  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * XmlReflectionImporter.cs : CanBeNull() should return true when the
4           argument is generic nullable value type.
5
6 2007-02-19  Atsushi Enomoto  <atsushi@ximian.com>
7
8         * TypeData.cs, MapCodeGenerator.cs, XmlMemberMapping.cs,
9           TypeTranslator.cs : removed IsGenericNullable and added
10           set_IsNullable so that it could be simpler.
11
12 2007-02-19  Atsushi Enomoto  <atsushi@ximian.com>
13
14         * SerializationCodeGenerator.cs, XmlMappingAccess.cs,
15           SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
16           XmlMappingAccess.
17
18 2007-02-19  Atsushi Enomoto  <atsushi@ximian.com>
19
20         * SerializationCodeGenerator.cs : hooks won't work unless they are
21           set. For WriteStartElement() it could simply embed the names.
22
23 2007-02-14  Atsushi Enomoto  <atsushi@ximian.com>
24
25         * XmlTypeMapMember.cs : don't use readonly [Foo]Specified property
26           as nil-condition member. Fixed bug #80759.
27
28 2007-02-07  Atsushi Enomoto  <atsushi@ximian.com>
29
30         * SoapReflectionImporter.cs : for primitive types, set predefined
31           namespaces, regardless of the actual specification.
32
33 2007-02-07  Atsushi Enomoto  <atsushi@ximian.com>
34
35         * XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
36           XmlNode arrays.
37         * XmlSerializationWriterInterpreter.cs,
38           SerializationCodeGenerator.cs : so they have to be handled here.
39
40 2007-02-07  Atsushi Enomoto  <atsushi@ximian.com>
41
42         * XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
43           when the name is null (almost no need to do this, but it is easier
44           to remove NotWorking from extraneous tests and let them hush than
45           removing them).
46
47 2007-02-07  Atsushi Enomoto  <atsushi@ximian.com>
48
49         * XmlSerializationWriter.cs : callbacks could be kept null.
50
51 2007-01-19  Atsushi Enomoto  <atsushi@ximian.com>
52
53         * XmlMemberMapping.cs : uhoh, there is a nasty trick to output
54           Nullable info.
55
56 2007-01-18  Atsushi Enomoto  <atsushi@ximian.com>
57
58         * TypeData.cs : added get_IsGenericNullable.
59         * MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
60           the TypeData.IsGenericNullable.
61           Use GetDomType() instead of CodeTypeReference.ctor() to not lose
62           Nullable<T> info.
63         * XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
64           so that it won't XmlSchemaElement.IsNillable.
65         * TypeTranslator.cs :
66           Fixed wrong TypeData modification against non-nullable stuff.
67           Added another GetTypeData() that takes isNullableRuntimeType so
68           that it won't miss XmlSchemaElement.IsNillable.
69           Added another GetPrimitiveTypeData() that takes nullable.
70
71 2007-01-15  Atsushi Enomoto  <atsushi@ximian.com>
72
73         * TypeData.cs : reject generic type definitions.
74         * TypeTranslator.cs : Make generic type names in XML compatible with
75           .net: foo_x0060_1 -> fooOfString.
76
77 2006-12-04  Atsushi Enomoto  <atsushi@ximian.com>
78
79         * SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
80           GenerateToXmlString() needed hexBinary support as well. Since
81           XmlConvert.[To|From]BinHexString() are internal, use reflection.
82           Really fixed bug #79989 and #79990 for generated serializers.
83
84 2006-12-03  Gert Driesen  <drieseng@users.sourceforge.net>
85
86         * XmlSchemaExporter.cs: Emit xml name of enum-based default values.
87         Set XmlSchemaAttribute.Use to Required if no default value is defined,
88         and member is not an optional value type. Element should have minOccurs
89         1 if value type member has default value. Output flag enum type as
90         xsd list with restriction.
91         * XmlReflectionImporter.cs: Removed special casing of enums. Instead
92         of passing namespace of XmlAttribute to ImportTypeMapping, use the
93         default namespace for importing the member type.
94
95 2006-12-02  Gert Driesen  <drieseng@users.sourceforge.net>
96
97         * SerializationCodeGenerator.cs: Initialize out parameters if they
98         are value types. Fixed bug #79988.
99         * XmlSerializationReaderInterpreter.cs: Same.
100
101 2006-12-01  Atsushi Enomoto  <atsushi@ximian.com>
102
103         * XmlReflectionImporter.cs : implemented several missing check and 
104           support for XmlArrayAttribute. Fixed bug #78042.
105
106 2006-11-22  Atsushi Enomoto  <atsushi@ximian.com>
107
108         * XmlCustomFormatter.cs : handle hexBinary type. Fixed bug #79989
109           and #79990.
110
111 2006-11-22  Atsushi Enomoto  <atsushi@ximian.com>
112
113         Fixed bug #78611.
114         * TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
115           "nullable" information. Introduced new primitiveNullableTypes pool
116           whose TypeData has 'true' for new IsNullable property. This
117           property is also used for non-primitive types.
118         * XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
119           of IsValueType, to handle nullable types.
120
121 2006-11-20  Atsushi Enomoto  <atsushi@ximian.com>
122
123         * TypeTranslator.cs : Hari knew better way to do it.
124
125 2006-11-20  Atsushi Enomoto  <atsushi@ximian.com>
126
127         * TypeTranslator.cs : #if NET_2_0 for generic thingy.
128
129 2006-11-20  Atsushi Enomoto  <atsushi@ximian.com>
130
131         * TypeTranslator.cs : (GetTypeData) when the argument type is
132           Nullable<T>, use T instead. At run time (on both interpreter and
133           generated code) it is converted to T. Fixed bug #79803.
134
135 2006-11-17  Atsushi Enomoto  <atsushi@ximian.com>
136
137         * SerializationCodeGenerator.cs, TypeData.cs :
138           Now we differentiate TypeName, FullTypeName C# type names. It is
139           to create valid C# sources especially for generic types.
140           Fixed bug #79657.
141
142 2006-11-17  Atsushi Enomoto  <atsushi@ximian.com>
143
144         * XmlSerializationReader.cs : (ReadReferencedElement)
145           Sometimes there are array types in WSDL, which are not reflected
146           in client proxies. In SOAP messages, they are marked
147           soap-env:arrayType, so use it (this could coexist with xsi:type,
148           which indicates the type in WSDL). Fixed bug #79057.
149
150 2006-11-15  Atsushi Enomoto  <atsushi@ximian.com>
151
152         * XmlSerializationReader.cs : implement ToByteArray[Base64|Hex]().
153           removed extra ReadSerializable().
154         * XmlTypeMapping.cs : added XsdTypeName and XsdTypeNamespace.
155
156 2006-11-14  Atsushi Enomoto  <atsushi@ximian.com>
157
158         * SerializationCodeGenerator.cs,
159           SerializationCodeGeneratorConfiguration.cs :
160           make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
161           (or it is impossible to use genxs more than twice in an assembly.)
162
163 2006-11-10  Atsushi Enomoto  <atsushi@ximian.com>
164
165         Fixed bug #77117.
166         * XmlReflectionImporter.cs : Compute nullable correctly. Elements are
167           nillable when its type is a reference type.
168         * XmlSchemaExporter.cs :
169           Set XmlTypeMapElementInfo.IsNullable from XmlTypeMapping.
170           Set XmlSchemaElement.IsNillable from XmlTypeMapElementInfo.
171
172 2006-11-09  Atsushi Enomoto  <atsushi@ximian.com>
173
174         * XmlSchemaImporter.cs : top-level element might also have no type
175           name specification, so just compare ElementType with anyType.
176
177 2006-11-09  Atsushi Enomoto  <atsushi@ximian.com>
178
179         * XmlSchemaImporter.cs : attributes might overlap by extending
180           base content models. Since invalid content models are rejected by
181           Compile(), simply ignore duplicating attributes. Note that it is
182           basically hack, which should not skip derived ones but use them (but
183           it is mostly harmless since the result is very unlikely to differ).
184
185 2006-11-08  Atsushi Enomoto  <atsushi@ximian.com>
186
187         * XmlSchemaImporter.cs : when top-level element is xs:anyType, all
188           complexTypes must be also imported.
189
190 2006-11-08  Atsushi Enomoto  <atsushi@ximian.com>
191
192         * XmlSchemaImporter.cs : ImportTypeMapping() raises exception when
193           the argument name is not bound to any elements.
194
195 2006-11-07  Atsushi Enomoto  <atsushi@ximian.com>
196
197         * XmlCustomFormatter.cs : consider null base64 byte array value.
198           Fixed bug #79805.
199
200 2006-11-02  Atsushi Enomoto  <atsushi@ximian.com>
201
202         * CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
203           explicitly say Obsolete instantiation.
204         * CodeIdentifiers.cs : implemented case-insensitive mode.
205         * XmlSerializerAssemblyAttribute.cs : added missing .ctor().
206         * SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
207           in 2.0 profile it could also be applied to an interface.
208         * SoapReflectionImporter.cs,
209           XmlReflectionImporter.cs,
210           XmlMappingAccess.cs :
211           added missing ImportMembersMapping overload and moved actual
212           implementation to most lengthy-arglist one. To make it possible,
213           XmlMappingAccess is included in 1.x as internal enum.
214
215 2006-11-02  Atsushi Enomoto  <atsushi@ximian.com>
216
217         * XmlSchemaImporter.cs : initialize extensions from configuration.
218
219 2006-11-01  Atsushi Enomoto  <atsushi@ximian.com>
220
221         * SchemaImporterExtension.cs,
222           SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
223
224 2006-11-01  Atsushi Enomoto  <atsushi@ximian.com>
225
226         * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
227         * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
228           became a class, it needs explicit "override".
229           Since InternalSyncObject is gone, it needs another lock target.
230         * IXmlSerializerImplementation.cs : removed.
231         * XmlSerializerImplementation.cs : added.
232         * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
233           IXmlSerializerImplementation -> XmlSerializerImplementation.
234         * XmlSchemas.cs : removed Schemas. hacked Compile().
235           Now it implements IEnumerable<XmlSchema>.
236         * XmlSchemaEnumerator.cs : added missing type.
237
238 2006-11-01  Atsushi Enomoto  <atsushi@ximian.com>
239
240         * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
241           is not considered in XmlSerializationReader yet.
242         * XmlElementEventArgs.cs : added ExpectedElements. Note that it
243           is not considered in XmlSerializationReader yet.
244         * XmlSerializationReader.cs : added some overloads for 
245           UnknownElement()/-Attribute()/-Node().
246
247 2006-11-01  Atsushi Enomoto  <atsushi@ximian.com>
248
249         * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
250           [Serializable].
251         * XmlSerializationCollectionFixupCallback.cs,
252           XmlNodeEventHandler.cs,
253           XmlSerializationReadCallback.cs,
254           UnreferencedObjectEventHandler.cs,
255           XmlSerializationWriteCallback.cs,
256           XmlAttributeEventHandler.cs,
257           XmlElementEventHandler.cs,
258           XmlSerializationFixupCallback.cs :
259           exclude [Serializable] in NET_2_0.
260         * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
261         * XmlSerializerVersionAttribute.cs : removed [Obsolete].
262         * XmlMappingAccess.cs : it is [Flags].
263         * SchemaImporter.cs : implement Extensions.
264         * XmlAnyElementAttribute.cs,
265           XmlArrayAttribute.cs : added Order.
266           Note that it is not considered in XmlSerializer yet.
267
268 2006-10-25  Ankit Jain  <jankit@novell.com>
269
270         * SerializationCodeGenerator.cs (GenerateContract): Handle
271         'generateAsInternal' config option.
272
273 2006-10-10  Gert Driesen  <drieseng@users.sourceforge.net>
274
275         * XmlSerializer.cs: Output namespace declarations in same order as
276         MS.
277
278 2006-10-08  Gert Driesen  <drieseng@users.sourceforge.net>
279
280         * XmlSerializer.cs: Corrected exception message when deserialization
281         fails.
282         * SerializationCodeGenerator.cs: Added support for flag enums.
283         * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
284         all exceptions that occur while reflecting member. Validate default
285         values to match MS.
286         * SoapReflectionImporter.cs: Revert small part of previous patch as
287         XmlSerializer expects enum value.
288
289 2006-10-01  Gert Driesen  <drieseng@users.sourceforge.net>
290
291         * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
292         thrown during creation of map member bubble up. Only allow
293         SoapAttribute on primitive types and enums. Obtain default value for
294         attribute members.
295
296 2006-09-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
297
298         * XmlTypeAttribute.cs: added property AnonymousType for 2.0
299
300 2006-09-12  Lluis Sanchez Gual  <lluis@novell.com> 
301
302         * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
303
304 2006-09-11  Andrew Skiba <andrews@mainsoft.com>
305
306         * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
307         TARGET_JVM
308
309 2006-09-05  Lluis Sanchez Gual  <lluis@novell.com> 
310
311         * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
312         to strings. Make sure maps returned by ImportClassSimpleType are always
313         simple type maps. All this fixes bug #77585.
314
315 2006-09-05  Lluis Sanchez Gual  <lluis@novell.com>
316
317         * XmlSchemaImporter.cs: Always import simple type unions
318           as string (like MS.NET does). Fixes bug #79234.
319
320 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
321
322         * MapCodeGenerator.cs: Use assembly file version constants.
323
324 2006-07-24  Atsushi Enomoto  <atsushi@ximian.com>
325
326         * XmlMappingAccess.cs : new type in 2.0 RTM.
327         * XmlCodeExporter.cs, SoapCodeExporter.cs,
328           MapCodeGenerator.cs,
329           XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
330           SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
331           XmlMemberMapping.cs, XmlSerializationReader.cs :
332           several 2.0 API fixes from betas to RTM.
333
334 2006-06-07  Lluis Sanchez Gual  <lluis@novell.com>
335
336         * XmlTypeMapMember.cs: Added GlobalIndex property.
337         * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
338           property.
339         * SerializationCodeGenerator.cs:
340         * XmlSerializationWriterInterpreter.cs:
341         * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
342           Index to get/set the values from the input array, since some Index
343           values are shared between attribute and element members. Fixes
344           bug #78562.
345
346 2006-05-30  Atsushi Enomoto  <atsushi@ximian.com>
347
348         * SerializationCodeGenerator.cs,
349           XmlSerializerReaderInterpreter.cs : handle CDATA section as text
350           node. Fixed bug #78536.
351
352 2006-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
353
354         * XmlCodeExporter.cs: Added bool argument to GenerateClass and 
355         GenerateEnum methods that specifies whether we're dealing with a type
356         for a top-level element. In GenerateClass, do not always add Namespace
357         argument for XmlRootAttribute if isTopLevel is false, and do not
358         emit XmlRootAttribute if isTopLevel is false and no arguments have been
359         added.
360         * SoapCodeExporter.cs: Added bool argument to GenerateClass and
361         GenerateEnum methods.
362         * MapCodeGenerator.cs: Added bool argument to GenerateClass and 
363         GenerateEnum methods.
364
365 2006-05-03  Lluis Sanchez Gual  <lluis@novell.com>
366
367         * SerializationCodeGenerator.cs: Allow generating serializer for
368           reading an XmlElement or XmlDocument as root element.
369           Properly generate jagged array creation.
370
371 2006-04-28  Atsushi Enomoto  <atsushi@ximian.com>
372
373         * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
374
375 2006-04-26  Gert Driesen  <drieseng@users.sourceforge.net>
376
377         * SerializationCodeGenerator.cs: For flag enums, we should split on all
378         whitespace chars instead of only on blanks.
379         * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
380         constant name(s) to integral enum value.
381
382 2006-04-26  Gert Driesen  <drieseng@users.sourceforge.net>
383
384         * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
385         as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
386
387 2006-04-24  Gert Driesen  <drieseng@users.sourceforge.net>
388
389         * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
390         allow XML Schema items to be added to its parent in the same order
391         as MS.NET (schema elements before complex types, ...). 
392
393 2006-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
394
395         * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
396         GenerateProperties. Use full type name for XML serialization attributes
397         instead of shortcut (without Attribute suffix). Always add Namespace
398         argument for XmlRootAttribute on classes. Added IsNullable argument for
399         XmlRootRootAttribute on classes. For attribute members, only output
400         Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
401         ctor that takes CodeGenerationOptions.
402         * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
403         CodeGenerationOptions.
404         * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
405         profile, emit GeneratedCodeAttribute, SerializableAttribute, 
406         DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
407         To match MS.NET, emit attribute members before element members.
408         * XmlReflectionImporter.cs: Enums are never nullable.
409         * XmlSchemaImporter.cs: Set IsNullable on map using value of
410         XmlSchemaElement.IsNillable. Added LocateElement overload that takes
411         XmlSchemaElement.
412
413 2006-04-15  Gert Driesen  <drieseng@users.sourceforge.net>
414
415         * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
416         to XmlReflectionImporter and SoapReflectionImporter to keep from
417         always ending up with the XSD type that directly maps to the CLR type.
418         * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
419         Type. This improves performance by avoiding the use of 
420         TypeTranslator.GetTypeData for types imported from a schema and fixes
421         bug #77907.
422         * SoapReflectionImporter.cs: Same.
423
424 2006-04-11  Lluis Sanchez Gual  <lluis@novell.com>
425
426         * XmlSchemas.cs: In 1.1, don't allow adding two schemas
427         with the same namespaces. This is allowed in 2.0. Fixed
428         the Find() method to cope with this case. Based on a patch
429         by David Jung.
430
431 2006-03-22  Gert Driesen  <drieseng@users.sourceforge.net>
432
433         * XmlReflectionImporter.cs: Throw NotSupportException instead of
434         InvalidOperationException (IOE) if void is specified as type in
435         ImportTypeMapping. To match MS.NET, surround importing of type in 
436         try/catch block, and wrap any IOE in another IOE adding information 
437         on the type that was being reflected. In CreateTypeMapping, surround
438         creating of map member in try/catch block, and wrap any IOE in another
439         IOE adding information on the member that was being reflected. 
440         Modified exception message for missing enumeration value to match
441         MS.NET. In ImportTextElementInfo, throw IOE if Type is set in 
442         XmlTextAttribute, and it differs from type of reflected member when
443         schema type of member is primitive or enum. Fixed bug #77591.
444
445 2006-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
446
447         * XmlSchemaExporter.cs: Import namespace of schema generated for
448         non-xsd primitive. Do not set zero-length TargetNamespace to avoid
449         emitting empty targetNamespace attribute in generated schema.
450         * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
451         primitives.
452
453 2006-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
454
455         * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
456         Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
457         serialization of integral value to enum constant name, and made sure
458         the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
459         throw InvalidOperationException if no matching enum constant exists.
460         In EnumMap ctor, initialize arrays holding XML names, enum names and
461         enum values.
462         * XmlSerializationReaderInterpreter.cs: Pass full type name to
463         EnumMapping.GetEnumName for construction of exception message.
464         * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
465         and InvalidCastException in another InvalidOperationException to match
466         MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
467         and the inner exception for a TargetInvocationException in an
468         InvalidOperationException to match MSFT.
469         * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
470         XmlCustomFormatter.FromEnum in order to also support serialization
471         integral value to enum constant name. In 2.0 profile, throw
472         InvalidOperationException if numeric value cannot be serialized into
473         an enum constant value. In GenerateSingleEnumValue, no longer attempt
474         to parse unknown constant value but instead report it as
475         InvalidOperationException. Use string.Length instead of "" comparison
476         to check whether a string is empty. Fixed compiler warnings in 
477         generated code (possible empty statement).
478         * XmlSerializationWriterInterpreter.cs: Pass full type name to 
479         EnumMap.GetXmlName.
480         * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
481         to allow it to be used in exception messages.
482         * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
483         enum fields. Use IsDefined instead of GetCustomAttributes for checking
484         if a certain attribute is defined. Use integral value of enum constant
485         in EnumMapMember ctor.
486         * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
487         enum fields. Use IsDefined instead of GetCustomAttributes for checking
488         if a certain attribute is defined. Use integral value of enum constant
489         in EnumMapMember ctor.
490
491 2006-03-07  Lluis Sanchez Gual  <lluis@novell.com>
492
493         * XmlReflectionImporter.cs: Ignore the element namespace if
494           the schema form is set to Unqualified. Fixes bug #75019.
495
496 2006-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
497
498         * SerializationCodeGenerator.cs: Omit return statement in ReadObject
499         method if GenerateReadListElement returns null. Fixes bug #77588.
500
501 2006-02-21  Lluis Sanchez Gual  <lluis@novell.com> 
502
503         * XmlSerializer.cs: Fix the previous fix.
504         
505 2006-02-21  Lluis Sanchez Gual  <lluis@novell.com>
506
507         * XmlSerializer.cs: Added option to avoid falling back to the
508         interpreted serializer if the code generator fails. To be used
509         in the test suite.
510
511 2006-02-16  Gert Driesen  <drieseng@users.sourceforge.net>
512
513         * TypeData.cs: Fixed the following issues when dealing with Array
514         SchemaType:
515         - if a type implements IDictionary, throw a NotSupportedException
516         - if a type implements ICollection, then an Add method must exist
517           which takes a single argument of a type to which the listitem type 
518           is assignable (meaning a base type or an interface that it 
519           implements). If such a method does not exist, then throw an
520           InvalidOperationException.
521         - if a type implements IEnumerable, then the listitem type is 
522           determined by the type of the Current property of the (IEnumerator)
523           type returned by the GetEnumerator() method or the private 
524           implementation of IEnumerable.GetEnumerator(). If there's no 
525           public Current property on the IEnumerator, then System.Object 
526           is assumed as listitem type. Similar as for types implementing
527           ICollection, an Add method must exist which takes a single argument 
528           of a type to which the listitem type is assignable (meaning a base
529           type or an interface that it implements). If such a method does not
530           exist, then throw an InvalidOperationException.
531
532 2006-02-16  Lluis Sanchez Gual  <lluis@novell.com>
533
534         * XmlSchemaImporter.cs: Support importing complex types with
535           simple content based on enums. Fixes bug #76848.
536
537 2006-02-11  Gert Driesen  <drieseng@users.sourceforge.net>
538
539         * SoapAttributeAttribute.cs: Set eol-style to CRLF.
540         * SoapElementAttribute.cs: Same.
541         * SoapEnumAttribute.cs: Same.
542         * SoapIncludeAttribute.cs: Same.
543         * SoapSchemaMember.cs: Same.
544         * SoapTypeAttribute.cs: Same.
545         * XmlArrayAttribute.cs: Same.
546         * XmlAttributeAttribute.cs: Same.
547         * XmlChoiceIdentifierAttribute.cs: Same.
548         * XmlElementAttribute.cs: Same.
549         * XmlEnumAttribute.cs: Same.
550         * XmlRootAttribute.cs: Same.
551         * XmlSchemaImporter.cs: Same.
552         * XmlTextAttribute.cs: Same.
553         * XmlTypeAttribute.cs: Same.
554         * XmlTypeMapping.cs: Same.
555         * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
556         * CodeIdentifiers.cs: Same.
557         * SoapCodeExporter.cs: Same.
558         * SoapAttributes.cs: Same.
559         * SoapIgnoreAttribute.cs: Same.
560         * SoapSchemaImporter.cs: Same.
561         * TypeMember.cs: Same.
562         * UnreferencedObjectEventArgs.cs: Same.
563         * XmlAnyAttributeAttribute.cs: Same.
564         * XmlAnyElementAttributes.cs: Same.
565         * XmlArrayItemAttributes.cs: Same.
566         * XmlAttributeEventArgs.cs: Same.
567         * XmlCodeExporter.cs: Same.
568         * XmlElementAttributes.cs: Same.
569         * XmlElementEventArgs.cs: Same.
570         * XmlIgnoreAttribute.cs: Same.
571         * XmlNamespaceDeclarationsAttribute.cs: Same.
572         * XmlNodeEventArgs.cs: Same.
573         * XmlReflectionMember.cs: Same.
574         * XmlSchemas.cs: Same.
575         * XmlSerializerNamespaces.cs: Same.
576         * XmlTypeMapMemberElement.cs: Set eol-style to native.
577
578 2006-02-10  Gert Driesen  <drieseng@users.sourceforge.net>
579
580         * CodeExporter.cs: Set eol-style to native.
581         * CodeGenerationOptions.cs: Same.
582         * CodeIdentifier.cs: Same.
583         * ImportContext.cs: Same.
584         * IXmlSerializable.cs: Same.
585         * IXmlSerializerImplementation.cs: Same.
586         * IXmlTextParser.cs: Same.
587         * MapCodeGenerator.cs: Same.
588         * ReflectionHelper.cs: Same. Fixed line endings.
589         * SchemaImporter.cs: Same.
590         * SchemaImporterExtensionCollection.cs: Same.
591         * SchemaImporterExtension.cs: Same.
592         * SchemaTypes.cs: Same.
593         * SerializationCodeGeneratorConfiguration.cs: Same.
594         * SerializationCodeGenerator.cs: Same.
595         * SerializationSource.cs: Same.
596         * SoapReflectionImporter.cs: Same.
597         * SoapSchemaExporter.cs: Same.
598         * TypeData.cs: Same.
599         * TypeTranslator.cs: Same.
600         * UnreferencedObjectEventHandler.cs: Same.
601         * XmlAnyElementAttribute.cs: Same.
602         * XmlArrayItemAttribute.cs: Same.
603         * XmlAttributeEventHandler.cs: Same.
604         * XmlAttributeOverrides.cs: Same.
605         * XmlAttributes.cs: Same.
606         * XmlDeserializationEvents.cs: Same.
607         * XmlElementEventHandler.cs: Same.
608         * XmlIncludeAttribute.cs: Same.
609         * XmlMapping.cs: Same.
610         * XmlMemberMapping.cs: Same.
611         * XmlMembersMapping.cs: Same.
612         * XmlNodeEventHandler.cs: Same.
613         * XmlReflectionImporter.cs: Same.
614         * XmlSchemaExporter.cs: Same.
615         * XmlSchemaProviderAttribute.cs: Same.
616         * XmlSerializationCollectionFixupCallback.cs: Same.
617         * XmlSerialiationFixupCallback.cs: Same.
618         * XmlSerializationGeneratedCode.cs: Same.
619         * XmlSerializationReadCallback.cs: Same.
620         * XmlSerializationReader.cs: Same.
621         * XmlSerializationReaderInterpreter.cs: Same.
622         * XmlSerializationWriteCallback.cs: Same.
623         * XmlSerializationWriterInterpreter.cs: Same.
624         * XmlSerializerAssemblyAttribute.cs: Same.
625         * XmlSerializer.cs: Same.
626         * XmlSerializerFactory.cs: Same.
627         * XmlSerializerVersionAttribute.cs: Same.
628         * XmlTypeMapElementInfo.cs: Same.
629         * XmlTypeMapMemberAttribute.cs: Same.
630         * XmlTypeMapMember.cs: Same.
631         * XmlTypeMapMemberNamespaces.cs: Same.
632
633 2006-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
634
635         * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
636         if map represents enum. Fixes bug #77501.
637
638 2006-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
639
640         * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
641         CreateInvalidEnumValueException. Set eol-style to native.
642         * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
643         enum for which string value must be created. Set eol-style to native.
644         Modified FromEnum to behave more like MSFT's implementation:
645         - treat value as bit field.
646         - no longer return empty string if the value matches an id for which there's no corresponding
647         name.
648         - if one of the ids has value 0 and there's a match for the enum value
649         (with a zero length XML name) or the enum value is 0, then return the 
650         corresponding XML for the id with value 0.
651         - in 2.0 profile, throw InvalidOperationException if no match is found
652         for (part of) the enum value.
653         Modifies ToEnum to match the MSFT implementation (as described in
654         .NET 2.0 SDK):
655         - Expect hashtable containing enum names as key, and corresponding
656         integral numbers as value.
657         - Do not report exception for whitespace-only value.
658         - Support space (MS docs are not clear about this) delimited list 
659         of names.
660         - typeName is only used to construct exception message.
661
662 2006-02-09  Lluis Sanchez Gual  <lluis@novell.com>
663
664         * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
665         looking for the correct element definition for a member,
666         based on the value type, take into account subypes of the
667         declared types. Fixes bug #77447.
668
669 2006-02-07  Konstantin Triger <kostat@mainsoft.com>
670
671         * XmlReflectionImporter.cs: remove local name encoding for enums.
672
673 2006-01-08  Gert Driesen  <drieseng@users.sourceforge.net>
674
675         * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
676
677 2006-01-07  Gert Driesen  <drieseng@users.sourceforge.net>
678
679         * XmlTypeMapping.cs: Fixed line endings.
680         * TypeTranslator.cs: Fixed line endings.
681
682 2005-12-07  Lluis Sanchez Gual  <lluis@novell.com>
683
684         * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
685         collection, don't create a new collection if the property already has a 
686         collection instance.
687         * SerializationCodeGenerator.cs: same as above. Also return an empty
688         string for flag enum default values.
689
690 2005-12-06  Konstantin Triger  <kostat@mainsoft.com>
691
692         * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
693
694 2005-12-05  Lluis Sanchez Gual  <lluis@novell.com>
695
696         * XmlSerializationReaderInterpreter.cs:
697         * SerializationCodeGenerator.cs: When deserializing a collection,
698         don't create a new collection if the property already has a 
699         collection instance. This does not apply to arrays. Changed how nullabe
700         array properties are set. Setting IsNullable=false to the property means
701         that it won't be set if the read array is null (so, if the property
702         already has a value, it will be kept).
703         Another change is that can't never be null (only arrays can).
704
705 2005-12-01  Lluis Sanchez Gual  <lluis@novell.com>
706
707         * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
708         a cli array type, consider it refering to the type of array elements.
709         This fixes bug #76860. Also added some locking.
710
711 2005-11-27   Konstantin Triger <kostat@mainsoft.com>
712
713         * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
714                 export non-xsd primitive types.
715
716 2005-11-24  Vladimir Krasnov  <vladimirk@mainsoft.com>
717         
718         * XmlTypeMapping.cs: fixed GetXmlName method, added difference
719         of value serialization of flags and non-flags enums
720
721 2005-11-23  Konstantin Triger <kostat@mainsoft.com>
722
723         * XmlSchemaExporter.cs: do not import empty namespaces.
724
725 2005-11-17  Vladimir Krasnov  <vladimirk@mainsoft.com>
726         
727         * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement 
728         method, ReadEndElement should check XmlNodeType.
729         * XmlTypeMapping.cs: fixed GetXmlName method, it should not
730         write zero as default enum value.
731
732 2005-11-16  Vladimir Krasnov  <vladimirk@mainsoft.com>
733         
734         * XmlReflectionImporter.cs: fixed field order returned by 
735         reflection in method GetReflectionMembers. TARGET_JVM only.
736
737 2005-11-07  Lluis Sanchez Gual  <lluis@novell.com>
738
739         * XmlSchemaImporter.cs: Added support for restrictions with
740         embedded simple type definitions. 
741
742 2005-11-04  Atsushi Enomoto  <atsushi@ximian.com>
743
744         * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
745           sys.xml.schema corcompare diffs.
746
747 2005-10-17  Lluis Sanchez Gual  <lluis@novell.com>
748
749         * SerializationCodeGenerator.cs: 
750         * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
751         need to be all XmlElments. Fix by Atsushi for bug #76288.
752
753 2005-09-26  Lluis Sanchez Gual  <lluis@novell.com>
754
755         * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
756         In ListMap.FindElement, take into account the ChoiceMember
757         if set.
758         * SerializationCodeGenerator.cs:
759         * XmlSerializationReaderInterpreter.cs: For lists with a choice
760         member, fill the member with the corresponding enum values.
761         * XmlReflectionImporter.cs: Properly reflect the choice member
762         when applied to a list.
763         * XmlSerializationWriterInterpreter.cs: Track class changes.
764         * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
765         All this fixes bug #76203.
766
767 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com>
768
769         * SoapReflectionImporter.cs: Check the correct defaults
770         for attributes.
771
772 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com>  
773
774         * SerializationSource.cs: Fix nullref.
775         * XmlReflectionImporter.cs: When registering a type using
776         IncludeType(), make sure it is added as a subtype and the
777         map for typeof(object) if it has already been imported.
778         Fixes bug #76049.
779
780 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com> 
781
782         * XmlSerializationWriter.cs: Also internally serialize
783         arrays of object (see previous change).
784
785 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com>
786
787         * XmlSerializationWriter.cs: Properly serialize arrays
788         of primitive types when not explicitely specified in
789         a container class. Based on a patch by Konstantin Triger.
790         Fixes bug #75986. 
791
792 2005-08-24  Lluis Sanchez Gual  <lluis@novell.com>
793
794         * TypeData.cs: Reset the hasPublicConstructor flag when the
795         type is an interface.
796         * XmlSerializationWriterInterpreter.cs: Get the Count property
797         from the object type instead of the property type (it didn't
798         work for IList). 
799         * ReflectionHelper.cs: In CheckSerializableType, don't trow
800         if the type is a collection interface. All this fixes
801         bug #75855.
802
803 2005-08-06  Lluis Sanchez Gual  <lluis@novell.com>
804
805         * XmlTypeMapping.cs: Added null check.
806
807 2005-08-05  Lluis Sanchez Gual  <lluis@novell.com>
808
809         * XmlTypeMapping.cs: Added ListMembers property that returns
810         members which are collections.
811         * SerializationCodeGenerator.cs:
812         * XmlSerializationReaderInterpreter.cs: Initialize collection
813         members to an empty collection by default. Fixes bug #75662.
814
815 2005-08-01  Gert Driesen  <drieseng@users.sourceforge.net>
816
817         * XmlMapping.cs: API compatibility fixes. Ctor is not protected
818         in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
819
820 2005-07-31  Gert Driesen  <drieseng@users.sourceforge.net>
821
822         * SoapAttributeAttribute.cs: Return zero-length string if 
823         AttributeName or DataType are null.
824         * SoapEnumAttribute.cs: Return zero-length string if Name is null.
825         * SoapIncludeAttribute.cs: Avoid using property in ctor.
826         * SoapSchemaMember.cs: Return zero-length string if MemberName is
827         null. MemberType should be XmlQualifiedName.Empty by default.
828         * SoapTypeAttribute.cs: Return zero-length string if TypeName is
829         null. Avoid using property in ctor.
830         * XmlArrayAttribute.cs: Return zero-length string if ElementName is
831         null. Avoid using property in ctor.
832         * XmlArrayItemAttribute.cs: IsNullable must be false by default.
833         Return zero-length string if DataType or ElementName are null. Avoid
834         using property in ctor.
835         * SoapElementAttribute.cs: Return zero-length string when DataType
836         or ElementName are null. Avoid using property in ctor.
837         * XmlAnyElementAttribute.cs: Return zero-length string when Name is
838         null. Avoid using property in ctor.
839         * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
840         zero-length string if AttributeName or DataType are null.
841         * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
842         MemberName is null.
843         * XmlElementAttribute.cs: Return zero-length string when DataType or
844         ElementName are null. Avoid using property in ctor.
845         * XmlEnumAttribute.cs: Avoid using property in ctor.
846         * XmlIncludeAttribute.cs: Avoid using property in ctor.
847         * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
848         can no longer be null. Use check for zero-length string to determine
849         whether they are set. Corrected exception message when DataType is
850         set for complex type.
851         * XmlRootAttribute.cs: Return zero-length string if DataType or
852         ElementName are null. Avoid using property in ctor.
853         * XmlTextAttribute.cs: Return zero-length string if DataType is null.
854         * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
855
856 2005-07-14  Lluis Sanchez Gual  <lluis@novell.com>
857
858         * SerializationCodeGenerator.cs: In the generated serializer always
859         use the Object equality operator when comparing objects to serialize
860         to null, since those objects may have the equality operator
861         overloaded. This fixes bug #75543.
862
863 2005-07-01  Lluis Sanchez Gual  <lluis@novell.com>
864
865         * XmlCustomFormatter.cs: Properly read/write duration values.
866
867 2005-06-28  Lluis Sanchez Gual  <lluis@novell.com>
868
869         * XmlSerializer.cs: Fix race between XmlSerializer and the
870         serializer generator.
871
872 2005-06-14  Lluis Sanchez Gual  <lluis@novell.com>
873
874         * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
875         getting the real xml type name of a member.
876         * XmlSerializationWriterInterpreter.cs: Use that new property
877         to get the type name of primitive types. This should fix bug #75180.
878
879 2005-06-07  Lluis Sanchez Gual  <lluis@novell.com>
880
881         * SerializationCodeGenerator.cs: When reading members by order,
882         call a MoveToContext after each member read. In the fixup method
883         don't cast returned values if it is reading an object array.
884         
885         * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
886         being imported is a primitive type, create a wrapper class that
887         inherits from the provided one. This fixes bug #68809.
888         
889         * XmlSerializationReader.cs: Properly report unreferenced objects.
890         Created an overload of ReadTypedPrimitive that reports elements of
891         unknown type. Implemented Referenced(). 
892
893 2005-05-30  Lluis Sanchez Gual  <lluis@novell.com>
894
895         * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
896         set to the default namespace. This fixes bug #73035.
897
898 2005-05-12  Lluis Sanchez Gual  <lluis@novell.com>
899
900         * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
901         types indirectly imported by this method use the same namespace. 
902
903 2005-05-09  Atsushi Enomoto  <atsushi@ximian.com>
904
905         * TypeTableEntry.cs : removed obsolete code.
906
907 2005-04-26  Lluis Sanchez Gual  <lluis@novell.com>
908
909         * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
910         properties which are read only. Fixes bug #74723.
911
912 2005-04-14  Lluis Sanchez Gual  <lluis@novell.com>
913
914         * XmlReflectionImporter.cs:
915         * SoapReflectionImporter.cs:
916         * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
917         where needed. Based on a patch by Konstantin Triger. 
918
919 2005-04-12  Lluis Sanchez Gual  <lluis@novell.com>
920
921         * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
922         * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
923         export the schema that it defines. In ImportNamespace, removed
924         check for default namespace, since it may be included from a non
925         default namespace.
926         * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
927         types. All this based on a patch by Konstantin Triger.
928         
929         * SerializationCodeGenerator.cs:
930         * XmlMapping.cs:
931         * XmlSerializationReaderInterpreter.cs:
932         * SoapCodeExporter.cs:
933         * XmlTypeMapMemberAttribute.cs:
934         * XmlSerializationReader.cs:
935         * XmlCodeExporter.cs: Fixed some warnings.
936
937 2005-04-10  Andrew Skiba  <andrews@mainsoft.com>
938
939         * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
940
941 2005-04-03  Andrew Skiba  <andrews@mainsoft.com>
942
943         * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
944         code generation.
945
946 2005-03-30  Lluis Sanchez Gual  <lluis@novell.com>
947
948         * SerializationCodeGenerator.cs: 
949         * XmlSerializationReaderInterpreter.cs: If the element being read is
950         bound to a choice member, set the corresponding value.
951         * XmlTypeMapMember.cs: Added helper SetValue method.
952         * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
953         since now stores the enum value.
954         * XmlReflectionImporter.cs: Properly import choice values.
955         * XmlTypeMapMemberElement.cs: Added setter for the choice.
956
957 2005-03-29  Lluis Sanchez Gual  <lluis@novell.com>
958
959         * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
960         This fixes bug #73901 and should fix #70384.
961         * XmlSerializationReader.cs: When reading an object element, return
962         an Object instance if the element has no children. This fixes bug #73974.
963         * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
964         type (it is written as an element with those nodes as children). 
965
966 2005-03-08  Lluis Sanchez Gual <lluis@novell.com>
967
968         * XmlSchemaImporter.cs: Support importing schemas that define
969         extra types in the standard xml schema namespace. When using encoded
970         format, support the primitive types defined by the SOAP encoding
971         namespace.
972
973 2005-03-04  Lluis Sanchez Gual <lluis@novell.com>
974
975         * ReflectionHelper.cs: Avoid endless loop.
976         * XmlSchemas.cs: Added null check. Patches from MainSoft.
977
978 2005-02-07  Lluis Sanchez Gual  <lluis@novell.com>
979
980         * XmlSerializationReader.cs: After reading an href element, skip the
981         whole element (it may not be an empty element). This fixes bug #72265.
982
983 2005-01-25  Lluis Sanchez Gual  <lluis@novell.com>
984
985         * XmlSchemaImporter.cs: When importing a default value of type enum,
986         translate it from the schema value to the clr value.
987
988 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
989
990         * XmlSerializer.cs: only print the results if there's an error
991         compiling.
992
993 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
994
995         * SerializationCodeGenerator.cs: don't use _config if it has not been
996         assigned.
997
998 2005-01-18  Lluis Sanchez Gual  <lluis@novell.com>
999
1000         * XmlReflectionImporter.cs: Don't check the property type if it has
1001         an [XmlIgnore] attribute. This fixes bug #71332.
1002
1003 2005-01-14  Atsushi Enomoto  <atsushi@ximian.com>
1004
1005         * SerializationCodeGenerator.cs,
1006           XmlSerializationWriterInterpreter.cs : exchanged attribute
1007           serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
1008           xmlns attributes in XmlAnyAttribute are not written.
1009
1010 2005-01-12  Atsushi Enomoto  <atsushi@ximian.com>
1011
1012         * SerializationCodeGeneratorConfiguration.cs,
1013           SerializationCodeGenerator.cs : Added some generation configuration:
1014                 <generateAsInternal>
1015                         write custom reader/writer as internal classes.
1016                 <noreader>, <nowriter>
1017                         They make generation of reader and/or writer optional.
1018         * XmlSerializerNamespaces.cs :
1019           Now it uses ListDictionary instead of Hashtable.
1020         * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
1021           written unless there is already the same prefix-ns mapping.
1022
1023 2005-01-12  Lluis Sanchez Gual  <lluis@novell.com>
1024
1025         * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
1026         * XmlSchemaImporter.cs: When importing a base type of a complex type,
1027         make sure that the base class is always imported as a class and not
1028         as an array. If it has been imported as array, import it again.
1029         This fixes bug #70839. Other minor fixes as well.
1030         * XmlSerializationWriter.cs: Fixed warning.
1031
1032 2004-12-09  Lluis Sanchez Gual  <lluis@novell.com>
1033
1034         * SerializationCodeGenerator.cs: Yet another generation fix.
1035
1036 2004-12-09  Lluis Sanchez Gual <lluis@novell.com>
1037
1038         * SerializationCodeGenerator.cs: Fixed generation of enum literals.
1039
1040 2004-12-09  Lluis Sanchez Gual  <lluis@novell.com>
1041
1042         * XmlReflectionMember.cs: Added DeclaringType member.
1043         * XmlReflectionImporter.cs: When importing fields that belong to a
1044         base class, use the xml namespace of the base map for the member.
1045         This fixes bug #70309.
1046
1047 2004-11-30  Lluis Sanchez Gual  <lluis@novell.com>
1048
1049         * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
1050         compilation warnings.
1051
1052 2004-11-24  Lluis Sanchez Gual  <lluis@novell.com>
1053
1054         * SerializationSource.cs: Made SerializationSource abstract, and
1055         renamed Equals to BaseEquals to avoid missing GetHashCode warning
1056         (it does not really make sense in this case).
1057         * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
1058         XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1059         XmlSerializationReader.cs: Fixed warnings.
1060
1061 2004-10-19  Atsushi Enomoto  <atsushi@ximian.com>
1062
1063         * XmlSerializationWriter.cs : When namespace is an empty string,
1064           XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
1065           such case.
1066
1067 2004-10-01  Lluis Sanchez Gual  <lluis@novell.com>
1068
1069         * MapCodeGenerator.cs: When the Object type is exported, export all
1070           derived maps. This was done in IncludeMetadata, but this method is
1071           not called by the xsd tool.
1072         * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
1073           attribute for primitive types and arrays.
1074         * XmlSchemaImporter.cs: Only export all object-derived maps if the
1075           Object type is explicitly referenced by an element.
1076         * XmlSerializationWriter.cs: Minor fix.
1077
1078 2004-09-28  Lluis Sanchez Gual  <lluis@novell.com>
1079
1080         * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
1081           This fixes bug #66877.
1082
1083 2004-09-21  Lluis Sanchez Gual  <lluis@novell.com>
1084
1085         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1086           when reading a primitive value in encoded format using
1087           ReadReferencingElement, provide the type name and namespace
1088           since the xsi type may not be present in the xml element. This
1089           fixes bug #65929.
1090
1091 2004-09-15  Lluis Sanchez Gual  <lluis@novell.com>
1092
1093         * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
1094           ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
1095         * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
1096           ImportIncludedTypes to the end, to make sure that the current map has all
1097           needed data before derived maps are constructed.
1098         * XmlSchemaExporter.cs: Generate the base class of simple types that are
1099           not primitive types. Set the correct value for IsMixed in extended types.
1100         * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
1101           the base class of a simple type doesn't need to be a xsd type.
1102           All those patches fix bug #65654.
1103
1104 2004-09-03  Lluis Sanchez Gual  <lluis@novell.com>
1105
1106         * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
1107           Normalization==true by default.
1108
1109 2004-09-02  Lluis Sanchez Gual  <lluis@novell.com>
1110
1111         * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs: 
1112           In CheckSerializableType, add the option of ignoring types with private
1113           constructors. Some kind of lists can be deserialized
1114           even if the constructor is private. See bug #61464.
1115         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1116           Before creating a list, check that it has a public constructor.
1117         * TypeData.cs: Added HasPublicConstructor property.
1118
1119 2004-09-01  Lluis Sanchez Gual  <lluis@novell.com>
1120
1121         * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
1122           value list serialization.
1123         * XmlSchemaImporter.cs: Added some null checks.
1124
1125 2004-08-25  Lluis Sanchez Gual  <lluis@novell.com>
1126
1127         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
1128           When deserializing an encoded method response, assign to the return value
1129           the first element of the message, whatever it is. The return type doesn't
1130           need to be Object, it seems to be true for all return types.
1131           
1132 2004-07-26  Lluis Sanchez Gual  <lluis@ximian.com>
1133
1134         * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
1135           no need to add it after the call.
1136         * SoapSchemaImporter.cs: Implemented 2.0 constructors.
1137
1138 2004-07-23  Lluis Sanchez Gual  <lluis@novell.com>
1139
1140         * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
1141         * ImportContext.cs: Implemented.
1142         * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
1143           options for 2.0. Implemented support for generating properties instead of
1144           fields.
1145         * XmlSchemaImporter.cs: Added support for sharing types.
1146
1147 2004-07-15  Lluis Sanchez Gual  <lluis@novell.com>
1148
1149         * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
1150           xsd type is not part of the last schema specification, but the google api
1151           uses it and ms.net accepts it.
1152
1153 2004-07-12  Lluis Sanchez Gual  <lluis@ximian.com>
1154
1155         * ReflectionHelper.cs: Fixed bug when registering a map as exported.
1156           Thanks to Juan C. Olivares.
1157
1158 2004-07-10  Lluis Sanchez Gual  <lluis@ximian.com>
1159
1160         * CodeExporter.cs: Added private constructor.
1161         * CodeGenerationOptions.cs: Set the correct enum values.
1162         * CodeIdentifier.cs: Added private constructor.
1163         * SchemaImporter.cs: Added internal constructor.
1164         * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
1165         * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
1166         * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
1167           XmlSerializerVersionAttribute.cs: Set correct attribute usage.
1168         * XmlSerializationReader.cs: Added missing setter for DecodeName.
1169
1170 2004-07-08  Lluis Sanchez Gual  <lluis@ximian.com>
1171
1172         * XmlSerializer.cs: Fix fix.
1173
1174 2004-07-08  Lluis Sanchez Gual  <lluis@ximian.com>
1175
1176         * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
1177         * ReflectionHelper.cs: New method for generating map keys.
1178         * SerializationCodeGenerator.cs: Added support for generating the serializer
1179           contract class, needed for 2.0.
1180         * SerializationSource.cs: Use Type[] instead of ArrayList for storing
1181           extra types.
1182         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types 
1183           as Type[]. Added check that makes sure that enums being serialized are
1184           public.
1185         * XmlMapping.cs: Added internal GetKey method.
1186         * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
1187           Added first bits to support loading of serializers from pre-generated
1188           assemblies.
1189         * XmlSerializerFactory.cs: Mostly implemeted.
1190
1191 2004-07-02  Lluis Sanchez Gual  <lluis@ximian.com>
1192
1193         * CodeIdentifier.cs: Removed constructor for NET_2_0.
1194         * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs, 
1195           XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
1196           XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
1197           XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
1198           XmlSerializerNamespaces.cs: Added 2.0 stubs.
1199         * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
1200         * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
1201           ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
1202           SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
1203           XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
1204           XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
1205           XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
1206
1207 2004-07-02  Lluis Sanchez Gual  <lluis@ximian.com>
1208
1209         * SerializationCodeGenerator.cs: Generate check that the object being 
1210           serialized has a known type. Little cast fix.
1211         * XmlCustomFormatter.cs: Little fix in Single conversion.
1212
1213 2004-07-01  Lluis Sanchez Gual  <lluis@ximian.com>
1214
1215         * TypeData.cs: In the constructor, set the correct xml type name if the
1216           type is an array (for example, instead of StringCollection, use
1217           ArrayOfString).
1218
1219 2004-06-22  Lluis Sanchez Gual  <lluis@ximian.com>
1220
1221         * ReflectionHelper.cs: Correctly detect private types.
1222         * XmlCodeExporter.cs: Implemented missing method.
1223         * XmlSchemaImporter.cs: Allow import of root primitive types.
1224
1225 2004-06-18  Atsushi Enomoto  <atsushi@ximian.com>
1226
1227         * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
1228           SerializationCodeGenerator.cs, SerializationSource.cs,
1229           TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
1230           XmlSerializationReader.cs, XmlSerializationWriter.cs,
1231           XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
1232           : Globalization fixes.
1233             In XmlCustomFormatter.GenerateToXmlString() time was not
1234             generated correctly.
1235             Replaced all CRLF XmlAttributeOverrides.cs into LF.
1236
1237 2004-06-13  Gert Driesen <drieseng@users.sourceforge.net>
1238
1239         * XmlSerializationWriter.cs: changed signature of protected method
1240         FromByteArrayBase64 to match MS.NET
1241
1242 2004-06-10  Lluis Sanchez Gual <lluis@ximian.com>
1243
1244         * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
1245           attributes that MS.NET generates.
1246         * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
1247           same reader/writer.
1248         * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
1249         * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
1250           MS.NET member ordering. Patch by David Taylor.
1251         * XmlSchemaImporter.cs: When generating a choice member, set the ignore
1252           flag. The generated enum must also not be included in the schema.
1253         * XmlTypeMapMember.cs: Added ignore flag.
1254         * XmlTypeMapping.cs: The AttributeMembers property now returns the 
1255           attributes in the correct order.
1256
1257 2004-06-03  Gert Driesen <drieseng@users.sourceforge.net>
1258
1259         * XmlSerializationReader.cs: added missing protected members
1260         to fix API compatibility with MS.NET
1261         * XmlSerializationWriter.cs: added missing protected members
1262         to fix API compatibility with MS.NET
1263
1264 2004-06-02  Lluis Sanchez Gual <lluis@ximian.com>
1265
1266         * XmlSerializationReader.cs: Support schamea instance namespaces other than
1267           the 2001 one when reading the xsi type.
1268         * MapCodeGenerator.cs: Take into account that the root namespace and element
1269           name may have changed from one export to another of the same type. In
1270           this case the class attributes need to be regenerated.
1271         * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
1272           not ElementName. Idem for namespace.
1273         * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
1274         * XmlRootAttribute.cs: Default value for nullable is true.
1275         * XmlSchemaImporter.cs: The root name for a class may change in some
1276           scenarios (for example, when the type is initially exported as part of
1277           another type and later exported as a root type).
1278         * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
1279           found using the standard namespace, try getting the type using
1280           the 2000/10 and 1999 namespaces.
1281         * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
1282
1283 2004-05-26  Lluis Sanchez Gual <lluis@ximian.com>
1284
1285         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1286           In encoded format, primitive types can be null. Read them using
1287           ReadReferencingElement, that already checks for the null tag.
1288
1289 2004-05-25  Lluis Sanchez Gual <lluis@ximian.com>
1290
1291         * XmlSerializationReader.cs: Check for empty element when reading an array
1292           element. This fixes bug #59003. Thanks Atsushi!
1293
1294 2004-05-07  Lluis Sanchez Gual <lluis@ximian.com>
1295
1296         * XmlSerializationWriter.cs: Implemented some missing methods.
1297           In .NET 1.0, encoded null elements use the attribute null="1", while in
1298           1.1 the attribute is nil="true".
1299         * XmlTypeMapping.cs: Little fix for nested classes.
1300
1301 2004-05-07  Lluis Sanchez Gual <lluis@ximian.com>
1302
1303         * XmlReflectionImporter.cs: Don't reset the internal tables at every
1304           ImportMembersMapping call. This fixes bug #58112. The problem is that
1305           it imported two different arrays (only different in the array item
1306           namespace) with the same name. Not sure what was this Reset needed for,
1307           everyting seems to work without it.
1308
1309 2004-05-05  Lluis Sanchez Gual <lluis@ximian.com>
1310
1311         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
1312           When deserializing an encoded method response, if the return type of the
1313           method is Object, assign to it the first element of the message, whatever
1314           it is.
1315         * XmlSerializationReader.cs: 
1316         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
1317           the imported member.
1318         * TypeTranslator.cs: Added method to safely get a primitive TypeData.
1319         * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
1320           a given xsi type is not found. Just read it as primitive type.
1321         * XmlTypeMapMember.cs: Added IsReturnValue property.
1322         * XmlTypeMapping.cs: Added ReturnMember property.
1323         * XmlSerializer.cs: Reference System.Data when compiling the serializer.
1324
1325 2004-05-05  Lluis Sanchez Gual <lluis@ximian.com>
1326
1327         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
1328           When reading an object using the typeof(object) map, an emty xsi:type 
1329           means that it has to read the contents into an XmlNode[].
1330         * TypeData.cs: Return the correct full name for inner classes.
1331         * XmlSchemaImporter.cs: Improved detection of types that represent 
1332           "anyType", and must be mapped to XmlElement, XmlNode or Object.
1333         * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1334           the correct namespace.
1335           In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1336           not known.
1337
1338 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
1339
1340         * XmlSerializationWriter.cs : It do not have to handle schema
1341           namespace as special one.
1342
1343 2004-05-03  Lluis Sanchez Gual <lluis@ximian.com>
1344
1345         * XmlSerializationReaderInterpreter.cs: Removed the check for null 
1346           AttributeMembers collection. Even if there are no attribute members,
1347           attributes need to be read.
1348
1349 2004-05-03  Lluis Sanchez Gual <lluis@ximian.com>
1350
1351         * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1352           the IXmlSerializable object may not read all the EndElement it read.
1353           This fixes bug #57413.
1354
1355 2004-05-03  Lluis Sanchez Gual <lluis@ximian.com>
1356
1357         * XmlSerializer.cs: Enable serializer generation by default.
1358
1359 2004-04-20  Lluis Sanchez Gual <lluis@ximian.com>
1360
1361         * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1362         * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1363           turns out that it is an array, import it again as array. This fixes
1364           bug #57133.
1365
1366 2004-04-15  Lluis Sanchez Gual <lluis@ximian.com>
1367
1368         * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1369           don't use type name for array types, since we can have different classes 
1370           that represent the same array type (for example StringCollection and 
1371           string[]).
1372
1373 2004-04-14  Lluis Sanchez Gual <lluis@ximian.com>
1374
1375         * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1376           not present in MS.NET.
1377         * XmlSerializationWriter.cs: Improved error message.
1378
1379 2004-03-30  Lluis Sanchez Gual <lluis@ximian.com>
1380
1381         * SerializationCodeGenerator.cs, XmlReflectionImporter.cs, 
1382           XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1383           Support deserialization of members of type XmlDocument. This fixes #56169.
1384
1385 2004-03-25  Lluis Sanchez Gual <lluis@ximian.com>
1386
1387         * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1388           Use a special method to generate default values, since default enum values
1389           will come as integers, so a special cast is needed.
1390         * XmlSerializationReaderInterpreter.cs,
1391         * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1392           SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs, 
1393           SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1394           XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, 
1395           XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1396           XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1397           XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1398           XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1399           of SerializationSource. It can't keep and use the XmlAttributeOverride
1400           instances as key values, since those instances can be modified after the
1401           xml map has been generated. Now, SerializationSource generates a unique 
1402           string hash from XmlAttributeOverride and uses it for comparisons.
1403
1404 2004-03-24  Lluis Sanchez Gual <lluis@ximian.com>
1405
1406         * SerializationCodeGenerator.cs: Several fixes: generate valid names for 
1407           WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1408           the adequate type. Set the default value of members that do have a default
1409           value. Other minor fixes.
1410         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1411           from typeof(object) map, even those that have another base class.
1412         * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1413           It must serialize the char as number, not as character.
1414         * XmlSerializationReaderInterpreter.cs: Set the default value of members 
1415           that do have a default value.
1416         * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1417           of members that have a default value.
1418
1419 2004-03-15  Lluis Sanchez Gual  <lluis@ximian.com>
1420
1421         * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1422           This fixes bug #55547.
1423
1424 2004-03-13  David Sheldon <dave-mono@earth.li>
1425
1426   * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1427    byte [].
1428
1429 2004-03-13  David Sheldon <dave-mono@earth.li>
1430  
1431   * XmlTextAttribute.cs: Initialise dataType with zero-length string. 
1432    fixes test case that tests for this directly.
1433   * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1434    it. Treat it as null.
1435    
1436 2004-03-12  Lluis Sanchez Gual  <lluis@ximian.com>
1437
1438         * CodeIdentifier.cs: Limit the length of identifiers.
1439         * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1440           Generate types using GetDomType, so if the type is an array, it creates
1441           the correct combination of types.
1442         * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1443           an enum, if the string is empty and the enum has [Flags], then return 0
1444           as value. This fixes bug #55509.
1445         * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1446           are not supported. Another check: a simple type cannot be enum if it does
1447           not have any enum facet.
1448           And another fix: use string as default type for attribtues.
1449         * XmlSchemas.cs: Fixed search for schema elements. An schema may import 
1450           other schemas. An imported schema would not be in the table, but its
1451           elements (although from another namespace) would be in the schema that 
1452           imported it. So, we need know to check for every schema in the table.
1453         * XmlSerializer.cs: Added environment variable to help debugging code 
1454           generator output.
1455
1456 2004-02-27  Lluis Sanchez Gual  <lluis@ximian.com>
1457
1458         * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1459           of XmlInclude attributes needed for the service class.
1460           IsMapExported: Removed check for object type, since it can now be exported.
1461           SetMapExported: Use the type name as key, since different importers may
1462           be used to create a map for the same type.
1463           GenerateClassInclude: Updated signature.
1464         * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1465           GenerateClassInclude(): Updated signature.
1466         * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1467           Implemented IncludeTypes.
1468         * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1469           GenerateClassInclude(): Updated signature.
1470         * XmlMemberMapping.cs: Added missing property.
1471         * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1472           Implemented IncludeTypes().
1473         * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1474         * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1475           Now, it does a regular import and then assign the required base class to
1476           the imported map. In this way it is possible to assign a base type for a 
1477           map that was previously imported without a base type.
1478         * XmlTypeMapping.cs: Added internal method SetRoot().
1479
1480 2004-02-24  Lluis Sanchez Gual  <lluis@ximian.com>
1481
1482         * SerializationCodeGenerator.cs: Added support for generation of readers
1483           and writers for several maps in a single class. Added support for
1484           XmlMemberMapping. Fixed generation of serializers that use encoded format.
1485         * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1486           SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs, 
1487           XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1488           XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1489           XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1490           XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1491           XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1492           Added InternalEquals method.
1493         * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1494         * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1495         * XmlCustomFormatter.cs: Fixed little bug.
1496         * XmlMapping.cs: Added Source property. This a global identifier of the map.
1497         * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1498         * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1499           mapping members.
1500         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1501         * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1502           correctly used.
1503         * XmlSerializer.cs: Added support for generation of serializers.
1504
1505 2004-02-18  Atsushi Enomoto  <atsushi@ximian.com>
1506
1507         * SerializationCodeGenerator.cs,
1508           SerializationCodeGeneratorConfiguration.cs:
1509           Added <namespaceImports> feature ("using XXX;" generation) support.
1510
1511 2004-02-17  Lluis Sanchez Gual  <lluis@ximian.com>
1512
1513         * XmlSerializationWriter.cs: When writing the root element, use a prefix
1514           if the namespace of the element is defined in the list of namespaces
1515           provided to the XmlSerializer. This fixes bug #54427.
1516
1517 2004-02-16  Lluis Sanchez Gual  <lluis@ximian.com>
1518
1519         * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1520           Those are basically methods to add custom attributes to element and
1521           attribute members.
1522         * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1523         * XmlCodeExporter.cs: Better support for custom attribute generation for
1524           method parameters.
1525         * XmlCustomFormatter.cs: Added null check.
1526         * XmlSchemaImporter.cs: do not set IsOptionalValueType property to 
1527           attributes that are required.
1528         * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1529           as attributes.
1530
1531 2004-02-11  Lluis Sanchez Gual  <lluis@ximian.com>
1532
1533         * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1534         * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1535           string, not string[].
1536         * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1537           for array parameters. In general, improved generation of schema Form 
1538           property.
1539         * XmlMemberMapping.cs: Added Form property.
1540         * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1541           simple types. Added a check for this.
1542         * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1543           Form. The key used to determine if a map has been already generated must
1544           include the XmlType, since there can be two xml types with the same CLR
1545           type and namespace (for example, they may differ in the Form property).
1546         * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1547           also return the corresponding map. There can be two maps that have the
1548           same TypeData, so given a TypeData is not always possible to get the
1549           correct corresponding map (for example two arrays that only differ in the
1550           Form of the item).
1551         * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1552           type or not.
1553
1554 2004-02-04  Lluis Sanchez Gual  <lluis@ximian.com>
1555
1556         * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1557           normalizedString schema type.
1558
1559 2004-02-04  Lluis Sanchez Gual  <lluis@ximian.com>
1560
1561         * XmlReflectionImporter.cs: Get the class members using the right order.
1562         * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1563           A member with the Any attribute can also contain text. Support this.
1564         * XmlTypeMapMemberElement.cs: Added CanBeText property.
1565
1566 2004-01-27  Lluis Sanchez Gual  <lluis@ximian.com>
1567
1568         * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1569           check.
1570
1571 2004-01-27  Lluis Sanchez Gual  <lluis@ximian.com>
1572
1573         * MapCodeGenerator.cs: Added helper method for generating an attribute
1574           parameter of type enum.
1575         * XmlAttributeAttribute.cs: little fix.
1576         * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1577           for method parameters.
1578         * XmlMemberMapping.cs: Improved support for members of type "any".
1579         * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1580           If the namespace is explicitly specified, then the form should be
1581           qualified. Also fixed issues with the namespace assigned to attributes.
1582           This should fix bug #53384.
1583         * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1584           methods that return values of type "any". Changed the methods
1585           AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1586           element, return it, and the caller must add it to the collection.
1587           Other fixes in attribute generation.
1588         * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1589           generate the AnyType mapping from the type described in the schema.
1590           Small fixes regarding IsMixed property of complex types (it means that
1591           the type can contain text, so the XmlTextAttribute must be generated).
1592         * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1593           be only used in the bare+encoded format.
1594
1595 2004-01-24  Lluis Sanchez Gual  <lluis@ximian.com>
1596
1597         * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1598           to be derived types of the one that has the attribute.
1599         * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1600           map to the parent map. This fixes #53246.
1601         * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1602
1603 2004-01-22  Lluis Sanchez Gual  <lluis@ximian.com>
1604
1605         * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
1606           do not check the root element name, since it can be any name. This fixes
1607           bug #53201.
1608
1609 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
1610
1611         * XmlReflectionImporter.cs: Throw exception if a value type member has the
1612           IsNullable=true flag. This fixes bug #52906.
1613
1614 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
1615
1616         * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
1617           so a 'specified' member has always to be generated.
1618         * TypeData.cs: Fixed check for value type.
1619
1620 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
1621
1622         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
1623           XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
1624           XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
1625           XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
1626           XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
1627           Added support for value specifiers members. This fixes bug #53024.
1628
1629 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
1630
1631         * XmlSchemaExporter.cs: Don't create referenced element if it has already
1632           been created (two types could be referencing the same schema element).
1633
1634 2004-01-19  Lluis Sanchez Gual  <lluis@ximian.com>
1635
1636         * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
1637         * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
1638           arrays. This fixes bug #53018.
1639
1640 2004-01-14  Lluis Sanchez Gual  <lluis@ximian.com>
1641
1642         * MapCodeGenerator.cs: Use type namespace instead of root namespace as
1643           default namespace for members.
1644         * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
1645         * XmlReflectionImporter.cs: Fixed the assignment of root and type 
1646           namespaces.
1647         * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
1648           default namespace for members. In AddSchemaElement, if the element is
1649           a root element never use a "ref" attribute.
1650         * XmlSchemaImporter.cs: Fixed issue when importing root elements.
1651
1652 2004-01-13  Lluis Sanchez Gual  <lluis@ximian.com>
1653
1654         * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1655         XmlTypeMapping.cs: more namespace fixes.
1656
1657 2004-01-13  Lluis Sanchez Gual  <lluis@ximian.com>
1658
1659         * XmlReflectionImporter.cs: type namespace must never be used as root
1660           namespace. This fixes bug #52772.
1661
1662 2004-01-08  Nick Drochak <ndrochak@ieee.org>
1663
1664         * XmlSchemaImporter.cs: Removed unused variable.
1665
1666 2004-01-07  Lluis Sanchez Gual  <lluis@ximian.com>
1667
1668         * XmlReflectionImporter.cs: Ignore Namespace property when applying
1669           the [XmlType] attribute to an enum. This fixes bug #52607.
1670
1671 2003-12-19  Lluis Sanchez Gual  <lluis@ximian.com>
1672
1673         * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
1674         option that allow serialization of private types.
1675         
1676 2003-12-18 Eran Domb <erand@mainsoft.com>
1677         
1678         * TypeTranslator.cs : Change primtive types map.
1679
1680 2003-12-18 Eran Domb <erand@mainsoft.com>
1681         
1682         * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
1683         classes of object.
1684
1685 2003-12-15  Lluis Sanchez Gual <lluis@ximian.com>
1686
1687         * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
1688           to check if a type is primitive, instead of Type.IsPrimitive, since CLR
1689           primitive types are not the same as XML primitive types. Patch proposed
1690           by Mordechai Taitelman. This fixes bug #52228.
1691         * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
1692
1693 2003-12-15  Lluis Sanchez Gual <lluis@ximian.com>
1694         
1695         * XmlReflectionImporter.cs: Little fix.
1696         
1697 2003-12-15  Lluis Sanchez Gual <lluis@ximian.com>
1698         
1699         * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
1700           need to be derived types of the includer. This fixes bug #52152.
1701           Added null check for Name property of XmlEnumAttribute. This fixes
1702           bug #52155.
1703         * XmlSerializationReader.cs: Fixed some error messages.
1704         * XmlSerializationReaderInterpreter.cs: Check that the root element has
1705           the correct local name and namespace. This fixes bug #52038.
1706           Throw exception if enum value can't be parsed.
1707         * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
1708           bug #52041.
1709         
1710 2003-12-12  Lluis Sanchez Gual <lluis@ximian.com>
1711         
1712         * MapCodeGenerator.cs: Added support for [Flags] enum.
1713         * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
1714         * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
1715           encoded array type. Added support for enums with [Flags].
1716           In encoded format, unqualified types are schema types by default.
1717         
1718 2003-12-11  Lluis Sanchez Gual <lluis@ximian.com>
1719         
1720         * XmlCodeExporter.cs: Little fix.
1721         * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
1722           same name have the same type.
1723         * XmlSchemaImporter.cs: Support xml:lang.
1724         * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs: 
1725           fixed wrong namespace for the arrayType attribute.
1726
1727 2003-12-08  Lluis Sanchez Gual <lluis@ximian.com>
1728
1729         * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
1730           XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
1731           When using rpc format on a web service, members don't need to have any
1732           specific namespace. Added a flag for turning namespace check on/off.
1733
1734 2003-11-27  Lluis Sanchez Gual <lluis@ximian.com>
1735
1736         * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
1737           delayedListFixups.Count cannot be used because elementes from
1738           delayedListFixups are deleted sometimes.
1739         
1740 2003-11-27  Lluis Sanchez Gual <lluis@ximian.com>
1741
1742         * XmlReflectionImporter.cs: Indexer properties must not be serialized.
1743           This fixes bug #51060.
1744
1745 2003-11-24  Lluis Sanchez Gual <lluis@ximian.com>
1746
1747         * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb: 
1748           If type is Enum the code use type.GetElememtType() instead of 
1749           Enum.GetUnderlyingType().
1750
1751 2003-11-12  Lluis Sanchez Gual <lluis@ximian.com>
1752
1753         * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
1754           Removed several TODOs already done.
1755
1756 2003-11-03  Lluis Sanchez Gual <lluis@ximian.com>
1757
1758         * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
1759           bug #50041.
1760
1761 2003-10-20  Lluis Sanchez Gual <lluis@ximian.com>
1762
1763         * ReflectionHelper.cs: In CheckSerializableType() check that the type
1764           is public.
1765         * XmlSerializationWriter.cs: Added check for circular references.
1766           This fixes bug #49879.
1767
1768 2003-10-20  Lluis Sanchez Gual <lluis@ximian.com>
1769
1770         * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
1771           can't be serialized. This fixes bug #49878.
1772         * TypeData.cs: In ListItemType check that the collection has a valid
1773           Add method and report an error if not.
1774         * XmlReflectionImporter.cs: Added CheckSerializableType check call when
1775           reflecting a collection.
1776
1777 2003-10-18  Lluis Sanchez Gual <lluis@ximian.com>
1778
1779         * SoapReflectionImporter.cs: Support element references for enum values in
1780           encoding format. This fixes bug #49568.
1781         * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
1782           the name and namespace of the wrapper element. MS.NET doesn't do it.
1783           This fixes bug #49729.
1784
1785 2003-10-15  Lluis Sanchez Gual <lluis@ximian.com>
1786
1787         * MapCodeGenerator.cs: Made MapCodeGenerator internal.
1788
1789 2003-10-15  Lluis Sanchez Gual <lluis@ximian.com>
1790
1791         * MapCodeGenerator.cs: New file. Moved here all code that is common
1792           between XmlCodeExporter and SoapCodeExporter.
1793         * SoapCodeExporter.cs: Implemented.
1794         * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
1795         * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
1796           encoded bare parameter list.
1797         * XmlTypeMapping.cs: Added method for getting member element by index.
1798
1799 2003-10-14  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1800
1801         * XmlSchemas.cs : Implemented IsDataSet().
1802
1803 2003-10-13  Lluis Sanchez Gual <lluis@ximian.com>
1804
1805         * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
1806         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs: 
1807           in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
1808         * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
1809         * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
1810           and whether it uses encoded or literal format.
1811         * XmlSchemaExporter.cs: Little fixes.
1812
1813 2003-10-10  Lluis Sanchez Gual <lluis@ximian.com>
1814
1815         * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
1816           need to be of type SOAP-ENC:Array, it can be a restriction of it.
1817
1818 2003-10-10  Lluis Sanchez Gual <lluis@ximian.com>
1819
1820         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
1821           Read only properties are only serialized if the type is an array.
1822
1823 2003-10-09  Lluis Sanchez Gual <lluis@ximian.com>
1824
1825         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, 
1826           SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
1827           is not needed for value types.
1828
1829 2003-10-08  Lluis Sanchez Gual <lluis@ximian.com>
1830
1831         * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
1832           (XmlSerializer.Serialize() handles namespace parameter incorrectly)
1833
1834 2003-10-05  Lluis Sanchez Gual <lluis@ximian.com>
1835
1836         * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
1837
1838 2003-10-04  Lluis Sanchez Gual <lluis@ximian.com>
1839
1840         * XmlSchemaExporter.cs: Keep track of elements being exported.
1841         * XmlSchemas.cs: Removed unneeded catch.
1842
1843 2003-10-01  Lluis Sanchez Gual <lluis@ximian.com>
1844
1845         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
1846           Fixed handling of members with XmlTextAttribute that are arrays.
1847         * TypeData.cs: IsComplexType now returns true for XmlNode.
1848         * XmlSerializer.cs: Added check for null mapping in FromMappings.
1849         * XmlTypeMapping.cs: Added helper method FindTextElement.
1850
1851 2003-09-28  Lluis Sanchez Gual <lluis@ximian.com>
1852         
1853         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
1854           Added support for IncludeInSchema flag.
1855         * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1856         * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
1857           methods. Added support for IncludeInSchema flag.
1858         * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1859           Added support for IncludeInSchema flag.
1860         * XmlTypeAttribute.cs: Set includeInSchema to true by default.
1861         * XmlTypeMapping.cs: Added IncludeInSchema property.
1862         
1863 2003-09-25  Lluis Sanchez Gual <lluis@ximian.com>
1864         
1865         * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
1866
1867 2003-09-14  Lluis Sanchez Gual <lluis@ximian.com>
1868
1869         * XmlCustomFormatter.cs: added support for additional string types in
1870           GenerateToXmlString().
1871         * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using 
1872           encoded format.
1873
1874 2003-09-11  Lluis Sanchez Gual <lluis@ximian.com>
1875
1876         * SoapSchemaImporter.cs: implemented.
1877         * XmlReflectionImporter.cs: Changed nullable default for array items to true.
1878         * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
1879         * XmlSchemaImporter.cs: more support for encoded format.
1880
1881 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
1882
1883         * SerializationCodeGenerator.cs: Minor fixes.
1884         * SoapReflectionImporter.cs: More fixes.
1885         * SoapSchemaExporter.cs: implemented.
1886         * SoapSchemaImporter.cs: Initial implementation.
1887         * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
1888           and ParseArrayType
1889         * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
1890         * XmlMemberMapping.cs: Minor fixes.
1891         * XmlMembersMapping.cs: added some convenient constructors.
1892         * XmlSchemaExporter.cs: Added support for encoded format.
1893         * XmlSchemaImporter.cs: Added support for encoded format. 
1894         * XmlSerializationReader.cs: changed some string literals by constants.
1895           Implemented ParseWsdlArrayType.
1896         * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
1897           custom attributes.
1898         * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
1899         * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
1900           WriteAttribute to write custom attributes.
1901         * XmlSerializer.cs: added some namespace constants.
1902         * XmlTypeMapping.cs: added GetSchemaArrayName method.
1903
1904 2003-09-01  Lluis Sanchez Gual <lluis@ximian.com>
1905
1906         * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
1907         * XmlTypeMapMemberElement.cs: Little fix.
1908         * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
1909         * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
1910           methods.
1911         * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
1912           Added.
1913
1914 2003-08-29  Lluis Sanchez Gual <lluis@ximian.com>
1915
1916         * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1917         * XmlMemberMapping.cs: Changed constructor.
1918         * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1919         * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
1920         * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
1921         * XmlSerializationWriterInterpreter.cs: Changed visibility.
1922
1923 2003-08-28  Lluis Sanchez Gual <lluis@ximian.com>
1924
1925         * XmlSerializer.cs: Fix in Deserialize() method.
1926
1927 2003-08-28  Lluis Sanchez Gual <lluis@ximian.com>
1928
1929         * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
1930         * XmlSchemas.cs: Find method: make sure the returned object belongs to
1931           the requested type.
1932         * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
1933           Add null checks for eventSource.
1934         * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
1935         * XmlSerializationWriter.cs: In Initialize method, initialize the provided
1936           namespece declarations. Virtual method WriteObject not needed any more.
1937           In WriteStartElement, write the provided namespaces.
1938         * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
1939           Added GetTypeMap method, that returns the map for a given type. Added some
1940           virtual methods, so writer behavior can be extended at several places by
1941           derived classes.
1942         * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual 
1943           methods CreateReader and CreateWriter are not called unless no type or 
1944           type mapping was provided in the constructor.
1945
1946 2003-08-12  Lluis Sanchez Gual <lluis@ximian.com>
1947
1948         * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
1949           schema type it is importing is a class or an array. It will always
1950           be a class.
1951
1952 2003-08-12  Lluis Sanchez Gual <lluis@ximian.com>
1953
1954         * XmlSerializationWriterInterpreter.cs: any element members can be serialized
1955           as text nodes. Support it.
1956
1957 2003-08-05  Lluis Sanchez Gual <lluis@ximian.com>
1958
1959         * CodeIdentifier.cs: Fixed MakeValid method.
1960         * TypeTranslator.cs: Added support for more primitive types. Added
1961           GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
1962           maps by default.
1963         * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
1964           are different from the type ns and name.
1965           Generate class and field comments.
1966           Fixed default attribute generation. In elements with ref attribute, it has to be
1967           generated in the referred attribute.
1968         * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
1969           Added suport for text nodes in members of type "any".
1970         * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
1971           content.
1972         * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
1973         * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
1974           that have already been declared.
1975           WriteStartElement(): elements from schema namespace are always written with ns prefix.
1976         * XmlTypeMapMember.cs: Added documentation property.
1977         * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
1978           represents a simple type.
1979
1980 2003-08-05  Lluis Sanchez Gual <lluis@ximian.com>
1981
1982         * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
1983           stuff.
1984         * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
1985         * TypeData.cs: Added property that returns a TypeData that represents an array of
1986           the given TypeData.
1987         * TypeTranslator.cs: Added GetArrayName() method.
1988           Added TypeDatas for missing primitive types.
1989         * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
1990           XmlRootAttribute. Added the namespace to all attributes being generated.
1991           Other fixes in the generation of code.
1992         * XmlReflectionImporter: store the namespace of the type in the maps.
1993         * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
1994           class can generate text. Do not export inherited attributes of a class.
1995           Use the new root namespace stored in the map when generating the root element.
1996         * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
1997           namespace is the default namespace.
1998         * XmlSerializationWriterInterpreter.cs: fixed missing "else".
1999         * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
2000           namespace instead of the map namespace (which can be different if the type
2001           has a XmlRoot element).
2002         * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
2003           to System.DBNull.Value.
2004         * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
2005           the collection if it has not yet been created.
2006         * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
2007           of the type. It may be different from the namespace of the map if the type
2008           has a XmlRoot element. Also added IsSimpleType property.
2009           In ClassMap, added AllMembers property.
2010         
2011 2003-07-30  Lluis Sanchez Gual <lluis@ximian.com>
2012
2013         * TypeData.cs: Added new constructor and variables to allow the creation of
2014           a TypeData without a Type. Added ListItemTypeData property.
2015         * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
2016           array of arrays. Added also a property to get the nested array map.
2017         * XmlCodeExporter.cs: First implementation of code exporter.
2018
2019 2003-07-22  Lluis Sanchez Gual <lluis@ximian.com>
2020
2021         * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
2022         * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
2023           they have.
2024
2025 2003-07-15  Lluis Sanchez Gual <lluis@ximian.com>
2026
2027         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
2028           maps with the same name and namespace. To avoid this, maps must be registered
2029           using the real map namespace, not the default namespace (the namespace can
2030           change if the type has a XmlType or SoapType attribute).
2031         * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
2032         * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
2033           Other small fixes.
2034         * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
2035           is null.
2036
2037 2003-07-14  Lluis Sanchez Gual <lluis@ximian.com>
2038
2039         * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
2040         * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
2041         * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
2042         * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
2043         * XmlSchemaExporter.cs: Implemented.
2044         * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
2045         * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
2046           GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
2047         * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
2048           GetStringValue() returns null if the value is null, instead of empty string.
2049           (attributes with null values are not written).
2050         * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
2051         * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
2052           DataType value can is now in TypeData.
2053         * XmlTypeMapMemberElement.cs: Small fix.
2054         * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
2055
2056 2003-07-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2057
2058         * AssemblyInfo.cs: Removed
2059
2060 2003-07-9  Lluis Sanchez Gual <lluis@ximian.com>
2061
2062         * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi 
2063           namespace declarations if they have already been defined.
2064
2065 2003-07-2  Lluis Sanchez Gual <lluis@ximian.com>
2066
2067         * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
2068           for adding elements to a list.
2069
2070 2003-06-31  Lluis Sanchez Gual <lluis@ximian.com>
2071
2072         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and 
2073           SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then 
2074           A includes C).
2075
2076 2003-06-30  Lluis Sanchez Gual <lluis@ximian.com>
2077
2078         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs: 
2079           Added support for serialization of enums with the Flags attribute.
2080
2081 2003-06-30  Lluis Sanchez Gual <lluis@ximian.com>
2082
2083         * SoapReflectionImporter.cs: Fix support for DataType in class members.
2084         * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
2085           can have other names.
2086         * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
2087         * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
2088           XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs: 
2089           Fix support for DataType in class members.
2090         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs: 
2091           Added support for array of primitive types in attributes.
2092
2093 2003-06-28  Lluis Sanchez Gual <lluis@ximian.com>
2094
2095         * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
2096           be overlodaded, so it is not good for this.
2097         * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
2098
2099 2003-06-24  Lluis Sanchez Gual <lluis@ximian.com>
2100
2101         * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
2102         * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
2103           array if the namespace is not specified in XmlArrayItemAttribute.
2104
2105 2003-06-17  Lluis Sanchez Gual <lluis@ximian.com>
2106
2107         * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
2108         * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
2109           is not specified in the xsi attribute.
2110         * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
2111         * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
2112         
2113 2003-06-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2114
2115         * XmlSerializationReader.cs : Synchronous fix with 
2116           XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
2117         * added XmlTypeMapMemberNamespace.cs.
2118         * XmlReflectionImporter,
2119           XmlSerializationReaderInterpreter.cs,
2120           XmlSerializationWriterInterpreter.cs,
2121           XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
2122
2123 2003-06-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2124
2125         * XmlSerializationWriter.cs : some QName handling fix.
2126
2127 2003-06-13  Lluis Sanchez Gual <lluis@ximian.com>
2128
2129         * XmlSerializationReader.cs: Fixed error message.
2130         * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
2131           Thanks to Atsushi!
2132         * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
2133
2134 2003-06-13  Lluis Sanchez Gual <lluis@ximian.com>
2135
2136         * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
2137         * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
2138         * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
2139         * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
2140
2141 2003-06-13  Lluis Sanchez Gual <lluis@ximian.com>
2142
2143         * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
2144         * SoapReflectionImporter.cs: tiny fix.
2145         * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
2146           XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
2147         * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
2148         * XmlSerializationWriter.cs: implemented WriteSerializable ().
2149
2150 2003-06-12  Lluis Sanchez Gual <lluis@ximian.com>
2151
2152         * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
2153         * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
2154           XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
2155           XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
2156         * XmlSerializationWriter.cs: small fix.
2157
2158 2003-06-11  Lluis Sanchez Gual <lluis@ximian.com>
2159
2160         * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
2161           Added support for DefaultValueAttribute.
2162         * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
2163           the value of an enum.
2164         * XmlTypeMapMember.cs: Added DefaultValue attribute.
2165         * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
2166           integer values.
2167
2168 2003-06-11  Lluis Sanchez Gual <lluis@ximian.com>
2169
2170         * XmlSerializationReader.cs: Minor fix.
2171
2172 2003-06-11  Lluis Sanchez Gual <lluis@ximian.com>
2173
2174         * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
2175
2176 2003-06-10  Lluis Sanchez Gual <lluis@ximian.com>
2177
2178         * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2179         * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
2180         * XmlCustomFormatter.cs: small fixes.
2181         * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2182         * XmlSerializationWriter.cs: Implemented TopLevelElement().
2183           WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
2184           WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
2185         * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
2186           root elements.
2187
2188 2003-06-05  Lluis Sanchez Gual <lluis@ximian.com>
2189
2190         * SoapReflectionImporter.cs: implemented.
2191         * TypeTranslator.cs: added IsPrimitive() method
2192         * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
2193           used by that one. Also added Format property, that can be literal or encoded.
2194         * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
2195         * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
2196         * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
2197         * XmlSerializationReaderInterpreter.cs: added support for encoded format.
2198         * XmlSerializationWriter.cs: added support for encoded format.
2199         * XmlSerializationWriterInterpreter.cs: added support for encoded format.
2200         * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
2201         * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes, 
2202           and a map is needed for them).
2203         * XmlTypeMapMemberElement.cs: small fixes.
2204         * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
2205         * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
2206
2207 2003-06-01  Miguel de Icaza  <miguel@ximian.com>
2208
2209         * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
2210         UnknownElement): Add line number information.
2211
2212 2003-05-29  Lluis Sanchez Gual <lluis@ximian.com>
2213
2214         * TypeData.cs, TypeTranslator.cs: Renamed some properties.
2215         * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2216         * XmlMapping.cs: Added internal property.
2217         * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
2218         * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
2219         * XmlReflectionMember.cs: XmlAttributes are now created by default
2220         * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
2221         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs: 
2222           Implemented support for XmlMembersMapping.
2223         * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
2224
2225 2003-05-28  Lluis Sanchez Gual <lluis@ximian.com>
2226
2227         * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
2228           from xml type to clr type.
2229         * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2230         * XmlReflectionMember.cs: Added default constructor.
2231         * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
2232         * XmlSerializationWriter.cs: Several fixes.
2233         * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2234           XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
2235           Added support for enums. Added support for XmlElement and XmlNode.
2236           Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
2237
2238 2003-05-26  Lluis Sanchez Gual <lluis@ximian.com>
2239
2240         * TypeData.cs, TypeTranslator.cs: Implemented some methods.
2241         * XmlCustomFormatter.cs: Added formatting methods.
2242         * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
2243         * XmlReflectionMember.cs: Added new constructor.
2244         * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
2245         * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
2246           XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
2247           XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
2248
2249 2003-05-10  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2250
2251         * Added TypeTableEntry.cs.
2252         * TypeTranslator.cs : changed for non-static use.
2253         * XmlAttributes.cs : XmlType attribute support for GetAttributeName() 
2254           and GetElementName(). Bugfix so that if any XmlElementAttribute 
2255           exists after non-typed XmlElementAttribute then it might be ignored.
2256           Added GetElementIsNullable().
2257         * XmlSerializer.cs :
2258           Introduced TypeTablePool and TypeTableEntry and erased ambiguous 
2259           Object memberObj[4].
2260           Deserialize() now uses XmlReader.Depth to check its depth.
2261           Serialize() for non-XmlReader arguments now always write xmldecl.
2262           SerializeBuiltin() now explicitly requires Type to support xsi:nil,
2263           and handles XmlQualifiedName.
2264           Separated SerializeType () from Serialize().
2265           Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
2266           IsPropertyTypeSerializable() from SerializeMembers().
2267           SerializeMembers() is now capable of null value and actual type,
2268           which should be included by XmlIncludeAttribute and so on.
2269           Renamed SerializeArray() to SerializeArrayContent(), and added
2270           SerializeCollectionContent().
2271           SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
2272           FillTypeTable() is now aware of XmlInclude attributes.
2273           FillEnum() should not have different type table content from others.
2274
2275 2003-05-09  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2276
2277         * XmlSerializer.cs : this time, only replaced spaces with tabs.
2278
2279 2003-05-05  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2280
2281         * ChangeLog : Added missing ChangeLog of 2003-04-25.
2282         * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain 
2283           separators. Added experimental method ToEnum().
2284         * XmlSerializationReader.cs : unconfirmed implementation of
2285           ReadSerializable() and ToEnum().
2286         * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value 
2287           is null then no output will be written.
2288           Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag() 
2289           to use custom formatted name.
2290
2291 2003-05-02  Miguel de Icaza  <miguel@ximian.com>
2292
2293         * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
2294         had a void return value.
2295
2296 2003-04-26  Miguel de Icaza  <miguel@ximian.com>
2297
2298         * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
2299         `AllowMultiple' flags.  
2300
2301 2003-04-25  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2302
2303         * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
2304         * XmlReflectionImporter.cs : patch by Erik LeBel. 
2305           Now uses XmlRootAttribute to determine element name.
2306
2307 2003-03-17  Miguel de Icaza  <miguel@ximian.com>
2308
2309         * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
2310         Kill Bublesort.
2311
2312 2003-03-22  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2313
2314         * XmlSerializer.cs : patch by Sean Cier. Serialize() other than 
2315           XmlWriter argument should call WriteEndDocument.
2316
2317 2003-03-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2318
2319         * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
2320           not WriteState.Start, and never call WriteEndDocument().
2321
2322 2003-03-12  Elan Feingold <efeingold@mn.rr.com>
2323
2324         * XmlCustomFormatter.cs: Correct signature, Implement
2325         ToByteArrayBase64 
2326
2327         * XmlSerializationWriter.cs: Fix prototype.
2328
2329         * XmlSerializer.cs: Implements Deserialize().
2330
2331 2003-02-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2332
2333         * XmlSerializer.cs : serializing now works for interface member.
2334
2335 2003-01-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2336
2337         * XmlSerializer.cs : some fix handling xml node object more correct.
2338
2339 2003-01-16  Ajay kumar Dwivedi <adwiv@yahoo.com>
2340         * XmlSerializer.cs: Array serialization for 1D arrays works
2341         * TypeTranslator: Added for translations`
2342
2343 2002-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2344
2345         * XmlCustomFormatter.cs: finished.
2346         * XmlSerializationReader.cs: implemented some more methods.
2347
2348 2002-09-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2349
2350         * XmlSerializationReader.cs: implemented a few methods.
2351
2352         * XmlAnyElementAttribute.cs:
2353         * XmlArrayAttribute.cs:
2354         * XmlChoiceIdentifierAttribute.cs:
2355         * XmlElementAttribute.cs:
2356         * XmlMemberMapping.cs:
2357         * XmlMembersMapping.cs: class status based fixes.
2358
2359 2002-09-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2360
2361         * CodeIdentifiers.cs:
2362         * XmlSchemaExporter.cs:
2363         * XmlSchemaImporter.cs:
2364         * XmlSchemas.cs:
2365         * XmlSerializationWriteCallback.cs:
2366         * XmlSerializationWriter.cs:
2367         * XmlSerializer.cs:
2368         * XmlSerializerNamespaces.cs: some class status based fixed and
2369         implemented a couple of methods.
2370
2371         * SoapSchemaExporter.cs: stubbed out.
2372
2373 2002-08-24  Tim Coleman <tim@timcoleman.com>
2374         * SoapCodeExporter.cs:
2375                 Fix return value of ExportTypeMapping.
2376         * XmlCustomFormatter.cs:
2377                 Change methods to be internal instead of public.
2378         * XmlSerializationWriter.cs:
2379                 Modify GetPrimitiveTypeName to build on linux.
2380                 Modify GetQualifiedName to return an incrementing prefix
2381                 instead of the same one all the time (still need to manage
2382                 conflicts)
2383                 Modify WriteElementString to only do special stuff is XsiType
2384                 is not defined.
2385                 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2386                 an XmlQualifiedName.
2387
2388 2002-08-22  Tim Coleman <tim@timcoleman.com>
2389         * XmlSerializationReader.cs:
2390                 Some implementation
2391         * XmlSerializationWriter.cs:
2392                 More implementation
2393         * XmlCustomFormatter.cs:
2394                 Implemented this class.
2395
2396 2002-08-20  Tim Coleman <tim@timcoleman.com>
2397         * XmlSerializationWriter.cs:
2398                 Some implementation.
2399
2400 2002-08-19  Tim Coleman <tim@timcoleman.com>
2401         * XmlSerializer.cs:
2402                 New stubs added.
2403         * XmlSerializationWriter.cs:
2404                 New stubs added.
2405
2406 2002-08-14  Tim Coleman <tim@timcoleman.com>
2407         * XmlSerializer.cs:
2408                 More reformatting of source code so I can
2409                 better understand what it does.
2410
2411 2002-08-06  Tim Coleman <tim@timcoleman.com>
2412         * XmlSerializer.cs:
2413                 Some reformatting of code for readability.
2414                 Modify to correctly serialize ICollection objects
2415                 such as the BindingCollection of a ServiceDescription
2416                 for example.
2417
2418 2002-08-03  Tim Coleman <tim@timcoleman.com>
2419         * XmlSerializer.cs: 
2420                 Changed Implements() to check based on name rather
2421                 than FullName.  FullName was never working correctly.
2422
2423 2002-07-26  Tim Coleman <tim@timcoleman.com>
2424         * XmlSerializer.cs:
2425                 The constructor now looks for an XmlRootAttribute attribute
2426                 if one is not passed in.  Various changes to make it emit
2427                 proper XML, such as handling an element without a namespace
2428                 prefix, and using WriteEndDocument where it should be.
2429
2430 2002-07-24  Tim Coleman <tim@timcoleman.com>
2431         * CodeIdentifier.cs:
2432         * IXmlSerializable.cs:
2433         * XmlSerializationCollectionFixupCallback.cs:
2434         * XmlSerializationFixupCallback.cs:
2435         * XmlSerializationReadCallback.cs:
2436         * XmlSerializationReader.cs:
2437         * XmlSerializationWriteCallback.cs:
2438                 Add new classes.
2439         * XmlSchemas.cs
2440         * CodeIdentifiers.cs:
2441                 Implement some of these classes
2442         * XmlCodeExporter.cs:
2443                 Fix return type of a function
2444
2445 2002-07-24  Tim Coleman <tim@timcoleman.com>
2446         * SoapReflectionImporter.cs:
2447                 New class added to build
2448                 System.Web.Services.Description.ServiceDescription.cs
2449
2450 2002-07-22  Tim Coleman <tim@timcoleman.com>
2451         * CodeIdentifiers.cs:
2452         * SoapCodeExporter.cs:
2453         * SoapSchemaExporter.cs:
2454         * XmlCodeExporter.cs:
2455         * XmlMemberMapping.cs:
2456         * XmlMembersMapping.cs:
2457         * XmlReflectionImporter.cs:
2458         * XmlReflectionMember.cs:
2459         * XmlSchemaExporter.cs:
2460         * XmlSchemaImporter.cs:
2461         * XmlSchemas.cs: 
2462                 New stubbs added to aid in the linux build of
2463                 System.Web.Services.
2464
2465 2002-07-05  Ajay kumar Dwivedi <adwiv@yahoo.com>
2466         
2467         * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2468
2469         * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2470
2471 2002-07-02  Ajay kumar Dwivedi <adwiv@yahoo.com>
2472         
2473         * XmlSeriailizer: Updated Serialize() method.
2474
2475 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2476         * XmlSerializer: Serialize() method Partially Implemented.
2477
2478 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2479
2480         * Soap & XmlOverrides: Implemented using TypeMember as key with
2481           suggestions from Rafael.