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