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