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