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