2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / ChangeLog
1 2006-01-08  Gert Driesen  <drieseng@users.sourceforge.net>
2
3         * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
4
5 2006-01-07  Gert Driesen  <drieseng@users.sourceforge.net>
6
7         * XmlTypeMapping.cs: Fixed line endings.
8         * TypeTranslator.cs: Fixed line endings.
9
10 2005-12-07  Lluis Sanchez Gual  <lluis@novell.com>
11
12         * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
13         collection, don't create a new collection if the property already has a 
14         collection instance.
15         * SerializationCodeGenerator.cs: same as above. Also return an empty
16         string for flag enum default values.
17
18 2005-12-06  Konstantin Triger  <kostat@mainsoft.com>
19
20         * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
21
22 2005-12-05  Lluis Sanchez Gual  <lluis@novell.com>
23
24         * XmlSerializationReaderInterpreter.cs:
25         * SerializationCodeGenerator.cs: When deserializing a collection,
26         don't create a new collection if the property already has a 
27         collection instance. This does not apply to arrays. Changed how nullabe
28         array properties are set. Setting IsNullable=false to the property means
29         that it won't be set if the read array is null (so, if the property
30         already has a value, it will be kept).
31         Another change is that can't never be null (only arrays can).
32
33 2005-12-01  Lluis Sanchez Gual  <lluis@novell.com>
34
35         * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
36         a cli array type, consider it refering to the type of array elements.
37         This fixes bug #76860. Also added some locking.
38
39 2005-11-27   Konstantin Triger <kostat@mainsoft.com>
40
41         * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
42                 export non-xsd primitive types.
43
44 2005-11-24  Vladimir Krasnov  <vladimirk@mainsoft.com>
45         
46         * XmlTypeMapping.cs: fixed GetXmlName method, added difference
47         of value serialization of flags and non-flags enums
48
49 2005-11-23  Konstantin Triger <kostat@mainsoft.com>
50
51         * XmlSchemaExporter.cs: do not import empty namespaces.
52
53 2005-11-17  Vladimir Krasnov  <vladimirk@mainsoft.com>
54         
55         * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement 
56         method, ReadEndElement should check XmlNodeType.
57         * XmlTypeMapping.cs: fixed GetXmlName method, it should not
58         write zero as default enum value.
59
60 2005-11-16  Vladimir Krasnov  <vladimirk@mainsoft.com>
61         
62         * XmlReflectionImporter.cs: fixed field order returned by 
63         reflection in method GetReflectionMembers. TARGET_JVM only.
64
65 2005-11-07  Lluis Sanchez Gual  <lluis@novell.com>
66
67         * XmlSchemaImporter.cs: Added support for restrictions with
68         embedded simple type definitions. 
69
70 2005-11-04  Atsushi Enomoto  <atsushi@ximian.com>
71
72         * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
73           sys.xml.schema corcompare diffs.
74
75 2005-10-17  Lluis Sanchez Gual  <lluis@novell.com>
76
77         * SerializationCodeGenerator.cs: 
78         * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
79         need to be all XmlElments. Fix by Atsushi for bug #76288.
80
81 2005-09-26  Lluis Sanchez Gual  <lluis@novell.com>
82
83         * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
84         In ListMap.FindElement, take into account the ChoiceMember
85         if set.
86         * SerializationCodeGenerator.cs:
87         * XmlSerializationReaderInterpreter.cs: For lists with a choice
88         member, fill the member with the corresponding enum values.
89         * XmlReflectionImporter.cs: Properly reflect the choice member
90         when applied to a list.
91         * XmlSerializationWriterInterpreter.cs: Track class changes.
92         * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
93         All this fixes bug #76203.
94
95 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com>
96
97         * SoapReflectionImporter.cs: Check the correct defaults
98         for attributes.
99
100 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com>  
101
102         * SerializationSource.cs: Fix nullref.
103         * XmlReflectionImporter.cs: When registering a type using
104         IncludeType(), make sure it is added as a subtype and the
105         map for typeof(object) if it has already been imported.
106         Fixes bug #76049.
107
108 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com> 
109
110         * XmlSerializationWriter.cs: Also internally serialize
111         arrays of object (see previous change).
112
113 2005-09-21  Lluis Sanchez Gual  <lluis@novell.com>
114
115         * XmlSerializationWriter.cs: Properly serialize arrays
116         of primitive types when not explicitely specified in
117         a container class. Based on a patch by Konstantin Triger.
118         Fixes bug #75986. 
119
120 2005-08-24  Lluis Sanchez Gual  <lluis@novell.com>
121
122         * TypeData.cs: Reset the hasPublicConstructor flag when the
123         type is an interface.
124         * XmlSerializationWriterInterpreter.cs: Get the Count property
125         from the object type instead of the property type (it didn't
126         work for IList). 
127         * ReflectionHelper.cs: In CheckSerializableType, don't trow
128         if the type is a collection interface. All this fixes
129         bug #75855.
130
131 2005-08-06  Lluis Sanchez Gual  <lluis@novell.com>
132
133         * XmlTypeMapping.cs: Added null check.
134
135 2005-08-05  Lluis Sanchez Gual  <lluis@novell.com>
136
137         * XmlTypeMapping.cs: Added ListMembers property that returns
138         members which are collections.
139         * SerializationCodeGenerator.cs:
140         * XmlSerializationReaderInterpreter.cs: Initialize collection
141         members to an empty collection by default. Fixes bug #75662.
142
143 2005-08-01  Gert Driesen  <drieseng@users.sourceforge.net>
144
145         * XmlMapping.cs: API compatibility fixes. Ctor is not protected
146         in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
147
148 2005-07-31  Gert Driesen  <drieseng@users.sourceforge.net>
149
150         * SoapAttributeAttribute.cs: Return zero-length string if 
151         AttributeName or DataType are null.
152         * SoapEnumAttribute.cs: Return zero-length string if Name is null.
153         * SoapIncludeAttribute.cs: Avoid using property in ctor.
154         * SoapSchemaMember.cs: Return zero-length string if MemberName is
155         null. MemberType should be XmlQualifiedName.Empty by default.
156         * SoapTypeAttribute.cs: Return zero-length string if TypeName is
157         null. Avoid using property in ctor.
158         * XmlArrayAttribute.cs: Return zero-length string if ElementName is
159         null. Avoid using property in ctor.
160         * XmlArrayItemAttribute.cs: IsNullable must be false by default.
161         Return zero-length string if DataType or ElementName are null. Avoid
162         using property in ctor.
163         * SoapElementAttribute.cs: Return zero-length string when DataType
164         or ElementName are null. Avoid using property in ctor.
165         * XmlAnyElementAttribute.cs: Return zero-length string when Name is
166         null. Avoid using property in ctor.
167         * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
168         zero-length string if AttributeName or DataType are null.
169         * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
170         MemberName is null.
171         * XmlElementAttribute.cs: Return zero-length string when DataType or
172         ElementName are null. Avoid using property in ctor.
173         * XmlEnumAttribute.cs: Avoid using property in ctor.
174         * XmlIncludeAttribute.cs: Avoid using property in ctor.
175         * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
176         can no longer be null. Use check for zero-length string to determine
177         whether they are set. Corrected exception message when DataType is
178         set for complex type.
179         * XmlRootAttribute.cs: Return zero-length string if DataType or
180         ElementName are null. Avoid using property in ctor.
181         * XmlTextAttribute.cs: Return zero-length string if DataType is null.
182         * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
183
184 2005-07-14  Lluis Sanchez Gual  <lluis@novell.com>
185
186         * SerializationCodeGenerator.cs: In the generated serializer always
187         use the Object equality operator when comparing objects to serialize
188         to null, since those objects may have the equality operator
189         overloaded. This fixes bug #75543.
190
191 2005-07-01  Lluis Sanchez Gual  <lluis@novell.com>
192
193         * XmlCustomFormatter.cs: Properly read/write duration values.
194
195 2005-06-28  Lluis Sanchez Gual  <lluis@novell.com>
196
197         * XmlSerializer.cs: Fix race between XmlSerializer and the
198         serializer generator.
199
200 2005-06-14  Lluis Sanchez Gual  <lluis@novell.com>
201
202         * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
203         getting the real xml type name of a member.
204         * XmlSerializationWriterInterpreter.cs: Use that new property
205         to get the type name of primitive types. This should fix bug #75180.
206
207 2005-06-07  Lluis Sanchez Gual  <lluis@novell.com>
208
209         * SerializationCodeGenerator.cs: When reading members by order,
210         call a MoveToContext after each member read. In the fixup method
211         don't cast returned values if it is reading an object array.
212         
213         * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
214         being imported is a primitive type, create a wrapper class that
215         inherits from the provided one. This fixes bug #68809.
216         
217         * XmlSerializationReader.cs: Properly report unreferenced objects.
218         Created an overload of ReadTypedPrimitive that reports elements of
219         unknown type. Implemented Referenced(). 
220
221 2005-05-30  Lluis Sanchez Gual  <lluis@novell.com>
222
223         * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
224         set to the default namespace. This fixes bug #73035.
225
226 2005-05-12  Lluis Sanchez Gual  <lluis@novell.com>
227
228         * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
229         types indirectly imported by this method use the same namespace. 
230
231 2005-05-09  Atsushi Enomoto  <atsushi@ximian.com>
232
233         * TypeTableEntry.cs : removed obsolete code.
234
235 2005-04-26  Lluis Sanchez Gual  <lluis@novell.com>
236
237         * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
238         properties which are read only. Fixes bug #74723.
239
240 2005-04-14  Lluis Sanchez Gual  <lluis@novell.com>
241
242         * XmlReflectionImporter.cs:
243         * SoapReflectionImporter.cs:
244         * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
245         where needed. Based on a patch by Konstantin Triger. 
246
247 2005-04-12  Lluis Sanchez Gual  <lluis@novell.com>
248
249         * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
250         * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
251         export the schema that it defines. In ImportNamespace, removed
252         check for default namespace, since it may be included from a non
253         default namespace.
254         * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
255         types. All this based on a patch by Konstantin Triger.
256         
257         * SerializationCodeGenerator.cs:
258         * XmlMapping.cs:
259         * XmlSerializationReaderInterpreter.cs:
260         * SoapCodeExporter.cs:
261         * XmlTypeMapMemberAttribute.cs:
262         * XmlSerializationReader.cs:
263         * XmlCodeExporter.cs: Fixed some warnings.
264
265 2005-04-10  Andrew Skiba  <andrews@mainsoft.com>
266
267         * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
268
269 2005-04-03  Andrew Skiba  <andrews@mainsoft.com>
270
271         * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
272         code generation.
273
274 2005-03-30  Lluis Sanchez Gual  <lluis@novell.com>
275
276         * SerializationCodeGenerator.cs: 
277         * XmlSerializationReaderInterpreter.cs: If the element being read is
278         bound to a choice member, set the corresponding value.
279         * XmlTypeMapMember.cs: Added helper SetValue method.
280         * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
281         since now stores the enum value.
282         * XmlReflectionImporter.cs: Properly import choice values.
283         * XmlTypeMapMemberElement.cs: Added setter for the choice.
284
285 2005-03-29  Lluis Sanchez Gual  <lluis@novell.com>
286
287         * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
288         This fixes bug #73901 and should fix #70384.
289         * XmlSerializationReader.cs: When reading an object element, return
290         an Object instance if the element has no children. This fixes bug #73974.
291         * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
292         type (it is written as an element with those nodes as children). 
293
294 2005-03-08  Lluis Sanchez Gual <lluis@novell.com>
295
296         * XmlSchemaImporter.cs: Support importing schemas that define
297         extra types in the standard xml schema namespace. When using encoded
298         format, support the primitive types defined by the SOAP encoding
299         namespace.
300
301 2005-03-04  Lluis Sanchez Gual <lluis@novell.com>
302
303         * ReflectionHelper.cs: Avoid endless loop.
304         * XmlSchemas.cs: Added null check. Patches from MainSoft.
305
306 2005-02-07  Lluis Sanchez Gual  <lluis@novell.com>
307
308         * XmlSerializationReader.cs: After reading an href element, skip the
309         whole element (it may not be an empty element). This fixes bug #72265.
310
311 2005-01-25  Lluis Sanchez Gual  <lluis@novell.com>
312
313         * XmlSchemaImporter.cs: When importing a default value of type enum,
314         translate it from the schema value to the clr value.
315
316 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
317
318         * XmlSerializer.cs: only print the results if there's an error
319         compiling.
320
321 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
322
323         * SerializationCodeGenerator.cs: don't use _config if it has not been
324         assigned.
325
326 2005-01-18  Lluis Sanchez Gual  <lluis@novell.com>
327
328         * XmlReflectionImporter.cs: Don't check the property type if it has
329         an [XmlIgnore] attribute. This fixes bug #71332.
330
331 2005-01-14  Atsushi Enomoto  <atsushi@ximian.com>
332
333         * SerializationCodeGenerator.cs,
334           XmlSerializationWriterInterpreter.cs : exchanged attribute
335           serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
336           xmlns attributes in XmlAnyAttribute are not written.
337
338 2005-01-12  Atsushi Enomoto  <atsushi@ximian.com>
339
340         * SerializationCodeGeneratorConfiguration.cs,
341           SerializationCodeGenerator.cs : Added some generation configuration:
342                 <generateAsInternal>
343                         write custom reader/writer as internal classes.
344                 <noreader>, <nowriter>
345                         They make generation of reader and/or writer optional.
346         * XmlSerializerNamespaces.cs :
347           Now it uses ListDictionary instead of Hashtable.
348         * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
349           written unless there is already the same prefix-ns mapping.
350
351 2005-01-12  Lluis Sanchez Gual  <lluis@novell.com>
352
353         * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
354         * XmlSchemaImporter.cs: When importing a base type of a complex type,
355         make sure that the base class is always imported as a class and not
356         as an array. If it has been imported as array, import it again.
357         This fixes bug #70839. Other minor fixes as well.
358         * XmlSerializationWriter.cs: Fixed warning.
359
360 2004-12-09  Lluis Sanchez Gual  <lluis@novell.com>
361
362         * SerializationCodeGenerator.cs: Yet another generation fix.
363
364 2004-12-09  Lluis Sanchez Gual <lluis@novell.com>
365
366         * SerializationCodeGenerator.cs: Fixed generation of enum literals.
367
368 2004-12-09  Lluis Sanchez Gual  <lluis@novell.com>
369
370         * XmlReflectionMember.cs: Added DeclaringType member.
371         * XmlReflectionImporter.cs: When importing fields that belong to a
372         base class, use the xml namespace of the base map for the member.
373         This fixes bug #70309.
374
375 2004-11-30  Lluis Sanchez Gual  <lluis@novell.com>
376
377         * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
378         compilation warnings.
379
380 2004-11-24  Lluis Sanchez Gual  <lluis@novell.com>
381
382         * SerializationSource.cs: Made SerializationSource abstract, and
383         renamed Equals to BaseEquals to avoid missing GetHashCode warning
384         (it does not really make sense in this case).
385         * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
386         XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
387         XmlSerializationReader.cs: Fixed warnings.
388
389 2004-10-19  Atsushi Enomoto  <atsushi@ximian.com>
390
391         * XmlSerializationWriter.cs : When namespace is an empty string,
392           XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
393           such case.
394
395 2004-10-01  Lluis Sanchez Gual  <lluis@novell.com>
396
397         * MapCodeGenerator.cs: When the Object type is exported, export all
398           derived maps. This was done in IncludeMetadata, but this method is
399           not called by the xsd tool.
400         * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
401           attribute for primitive types and arrays.
402         * XmlSchemaImporter.cs: Only export all object-derived maps if the
403           Object type is explicitly referenced by an element.
404         * XmlSerializationWriter.cs: Minor fix.
405
406 2004-09-28  Lluis Sanchez Gual  <lluis@novell.com>
407
408         * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
409           This fixes bug #66877.
410
411 2004-09-21  Lluis Sanchez Gual  <lluis@novell.com>
412
413         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
414           when reading a primitive value in encoded format using
415           ReadReferencingElement, provide the type name and namespace
416           since the xsi type may not be present in the xml element. This
417           fixes bug #65929.
418
419 2004-09-15  Lluis Sanchez Gual  <lluis@novell.com>
420
421         * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
422           ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
423         * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
424           ImportIncludedTypes to the end, to make sure that the current map has all
425           needed data before derived maps are constructed.
426         * XmlSchemaExporter.cs: Generate the base class of simple types that are
427           not primitive types. Set the correct value for IsMixed in extended types.
428         * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
429           the base class of a simple type doesn't need to be a xsd type.
430           All those patches fix bug #65654.
431
432 2004-09-03  Lluis Sanchez Gual  <lluis@novell.com>
433
434         * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
435           Normalization==true by default.
436
437 2004-09-02  Lluis Sanchez Gual  <lluis@novell.com>
438
439         * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs: 
440           In CheckSerializableType, add the option of ignoring types with private
441           constructors. Some kind of lists can be deserialized
442           even if the constructor is private. See bug #61464.
443         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
444           Before creating a list, check that it has a public constructor.
445         * TypeData.cs: Added HasPublicConstructor property.
446
447 2004-09-01  Lluis Sanchez Gual  <lluis@novell.com>
448
449         * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
450           value list serialization.
451         * XmlSchemaImporter.cs: Added some null checks.
452
453 2004-08-25  Lluis Sanchez Gual  <lluis@novell.com>
454
455         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
456           When deserializing an encoded method response, assign to the return value
457           the first element of the message, whatever it is. The return type doesn't
458           need to be Object, it seems to be true for all return types.
459           
460 2004-07-26  Lluis Sanchez Gual  <lluis@ximian.com>
461
462         * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
463           no need to add it after the call.
464         * SoapSchemaImporter.cs: Implemented 2.0 constructors.
465
466 2004-07-23  Lluis Sanchez Gual  <lluis@novell.com>
467
468         * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
469         * ImportContext.cs: Implemented.
470         * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
471           options for 2.0. Implemented support for generating properties instead of
472           fields.
473         * XmlSchemaImporter.cs: Added support for sharing types.
474
475 2004-07-15  Lluis Sanchez Gual  <lluis@novell.com>
476
477         * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
478           xsd type is not part of the last schema specification, but the google api
479           uses it and ms.net accepts it.
480
481 2004-07-12  Lluis Sanchez Gual  <lluis@ximian.com>
482
483         * ReflectionHelper.cs: Fixed bug when registering a map as exported.
484           Thanks to Juan C. Olivares.
485
486 2004-07-10  Lluis Sanchez Gual  <lluis@ximian.com>
487
488         * CodeExporter.cs: Added private constructor.
489         * CodeGenerationOptions.cs: Set the correct enum values.
490         * CodeIdentifier.cs: Added private constructor.
491         * SchemaImporter.cs: Added internal constructor.
492         * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
493         * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
494         * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
495           XmlSerializerVersionAttribute.cs: Set correct attribute usage.
496         * XmlSerializationReader.cs: Added missing setter for DecodeName.
497
498 2004-07-08  Lluis Sanchez Gual  <lluis@ximian.com>
499
500         * XmlSerializer.cs: Fix fix.
501
502 2004-07-08  Lluis Sanchez Gual  <lluis@ximian.com>
503
504         * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
505         * ReflectionHelper.cs: New method for generating map keys.
506         * SerializationCodeGenerator.cs: Added support for generating the serializer
507           contract class, needed for 2.0.
508         * SerializationSource.cs: Use Type[] instead of ArrayList for storing
509           extra types.
510         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types 
511           as Type[]. Added check that makes sure that enums being serialized are
512           public.
513         * XmlMapping.cs: Added internal GetKey method.
514         * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
515           Added first bits to support loading of serializers from pre-generated
516           assemblies.
517         * XmlSerializerFactory.cs: Mostly implemeted.
518
519 2004-07-02  Lluis Sanchez Gual  <lluis@ximian.com>
520
521         * CodeIdentifier.cs: Removed constructor for NET_2_0.
522         * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs, 
523           XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
524           XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
525           XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
526           XmlSerializerNamespaces.cs: Added 2.0 stubs.
527         * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
528         * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
529           ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
530           SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
531           XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
532           XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
533           XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
534
535 2004-07-02  Lluis Sanchez Gual  <lluis@ximian.com>
536
537         * SerializationCodeGenerator.cs: Generate check that the object being 
538           serialized has a known type. Little cast fix.
539         * XmlCustomFormatter.cs: Little fix in Single conversion.
540
541 2004-07-01  Lluis Sanchez Gual  <lluis@ximian.com>
542
543         * TypeData.cs: In the constructor, set the correct xml type name if the
544           type is an array (for example, instead of StringCollection, use
545           ArrayOfString).
546
547 2004-06-22  Lluis Sanchez Gual  <lluis@ximian.com>
548
549         * ReflectionHelper.cs: Correctly detect private types.
550         * XmlCodeExporter.cs: Implemented missing method.
551         * XmlSchemaImporter.cs: Allow import of root primitive types.
552
553 2004-06-18  Atsushi Enomoto  <atsushi@ximian.com>
554
555         * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
556           SerializationCodeGenerator.cs, SerializationSource.cs,
557           TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
558           XmlSerializationReader.cs, XmlSerializationWriter.cs,
559           XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
560           : Globalization fixes.
561             In XmlCustomFormatter.GenerateToXmlString() time was not
562             generated correctly.
563             Replaced all CRLF XmlAttributeOverrides.cs into LF.
564
565 2004-06-13  Gert Driesen <drieseng@users.sourceforge.net>
566
567         * XmlSerializationWriter.cs: changed signature of protected method
568         FromByteArrayBase64 to match MS.NET
569
570 2004-06-10  Lluis Sanchez Gual <lluis@ximian.com>
571
572         * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
573           attributes that MS.NET generates.
574         * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
575           same reader/writer.
576         * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
577         * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
578           MS.NET member ordering. Patch by David Taylor.
579         * XmlSchemaImporter.cs: When generating a choice member, set the ignore
580           flag. The generated enum must also not be included in the schema.
581         * XmlTypeMapMember.cs: Added ignore flag.
582         * XmlTypeMapping.cs: The AttributeMembers property now returns the 
583           attributes in the correct order.
584
585 2004-06-03  Gert Driesen <drieseng@users.sourceforge.net>
586
587         * XmlSerializationReader.cs: added missing protected members
588         to fix API compatibility with MS.NET
589         * XmlSerializationWriter.cs: added missing protected members
590         to fix API compatibility with MS.NET
591
592 2004-06-02  Lluis Sanchez Gual <lluis@ximian.com>
593
594         * XmlSerializationReader.cs: Support schamea instance namespaces other than
595           the 2001 one when reading the xsi type.
596         * MapCodeGenerator.cs: Take into account that the root namespace and element
597           name may have changed from one export to another of the same type. In
598           this case the class attributes need to be regenerated.
599         * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
600           not ElementName. Idem for namespace.
601         * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
602         * XmlRootAttribute.cs: Default value for nullable is true.
603         * XmlSchemaImporter.cs: The root name for a class may change in some
604           scenarios (for example, when the type is initially exported as part of
605           another type and later exported as a root type).
606         * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
607           found using the standard namespace, try getting the type using
608           the 2000/10 and 1999 namespaces.
609         * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
610
611 2004-05-26  Lluis Sanchez Gual <lluis@ximian.com>
612
613         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
614           In encoded format, primitive types can be null. Read them using
615           ReadReferencingElement, that already checks for the null tag.
616
617 2004-05-25  Lluis Sanchez Gual <lluis@ximian.com>
618
619         * XmlSerializationReader.cs: Check for empty element when reading an array
620           element. This fixes bug #59003. Thanks Atsushi!
621
622 2004-05-07  Lluis Sanchez Gual <lluis@ximian.com>
623
624         * XmlSerializationWriter.cs: Implemented some missing methods.
625           In .NET 1.0, encoded null elements use the attribute null="1", while in
626           1.1 the attribute is nil="true".
627         * XmlTypeMapping.cs: Little fix for nested classes.
628
629 2004-05-07  Lluis Sanchez Gual <lluis@ximian.com>
630
631         * XmlReflectionImporter.cs: Don't reset the internal tables at every
632           ImportMembersMapping call. This fixes bug #58112. The problem is that
633           it imported two different arrays (only different in the array item
634           namespace) with the same name. Not sure what was this Reset needed for,
635           everyting seems to work without it.
636
637 2004-05-05  Lluis Sanchez Gual <lluis@ximian.com>
638
639         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
640           When deserializing an encoded method response, if the return type of the
641           method is Object, assign to it the first element of the message, whatever
642           it is.
643         * XmlSerializationReader.cs: 
644         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
645           the imported member.
646         * TypeTranslator.cs: Added method to safely get a primitive TypeData.
647         * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
648           a given xsi type is not found. Just read it as primitive type.
649         * XmlTypeMapMember.cs: Added IsReturnValue property.
650         * XmlTypeMapping.cs: Added ReturnMember property.
651         * XmlSerializer.cs: Reference System.Data when compiling the serializer.
652
653 2004-05-05  Lluis Sanchez Gual <lluis@ximian.com>
654
655         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
656           When reading an object using the typeof(object) map, an emty xsi:type 
657           means that it has to read the contents into an XmlNode[].
658         * TypeData.cs: Return the correct full name for inner classes.
659         * XmlSchemaImporter.cs: Improved detection of types that represent 
660           "anyType", and must be mapped to XmlElement, XmlNode or Object.
661         * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
662           the correct namespace.
663           In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
664           not known.
665
666 2004-05-05  Atsushi Enomoto  <atsushi@ximian.com>
667
668         * XmlSerializationWriter.cs : It do not have to handle schema
669           namespace as special one.
670
671 2004-05-03  Lluis Sanchez Gual <lluis@ximian.com>
672
673         * XmlSerializationReaderInterpreter.cs: Removed the check for null 
674           AttributeMembers collection. Even if there are no attribute members,
675           attributes need to be read.
676
677 2004-05-03  Lluis Sanchez Gual <lluis@ximian.com>
678
679         * XmlSerializationReader.cs: In ReadSerializable(), take into account that
680           the IXmlSerializable object may not read all the EndElement it read.
681           This fixes bug #57413.
682
683 2004-05-03  Lluis Sanchez Gual <lluis@ximian.com>
684
685         * XmlSerializer.cs: Enable serializer generation by default.
686
687 2004-04-20  Lluis Sanchez Gual <lluis@ximian.com>
688
689         * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
690         * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
691           turns out that it is an array, import it again as array. This fixes
692           bug #57133.
693
694 2004-04-15  Lluis Sanchez Gual <lluis@ximian.com>
695
696         * XmlSchemaExporter.cs: When checking if a map has been exported or not,
697           don't use type name for array types, since we can have different classes 
698           that represent the same array type (for example StringCollection and 
699           string[]).
700
701 2004-04-14  Lluis Sanchez Gual <lluis@ximian.com>
702
703         * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
704           not present in MS.NET.
705         * XmlSerializationWriter.cs: Improved error message.
706
707 2004-03-30  Lluis Sanchez Gual <lluis@ximian.com>
708
709         * SerializationCodeGenerator.cs, XmlReflectionImporter.cs, 
710           XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
711           Support deserialization of members of type XmlDocument. This fixes #56169.
712
713 2004-03-25  Lluis Sanchez Gual <lluis@ximian.com>
714
715         * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
716           Use a special method to generate default values, since default enum values
717           will come as integers, so a special cast is needed.
718         * XmlSerializationReaderInterpreter.cs,
719         * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
720           SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs, 
721           SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
722           XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, 
723           XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
724           XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
725           XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
726           XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
727           of SerializationSource. It can't keep and use the XmlAttributeOverride
728           instances as key values, since those instances can be modified after the
729           xml map has been generated. Now, SerializationSource generates a unique 
730           string hash from XmlAttributeOverride and uses it for comparisons.
731
732 2004-03-24  Lluis Sanchez Gual <lluis@ximian.com>
733
734         * SerializationCodeGenerator.cs: Several fixes: generate valid names for 
735           WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
736           the adequate type. Set the default value of members that do have a default
737           value. Other minor fixes.
738         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
739           from typeof(object) map, even those that have another base class.
740         * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
741           It must serialize the char as number, not as character.
742         * XmlSerializationReaderInterpreter.cs: Set the default value of members 
743           that do have a default value.
744         * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
745           of members that have a default value.
746
747 2004-03-15  Lluis Sanchez Gual  <lluis@ximian.com>
748
749         * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
750           This fixes bug #55547.
751
752 2004-03-13  David Sheldon <dave-mono@earth.li>
753
754   * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
755    byte [].
756
757 2004-03-13  David Sheldon <dave-mono@earth.li>
758  
759   * XmlTextAttribute.cs: Initialise dataType with zero-length string. 
760    fixes test case that tests for this directly.
761   * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
762    it. Treat it as null.
763    
764 2004-03-12  Lluis Sanchez Gual  <lluis@ximian.com>
765
766         * CodeIdentifier.cs: Limit the length of identifiers.
767         * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
768           Generate types using GetDomType, so if the type is an array, it creates
769           the correct combination of types.
770         * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
771           an enum, if the string is empty and the enum has [Flags], then return 0
772           as value. This fixes bug #55509.
773         * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
774           are not supported. Another check: a simple type cannot be enum if it does
775           not have any enum facet.
776           And another fix: use string as default type for attribtues.
777         * XmlSchemas.cs: Fixed search for schema elements. An schema may import 
778           other schemas. An imported schema would not be in the table, but its
779           elements (although from another namespace) would be in the schema that 
780           imported it. So, we need know to check for every schema in the table.
781         * XmlSerializer.cs: Added environment variable to help debugging code 
782           generator output.
783
784 2004-02-27  Lluis Sanchez Gual  <lluis@ximian.com>
785
786         * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
787           of XmlInclude attributes needed for the service class.
788           IsMapExported: Removed check for object type, since it can now be exported.
789           SetMapExported: Use the type name as key, since different importers may
790           be used to create a map for the same type.
791           GenerateClassInclude: Updated signature.
792         * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
793           GenerateClassInclude(): Updated signature.
794         * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
795           Implemented IncludeTypes.
796         * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
797           GenerateClassInclude(): Updated signature.
798         * XmlMemberMapping.cs: Added missing property.
799         * XmlReflectionImporter.cs: GetReflectionMembers must be private.
800           Implemented IncludeTypes().
801         * XmlSchemaExporter.cs: Added support for exporting typeof(object).
802         * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
803           Now, it does a regular import and then assign the required base class to
804           the imported map. In this way it is possible to assign a base type for a 
805           map that was previously imported without a base type.
806         * XmlTypeMapping.cs: Added internal method SetRoot().
807
808 2004-02-24  Lluis Sanchez Gual  <lluis@ximian.com>
809
810         * SerializationCodeGenerator.cs: Added support for generation of readers
811           and writers for several maps in a single class. Added support for
812           XmlMemberMapping. Fixed generation of serializers that use encoded format.
813         * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
814           SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs, 
815           XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
816           XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
817           XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
818           XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
819           XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
820           Added InternalEquals method.
821         * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
822         * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
823         * XmlCustomFormatter.cs: Fixed little bug.
824         * XmlMapping.cs: Added Source property. This a global identifier of the map.
825         * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
826         * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
827           mapping members.
828         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
829         * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
830           correctly used.
831         * XmlSerializer.cs: Added support for generation of serializers.
832
833 2004-02-18  Atsushi Enomoto  <atsushi@ximian.com>
834
835         * SerializationCodeGenerator.cs,
836           SerializationCodeGeneratorConfiguration.cs:
837           Added <namespaceImports> feature ("using XXX;" generation) support.
838
839 2004-02-17  Lluis Sanchez Gual  <lluis@ximian.com>
840
841         * XmlSerializationWriter.cs: When writing the root element, use a prefix
842           if the namespace of the element is defined in the list of namespaces
843           provided to the XmlSerializer. This fixes bug #54427.
844
845 2004-02-16  Lluis Sanchez Gual  <lluis@ximian.com>
846
847         * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
848           Those are basically methods to add custom attributes to element and
849           attribute members.
850         * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
851         * XmlCodeExporter.cs: Better support for custom attribute generation for
852           method parameters.
853         * XmlCustomFormatter.cs: Added null check.
854         * XmlSchemaImporter.cs: do not set IsOptionalValueType property to 
855           attributes that are required.
856         * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
857           as attributes.
858
859 2004-02-11  Lluis Sanchez Gual  <lluis@ximian.com>
860
861         * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
862         * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
863           string, not string[].
864         * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
865           for array parameters. In general, improved generation of schema Form 
866           property.
867         * XmlMemberMapping.cs: Added Form property.
868         * XmlReflectionImporter.cs: Types that inherit from other types cannot be
869           simple types. Added a check for this.
870         * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
871           Form. The key used to determine if a map has been already generated must
872           include the XmlType, since there can be two xml types with the same CLR
873           type and namespace (for example, they may differ in the Form property).
874         * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
875           also return the corresponding map. There can be two maps that have the
876           same TypeData, so given a TypeData is not always possible to get the
877           correct corresponding map (for example two arrays that only differ in the
878           Form of the item).
879         * XmlTypeMapping.cs: Added method to set if a map can represent a simple
880           type or not.
881
882 2004-02-04  Lluis Sanchez Gual  <lluis@ximian.com>
883
884         * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
885           normalizedString schema type.
886
887 2004-02-04  Lluis Sanchez Gual  <lluis@ximian.com>
888
889         * XmlReflectionImporter.cs: Get the class members using the right order.
890         * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
891           A member with the Any attribute can also contain text. Support this.
892         * XmlTypeMapMemberElement.cs: Added CanBeText property.
893
894 2004-01-27  Lluis Sanchez Gual  <lluis@ximian.com>
895
896         * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
897           check.
898
899 2004-01-27  Lluis Sanchez Gual  <lluis@ximian.com>
900
901         * MapCodeGenerator.cs: Added helper method for generating an attribute
902           parameter of type enum.
903         * XmlAttributeAttribute.cs: little fix.
904         * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
905           for method parameters.
906         * XmlMemberMapping.cs: Improved support for members of type "any".
907         * XmlReflectionImporter.cs: Improved assignment of the attribute form.
908           If the namespace is explicitly specified, then the form should be
909           qualified. Also fixed issues with the namespace assigned to attributes.
910           This should fix bug #53384.
911         * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
912           methods that return values of type "any". Changed the methods
913           AddSchemaArrayElement and AddSchemaElement, so instead of adding the
914           element, return it, and the caller must add it to the collection.
915           Other fixes in attribute generation.
916         * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
917           generate the AnyType mapping from the type described in the schema.
918           Small fixes regarding IsMixed property of complex types (it means that
919           the type can contain text, so the XmlTextAttribute must be generated).
920         * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
921           be only used in the bare+encoded format.
922
923 2004-01-24  Lluis Sanchez Gual  <lluis@ximian.com>
924
925         * SoapReflectionImporter.cs: Types included with SoapInclude don't need
926           to be derived types of the one that has the attribute.
927         * XmlReflectionImporter.cs: Recursively register the derived maps of a given
928           map to the parent map. This fixes #53246.
929         * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
930
931 2004-01-22  Lluis Sanchez Gual  <lluis@ximian.com>
932
933         * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
934           do not check the root element name, since it can be any name. This fixes
935           bug #53201.
936
937 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
938
939         * XmlReflectionImporter.cs: Throw exception if a value type member has the
940           IsNullable=true flag. This fixes bug #52906.
941
942 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
943
944         * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
945           so a 'specified' member has always to be generated.
946         * TypeData.cs: Fixed check for value type.
947
948 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
949
950         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
951           XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
952           XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
953           XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
954           XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
955           Added support for value specifiers members. This fixes bug #53024.
956
957 2004-01-20  Lluis Sanchez Gual  <lluis@ximian.com>
958
959         * XmlSchemaExporter.cs: Don't create referenced element if it has already
960           been created (two types could be referencing the same schema element).
961
962 2004-01-19  Lluis Sanchez Gual  <lluis@ximian.com>
963
964         * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
965         * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
966           arrays. This fixes bug #53018.
967
968 2004-01-14  Lluis Sanchez Gual  <lluis@ximian.com>
969
970         * MapCodeGenerator.cs: Use type namespace instead of root namespace as
971           default namespace for members.
972         * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
973         * XmlReflectionImporter.cs: Fixed the assignment of root and type 
974           namespaces.
975         * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
976           default namespace for members. In AddSchemaElement, if the element is
977           a root element never use a "ref" attribute.
978         * XmlSchemaImporter.cs: Fixed issue when importing root elements.
979
980 2004-01-13  Lluis Sanchez Gual  <lluis@ximian.com>
981
982         * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
983         XmlTypeMapping.cs: more namespace fixes.
984
985 2004-01-13  Lluis Sanchez Gual  <lluis@ximian.com>
986
987         * XmlReflectionImporter.cs: type namespace must never be used as root
988           namespace. This fixes bug #52772.
989
990 2004-01-08  Nick Drochak <ndrochak@ieee.org>
991
992         * XmlSchemaImporter.cs: Removed unused variable.
993
994 2004-01-07  Lluis Sanchez Gual  <lluis@ximian.com>
995
996         * XmlReflectionImporter.cs: Ignore Namespace property when applying
997           the [XmlType] attribute to an enum. This fixes bug #52607.
998
999 2003-12-19  Lluis Sanchez Gual  <lluis@ximian.com>
1000
1001         * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
1002         option that allow serialization of private types.
1003         
1004 2003-12-18 Eran Domb <erand@mainsoft.com>
1005         
1006         * TypeTranslator.cs : Change primtive types map.
1007
1008 2003-12-18 Eran Domb <erand@mainsoft.com>
1009         
1010         * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
1011         classes of object.
1012
1013 2003-12-15  Lluis Sanchez Gual <lluis@ximian.com>
1014
1015         * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
1016           to check if a type is primitive, instead of Type.IsPrimitive, since CLR
1017           primitive types are not the same as XML primitive types. Patch proposed
1018           by Mordechai Taitelman. This fixes bug #52228.
1019         * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
1020
1021 2003-12-15  Lluis Sanchez Gual <lluis@ximian.com>
1022         
1023         * XmlReflectionImporter.cs: Little fix.
1024         
1025 2003-12-15  Lluis Sanchez Gual <lluis@ximian.com>
1026         
1027         * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
1028           need to be derived types of the includer. This fixes bug #52152.
1029           Added null check for Name property of XmlEnumAttribute. This fixes
1030           bug #52155.
1031         * XmlSerializationReader.cs: Fixed some error messages.
1032         * XmlSerializationReaderInterpreter.cs: Check that the root element has
1033           the correct local name and namespace. This fixes bug #52038.
1034           Throw exception if enum value can't be parsed.
1035         * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
1036           bug #52041.
1037         
1038 2003-12-12  Lluis Sanchez Gual <lluis@ximian.com>
1039         
1040         * MapCodeGenerator.cs: Added support for [Flags] enum.
1041         * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
1042         * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
1043           encoded array type. Added support for enums with [Flags].
1044           In encoded format, unqualified types are schema types by default.
1045         
1046 2003-12-11  Lluis Sanchez Gual <lluis@ximian.com>
1047         
1048         * XmlCodeExporter.cs: Little fix.
1049         * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
1050           same name have the same type.
1051         * XmlSchemaImporter.cs: Support xml:lang.
1052         * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs: 
1053           fixed wrong namespace for the arrayType attribute.
1054
1055 2003-12-08  Lluis Sanchez Gual <lluis@ximian.com>
1056
1057         * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
1058           XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
1059           When using rpc format on a web service, members don't need to have any
1060           specific namespace. Added a flag for turning namespace check on/off.
1061
1062 2003-11-27  Lluis Sanchez Gual <lluis@ximian.com>
1063
1064         * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
1065           delayedListFixups.Count cannot be used because elementes from
1066           delayedListFixups are deleted sometimes.
1067         
1068 2003-11-27  Lluis Sanchez Gual <lluis@ximian.com>
1069
1070         * XmlReflectionImporter.cs: Indexer properties must not be serialized.
1071           This fixes bug #51060.
1072
1073 2003-11-24  Lluis Sanchez Gual <lluis@ximian.com>
1074
1075         * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb: 
1076           If type is Enum the code use type.GetElememtType() instead of 
1077           Enum.GetUnderlyingType().
1078
1079 2003-11-12  Lluis Sanchez Gual <lluis@ximian.com>
1080
1081         * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
1082           Removed several TODOs already done.
1083
1084 2003-11-03  Lluis Sanchez Gual <lluis@ximian.com>
1085
1086         * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
1087           bug #50041.
1088
1089 2003-10-20  Lluis Sanchez Gual <lluis@ximian.com>
1090
1091         * ReflectionHelper.cs: In CheckSerializableType() check that the type
1092           is public.
1093         * XmlSerializationWriter.cs: Added check for circular references.
1094           This fixes bug #49879.
1095
1096 2003-10-20  Lluis Sanchez Gual <lluis@ximian.com>
1097
1098         * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
1099           can't be serialized. This fixes bug #49878.
1100         * TypeData.cs: In ListItemType check that the collection has a valid
1101           Add method and report an error if not.
1102         * XmlReflectionImporter.cs: Added CheckSerializableType check call when
1103           reflecting a collection.
1104
1105 2003-10-18  Lluis Sanchez Gual <lluis@ximian.com>
1106
1107         * SoapReflectionImporter.cs: Support element references for enum values in
1108           encoding format. This fixes bug #49568.
1109         * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
1110           the name and namespace of the wrapper element. MS.NET doesn't do it.
1111           This fixes bug #49729.
1112
1113 2003-10-15  Lluis Sanchez Gual <lluis@ximian.com>
1114
1115         * MapCodeGenerator.cs: Made MapCodeGenerator internal.
1116
1117 2003-10-15  Lluis Sanchez Gual <lluis@ximian.com>
1118
1119         * MapCodeGenerator.cs: New file. Moved here all code that is common
1120           between XmlCodeExporter and SoapCodeExporter.
1121         * SoapCodeExporter.cs: Implemented.
1122         * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
1123         * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
1124           encoded bare parameter list.
1125         * XmlTypeMapping.cs: Added method for getting member element by index.
1126
1127 2003-10-14  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1128
1129         * XmlSchemas.cs : Implemented IsDataSet().
1130
1131 2003-10-13  Lluis Sanchez Gual <lluis@ximian.com>
1132
1133         * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
1134         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs: 
1135           in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
1136         * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
1137         * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
1138           and whether it uses encoded or literal format.
1139         * XmlSchemaExporter.cs: Little fixes.
1140
1141 2003-10-10  Lluis Sanchez Gual <lluis@ximian.com>
1142
1143         * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
1144           need to be of type SOAP-ENC:Array, it can be a restriction of it.
1145
1146 2003-10-10  Lluis Sanchez Gual <lluis@ximian.com>
1147
1148         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
1149           Read only properties are only serialized if the type is an array.
1150
1151 2003-10-09  Lluis Sanchez Gual <lluis@ximian.com>
1152
1153         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, 
1154           SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
1155           is not needed for value types.
1156
1157 2003-10-08  Lluis Sanchez Gual <lluis@ximian.com>
1158
1159         * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
1160           (XmlSerializer.Serialize() handles namespace parameter incorrectly)
1161
1162 2003-10-05  Lluis Sanchez Gual <lluis@ximian.com>
1163
1164         * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
1165
1166 2003-10-04  Lluis Sanchez Gual <lluis@ximian.com>
1167
1168         * XmlSchemaExporter.cs: Keep track of elements being exported.
1169         * XmlSchemas.cs: Removed unneeded catch.
1170
1171 2003-10-01  Lluis Sanchez Gual <lluis@ximian.com>
1172
1173         * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 
1174           Fixed handling of members with XmlTextAttribute that are arrays.
1175         * TypeData.cs: IsComplexType now returns true for XmlNode.
1176         * XmlSerializer.cs: Added check for null mapping in FromMappings.
1177         * XmlTypeMapping.cs: Added helper method FindTextElement.
1178
1179 2003-09-28  Lluis Sanchez Gual <lluis@ximian.com>
1180         
1181         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
1182           Added support for IncludeInSchema flag.
1183         * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1184         * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
1185           methods. Added support for IncludeInSchema flag.
1186         * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1187           Added support for IncludeInSchema flag.
1188         * XmlTypeAttribute.cs: Set includeInSchema to true by default.
1189         * XmlTypeMapping.cs: Added IncludeInSchema property.
1190         
1191 2003-09-25  Lluis Sanchez Gual <lluis@ximian.com>
1192         
1193         * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
1194
1195 2003-09-14  Lluis Sanchez Gual <lluis@ximian.com>
1196
1197         * XmlCustomFormatter.cs: added support for additional string types in
1198           GenerateToXmlString().
1199         * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using 
1200           encoded format.
1201
1202 2003-09-11  Lluis Sanchez Gual <lluis@ximian.com>
1203
1204         * SoapSchemaImporter.cs: implemented.
1205         * XmlReflectionImporter.cs: Changed nullable default for array items to true.
1206         * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
1207         * XmlSchemaImporter.cs: more support for encoded format.
1208
1209 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
1210
1211         * SerializationCodeGenerator.cs: Minor fixes.
1212         * SoapReflectionImporter.cs: More fixes.
1213         * SoapSchemaExporter.cs: implemented.
1214         * SoapSchemaImporter.cs: Initial implementation.
1215         * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
1216           and ParseArrayType
1217         * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
1218         * XmlMemberMapping.cs: Minor fixes.
1219         * XmlMembersMapping.cs: added some convenient constructors.
1220         * XmlSchemaExporter.cs: Added support for encoded format.
1221         * XmlSchemaImporter.cs: Added support for encoded format. 
1222         * XmlSerializationReader.cs: changed some string literals by constants.
1223           Implemented ParseWsdlArrayType.
1224         * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
1225           custom attributes.
1226         * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
1227         * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
1228           WriteAttribute to write custom attributes.
1229         * XmlSerializer.cs: added some namespace constants.
1230         * XmlTypeMapping.cs: added GetSchemaArrayName method.
1231
1232 2003-09-01  Lluis Sanchez Gual <lluis@ximian.com>
1233
1234         * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
1235         * XmlTypeMapMemberElement.cs: Little fix.
1236         * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
1237         * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
1238           methods.
1239         * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
1240           Added.
1241
1242 2003-08-29  Lluis Sanchez Gual <lluis@ximian.com>
1243
1244         * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1245         * XmlMemberMapping.cs: Changed constructor.
1246         * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1247         * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
1248         * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
1249         * XmlSerializationWriterInterpreter.cs: Changed visibility.
1250
1251 2003-08-28  Lluis Sanchez Gual <lluis@ximian.com>
1252
1253         * XmlSerializer.cs: Fix in Deserialize() method.
1254
1255 2003-08-28  Lluis Sanchez Gual <lluis@ximian.com>
1256
1257         * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
1258         * XmlSchemas.cs: Find method: make sure the returned object belongs to
1259           the requested type.
1260         * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
1261           Add null checks for eventSource.
1262         * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
1263         * XmlSerializationWriter.cs: In Initialize method, initialize the provided
1264           namespece declarations. Virtual method WriteObject not needed any more.
1265           In WriteStartElement, write the provided namespaces.
1266         * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
1267           Added GetTypeMap method, that returns the map for a given type. Added some
1268           virtual methods, so writer behavior can be extended at several places by
1269           derived classes.
1270         * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual 
1271           methods CreateReader and CreateWriter are not called unless no type or 
1272           type mapping was provided in the constructor.
1273
1274 2003-08-12  Lluis Sanchez Gual <lluis@ximian.com>
1275
1276         * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
1277           schema type it is importing is a class or an array. It will always
1278           be a class.
1279
1280 2003-08-12  Lluis Sanchez Gual <lluis@ximian.com>
1281
1282         * XmlSerializationWriterInterpreter.cs: any element members can be serialized
1283           as text nodes. Support it.
1284
1285 2003-08-05  Lluis Sanchez Gual <lluis@ximian.com>
1286
1287         * CodeIdentifier.cs: Fixed MakeValid method.
1288         * TypeTranslator.cs: Added support for more primitive types. Added
1289           GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
1290           maps by default.
1291         * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
1292           are different from the type ns and name.
1293           Generate class and field comments.
1294           Fixed default attribute generation. In elements with ref attribute, it has to be
1295           generated in the referred attribute.
1296         * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
1297           Added suport for text nodes in members of type "any".
1298         * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
1299           content.
1300         * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
1301         * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
1302           that have already been declared.
1303           WriteStartElement(): elements from schema namespace are always written with ns prefix.
1304         * XmlTypeMapMember.cs: Added documentation property.
1305         * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
1306           represents a simple type.
1307
1308 2003-08-05  Lluis Sanchez Gual <lluis@ximian.com>
1309
1310         * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
1311           stuff.
1312         * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
1313         * TypeData.cs: Added property that returns a TypeData that represents an array of
1314           the given TypeData.
1315         * TypeTranslator.cs: Added GetArrayName() method.
1316           Added TypeDatas for missing primitive types.
1317         * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
1318           XmlRootAttribute. Added the namespace to all attributes being generated.
1319           Other fixes in the generation of code.
1320         * XmlReflectionImporter: store the namespace of the type in the maps.
1321         * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
1322           class can generate text. Do not export inherited attributes of a class.
1323           Use the new root namespace stored in the map when generating the root element.
1324         * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
1325           namespace is the default namespace.
1326         * XmlSerializationWriterInterpreter.cs: fixed missing "else".
1327         * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
1328           namespace instead of the map namespace (which can be different if the type
1329           has a XmlRoot element).
1330         * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
1331           to System.DBNull.Value.
1332         * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
1333           the collection if it has not yet been created.
1334         * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
1335           of the type. It may be different from the namespace of the map if the type
1336           has a XmlRoot element. Also added IsSimpleType property.
1337           In ClassMap, added AllMembers property.
1338         
1339 2003-07-30  Lluis Sanchez Gual <lluis@ximian.com>
1340
1341         * TypeData.cs: Added new constructor and variables to allow the creation of
1342           a TypeData without a Type. Added ListItemTypeData property.
1343         * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
1344           array of arrays. Added also a property to get the nested array map.
1345         * XmlCodeExporter.cs: First implementation of code exporter.
1346
1347 2003-07-22  Lluis Sanchez Gual <lluis@ximian.com>
1348
1349         * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
1350         * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
1351           they have.
1352
1353 2003-07-15  Lluis Sanchez Gual <lluis@ximian.com>
1354
1355         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
1356           maps with the same name and namespace. To avoid this, maps must be registered
1357           using the real map namespace, not the default namespace (the namespace can
1358           change if the type has a XmlType or SoapType attribute).
1359         * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
1360         * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
1361           Other small fixes.
1362         * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
1363           is null.
1364
1365 2003-07-14  Lluis Sanchez Gual <lluis@ximian.com>
1366
1367         * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
1368         * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
1369         * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
1370         * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
1371         * XmlSchemaExporter.cs: Implemented.
1372         * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
1373         * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
1374           GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
1375         * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
1376           GetStringValue() returns null if the value is null, instead of empty string.
1377           (attributes with null values are not written).
1378         * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
1379         * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
1380           DataType value can is now in TypeData.
1381         * XmlTypeMapMemberElement.cs: Small fix.
1382         * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
1383
1384 2003-07-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1385
1386         * AssemblyInfo.cs: Removed
1387
1388 2003-07-9  Lluis Sanchez Gual <lluis@ximian.com>
1389
1390         * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi 
1391           namespace declarations if they have already been defined.
1392
1393 2003-07-2  Lluis Sanchez Gual <lluis@ximian.com>
1394
1395         * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
1396           for adding elements to a list.
1397
1398 2003-06-31  Lluis Sanchez Gual <lluis@ximian.com>
1399
1400         * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and 
1401           SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then 
1402           A includes C).
1403
1404 2003-06-30  Lluis Sanchez Gual <lluis@ximian.com>
1405
1406         * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs: 
1407           Added support for serialization of enums with the Flags attribute.
1408
1409 2003-06-30  Lluis Sanchez Gual <lluis@ximian.com>
1410
1411         * SoapReflectionImporter.cs: Fix support for DataType in class members.
1412         * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
1413           can have other names.
1414         * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
1415         * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
1416           XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs: 
1417           Fix support for DataType in class members.
1418         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs: 
1419           Added support for array of primitive types in attributes.
1420
1421 2003-06-28  Lluis Sanchez Gual <lluis@ximian.com>
1422
1423         * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
1424           be overlodaded, so it is not good for this.
1425         * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
1426
1427 2003-06-24  Lluis Sanchez Gual <lluis@ximian.com>
1428
1429         * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
1430         * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
1431           array if the namespace is not specified in XmlArrayItemAttribute.
1432
1433 2003-06-17  Lluis Sanchez Gual <lluis@ximian.com>
1434
1435         * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
1436         * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
1437           is not specified in the xsi attribute.
1438         * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
1439         * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
1440         
1441 2003-06-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1442
1443         * XmlSerializationReader.cs : Synchronous fix with 
1444           XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
1445         * added XmlTypeMapMemberNamespace.cs.
1446         * XmlReflectionImporter,
1447           XmlSerializationReaderInterpreter.cs,
1448           XmlSerializationWriterInterpreter.cs,
1449           XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
1450
1451 2003-06-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1452
1453         * XmlSerializationWriter.cs : some QName handling fix.
1454
1455 2003-06-13  Lluis Sanchez Gual <lluis@ximian.com>
1456
1457         * XmlSerializationReader.cs: Fixed error message.
1458         * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
1459           Thanks to Atsushi!
1460         * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
1461
1462 2003-06-13  Lluis Sanchez Gual <lluis@ximian.com>
1463
1464         * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
1465         * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
1466         * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
1467         * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
1468
1469 2003-06-13  Lluis Sanchez Gual <lluis@ximian.com>
1470
1471         * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
1472         * SoapReflectionImporter.cs: tiny fix.
1473         * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
1474           XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
1475         * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
1476         * XmlSerializationWriter.cs: implemented WriteSerializable ().
1477
1478 2003-06-12  Lluis Sanchez Gual <lluis@ximian.com>
1479
1480         * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
1481         * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1482           XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
1483           XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
1484         * XmlSerializationWriter.cs: small fix.
1485
1486 2003-06-11  Lluis Sanchez Gual <lluis@ximian.com>
1487
1488         * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
1489           Added support for DefaultValueAttribute.
1490         * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
1491           the value of an enum.
1492         * XmlTypeMapMember.cs: Added DefaultValue attribute.
1493         * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
1494           integer values.
1495
1496 2003-06-11  Lluis Sanchez Gual <lluis@ximian.com>
1497
1498         * XmlSerializationReader.cs: Minor fix.
1499
1500 2003-06-11  Lluis Sanchez Gual <lluis@ximian.com>
1501
1502         * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
1503
1504 2003-06-10  Lluis Sanchez Gual <lluis@ximian.com>
1505
1506         * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
1507         * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
1508         * XmlCustomFormatter.cs: small fixes.
1509         * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
1510         * XmlSerializationWriter.cs: Implemented TopLevelElement().
1511           WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
1512           WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
1513         * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
1514           root elements.
1515
1516 2003-06-05  Lluis Sanchez Gual <lluis@ximian.com>
1517
1518         * SoapReflectionImporter.cs: implemented.
1519         * TypeTranslator.cs: added IsPrimitive() method
1520         * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
1521           used by that one. Also added Format property, that can be literal or encoded.
1522         * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
1523         * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
1524         * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
1525         * XmlSerializationReaderInterpreter.cs: added support for encoded format.
1526         * XmlSerializationWriter.cs: added support for encoded format.
1527         * XmlSerializationWriterInterpreter.cs: added support for encoded format.
1528         * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
1529         * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes, 
1530           and a map is needed for them).
1531         * XmlTypeMapMemberElement.cs: small fixes.
1532         * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
1533         * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
1534
1535 2003-06-01  Miguel de Icaza  <miguel@ximian.com>
1536
1537         * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
1538         UnknownElement): Add line number information.
1539
1540 2003-05-29  Lluis Sanchez Gual <lluis@ximian.com>
1541
1542         * TypeData.cs, TypeTranslator.cs: Renamed some properties.
1543         * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
1544         * XmlMapping.cs: Added internal property.
1545         * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
1546         * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
1547         * XmlReflectionMember.cs: XmlAttributes are now created by default
1548         * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
1549         * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs: 
1550           Implemented support for XmlMembersMapping.
1551         * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
1552
1553 2003-05-28  Lluis Sanchez Gual <lluis@ximian.com>
1554
1555         * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
1556           from xml type to clr type.
1557         * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
1558         * XmlReflectionMember.cs: Added default constructor.
1559         * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
1560         * XmlSerializationWriter.cs: Several fixes.
1561         * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1562           XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
1563           Added support for enums. Added support for XmlElement and XmlNode.
1564           Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
1565
1566 2003-05-26  Lluis Sanchez Gual <lluis@ximian.com>
1567
1568         * TypeData.cs, TypeTranslator.cs: Implemented some methods.
1569         * XmlCustomFormatter.cs: Added formatting methods.
1570         * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
1571         * XmlReflectionMember.cs: Added new constructor.
1572         * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
1573         * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
1574           XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
1575           XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
1576
1577 2003-05-10  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1578
1579         * Added TypeTableEntry.cs.
1580         * TypeTranslator.cs : changed for non-static use.
1581         * XmlAttributes.cs : XmlType attribute support for GetAttributeName() 
1582           and GetElementName(). Bugfix so that if any XmlElementAttribute 
1583           exists after non-typed XmlElementAttribute then it might be ignored.
1584           Added GetElementIsNullable().
1585         * XmlSerializer.cs :
1586           Introduced TypeTablePool and TypeTableEntry and erased ambiguous 
1587           Object memberObj[4].
1588           Deserialize() now uses XmlReader.Depth to check its depth.
1589           Serialize() for non-XmlReader arguments now always write xmldecl.
1590           SerializeBuiltin() now explicitly requires Type to support xsi:nil,
1591           and handles XmlQualifiedName.
1592           Separated SerializeType () from Serialize().
1593           Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
1594           IsPropertyTypeSerializable() from SerializeMembers().
1595           SerializeMembers() is now capable of null value and actual type,
1596           which should be included by XmlIncludeAttribute and so on.
1597           Renamed SerializeArray() to SerializeArrayContent(), and added
1598           SerializeCollectionContent().
1599           SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
1600           FillTypeTable() is now aware of XmlInclude attributes.
1601           FillEnum() should not have different type table content from others.
1602
1603 2003-05-09  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1604
1605         * XmlSerializer.cs : this time, only replaced spaces with tabs.
1606
1607 2003-05-05  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1608
1609         * ChangeLog : Added missing ChangeLog of 2003-04-25.
1610         * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain 
1611           separators. Added experimental method ToEnum().
1612         * XmlSerializationReader.cs : unconfirmed implementation of
1613           ReadSerializable() and ToEnum().
1614         * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value 
1615           is null then no output will be written.
1616           Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag() 
1617           to use custom formatted name.
1618
1619 2003-05-02  Miguel de Icaza  <miguel@ximian.com>
1620
1621         * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
1622         had a void return value.
1623
1624 2003-04-26  Miguel de Icaza  <miguel@ximian.com>
1625
1626         * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
1627         `AllowMultiple' flags.  
1628
1629 2003-04-25  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1630
1631         * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
1632         * XmlReflectionImporter.cs : patch by Erik LeBel. 
1633           Now uses XmlRootAttribute to determine element name.
1634
1635 2003-03-17  Miguel de Icaza  <miguel@ximian.com>
1636
1637         * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
1638         Kill Bublesort.
1639
1640 2003-03-22  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1641
1642         * XmlSerializer.cs : patch by Sean Cier. Serialize() other than 
1643           XmlWriter argument should call WriteEndDocument.
1644
1645 2003-03-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1646
1647         * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
1648           not WriteState.Start, and never call WriteEndDocument().
1649
1650 2003-03-12  Elan Feingold <efeingold@mn.rr.com>
1651
1652         * XmlCustomFormatter.cs: Correct signature, Implement
1653         ToByteArrayBase64 
1654
1655         * XmlSerializationWriter.cs: Fix prototype.
1656
1657         * XmlSerializer.cs: Implements Deserialize().
1658
1659 2003-02-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1660
1661         * XmlSerializer.cs : serializing now works for interface member.
1662
1663 2003-01-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1664
1665         * XmlSerializer.cs : some fix handling xml node object more correct.
1666
1667 2003-01-16  Ajay kumar Dwivedi <adwiv@yahoo.com>
1668         * XmlSerializer.cs: Array serialization for 1D arrays works
1669         * TypeTranslator: Added for translations`
1670
1671 2002-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1672
1673         * XmlCustomFormatter.cs: finished.
1674         * XmlSerializationReader.cs: implemented some more methods.
1675
1676 2002-09-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1677
1678         * XmlSerializationReader.cs: implemented a few methods.
1679
1680         * XmlAnyElementAttribute.cs:
1681         * XmlArrayAttribute.cs:
1682         * XmlChoiceIdentifierAttribute.cs:
1683         * XmlElementAttribute.cs:
1684         * XmlMemberMapping.cs:
1685         * XmlMembersMapping.cs: class status based fixes.
1686
1687 2002-09-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1688
1689         * CodeIdentifiers.cs:
1690         * XmlSchemaExporter.cs:
1691         * XmlSchemaImporter.cs:
1692         * XmlSchemas.cs:
1693         * XmlSerializationWriteCallback.cs:
1694         * XmlSerializationWriter.cs:
1695         * XmlSerializer.cs:
1696         * XmlSerializerNamespaces.cs: some class status based fixed and
1697         implemented a couple of methods.
1698
1699         * SoapSchemaExporter.cs: stubbed out.
1700
1701 2002-08-24  Tim Coleman <tim@timcoleman.com>
1702         * SoapCodeExporter.cs:
1703                 Fix return value of ExportTypeMapping.
1704         * XmlCustomFormatter.cs:
1705                 Change methods to be internal instead of public.
1706         * XmlSerializationWriter.cs:
1707                 Modify GetPrimitiveTypeName to build on linux.
1708                 Modify GetQualifiedName to return an incrementing prefix
1709                 instead of the same one all the time (still need to manage
1710                 conflicts)
1711                 Modify WriteElementString to only do special stuff is XsiType
1712                 is not defined.
1713                 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
1714                 an XmlQualifiedName.
1715
1716 2002-08-22  Tim Coleman <tim@timcoleman.com>
1717         * XmlSerializationReader.cs:
1718                 Some implementation
1719         * XmlSerializationWriter.cs:
1720                 More implementation
1721         * XmlCustomFormatter.cs:
1722                 Implemented this class.
1723
1724 2002-08-20  Tim Coleman <tim@timcoleman.com>
1725         * XmlSerializationWriter.cs:
1726                 Some implementation.
1727
1728 2002-08-19  Tim Coleman <tim@timcoleman.com>
1729         * XmlSerializer.cs:
1730                 New stubs added.
1731         * XmlSerializationWriter.cs:
1732                 New stubs added.
1733
1734 2002-08-14  Tim Coleman <tim@timcoleman.com>
1735         * XmlSerializer.cs:
1736                 More reformatting of source code so I can
1737                 better understand what it does.
1738
1739 2002-08-06  Tim Coleman <tim@timcoleman.com>
1740         * XmlSerializer.cs:
1741                 Some reformatting of code for readability.
1742                 Modify to correctly serialize ICollection objects
1743                 such as the BindingCollection of a ServiceDescription
1744                 for example.
1745
1746 2002-08-03  Tim Coleman <tim@timcoleman.com>
1747         * XmlSerializer.cs: 
1748                 Changed Implements() to check based on name rather
1749                 than FullName.  FullName was never working correctly.
1750
1751 2002-07-26  Tim Coleman <tim@timcoleman.com>
1752         * XmlSerializer.cs:
1753                 The constructor now looks for an XmlRootAttribute attribute
1754                 if one is not passed in.  Various changes to make it emit
1755                 proper XML, such as handling an element without a namespace
1756                 prefix, and using WriteEndDocument where it should be.
1757
1758 2002-07-24  Tim Coleman <tim@timcoleman.com>
1759         * CodeIdentifier.cs:
1760         * IXmlSerializable.cs:
1761         * XmlSerializationCollectionFixupCallback.cs:
1762         * XmlSerializationFixupCallback.cs:
1763         * XmlSerializationReadCallback.cs:
1764         * XmlSerializationReader.cs:
1765         * XmlSerializationWriteCallback.cs:
1766                 Add new classes.
1767         * XmlSchemas.cs
1768         * CodeIdentifiers.cs:
1769                 Implement some of these classes
1770         * XmlCodeExporter.cs:
1771                 Fix return type of a function
1772
1773 2002-07-24  Tim Coleman <tim@timcoleman.com>
1774         * SoapReflectionImporter.cs:
1775                 New class added to build
1776                 System.Web.Services.Description.ServiceDescription.cs
1777
1778 2002-07-22  Tim Coleman <tim@timcoleman.com>
1779         * CodeIdentifiers.cs:
1780         * SoapCodeExporter.cs:
1781         * SoapSchemaExporter.cs:
1782         * XmlCodeExporter.cs:
1783         * XmlMemberMapping.cs:
1784         * XmlMembersMapping.cs:
1785         * XmlReflectionImporter.cs:
1786         * XmlReflectionMember.cs:
1787         * XmlSchemaExporter.cs:
1788         * XmlSchemaImporter.cs:
1789         * XmlSchemas.cs: 
1790                 New stubbs added to aid in the linux build of
1791                 System.Web.Services.
1792
1793 2002-07-05  Ajay kumar Dwivedi <adwiv@yahoo.com>
1794         
1795         * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
1796
1797         * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
1798
1799 2002-07-02  Ajay kumar Dwivedi <adwiv@yahoo.com>
1800         
1801         * XmlSeriailizer: Updated Serialize() method.
1802
1803 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
1804         * XmlSerializer: Serialize() method Partially Implemented.
1805
1806 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
1807
1808         * Soap & XmlOverrides: Implemented using TypeMember as key with
1809           suggestions from Rafael.