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