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