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