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