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