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