1 2008-11-05 Atsushi Enomoto <atsushi@ximian.com>
3 * TypeData.cs : do not reject ICollection<T> for not implementing
4 Item[T]. Fixed bug #430759.
6 2008-09-19 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlSerializer.cs : revert previous change and fix sys.data tests.
10 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
12 * XmlSerializer.cs : in 2.0 profile it seems to create XmlReader
13 for stream and textreader, that skips whitespaces.
15 2008-09-02 Atsushi Enomoto <atsushi@ximian.com>
17 * SerializationCodeGenerator.cs
18 XmlSerializationWriterInterpreter.cs : fixed bug #419973.
19 Sometimes implicit operators could involve and it affects on
20 typecasting. It's simple for code generator, but very bad for
23 2008-08-19 Jb Evain <jbevain@novell.com>
25 * XmlRootAttribute.cs: ifdef out parts to compile on net_2_1.
27 2008-07-10 Atsushi Enomoto <atsushi@ximian.com>
29 * XmlSerializationWriter.cs : more helpful error message.
31 2008-07-09 Atsushi Enomoto <atsushi@ximian.com>
33 * MapCodeGenerator.cs : use explicit element name for explicitly added
34 XmlElementAttribute. (exposed by some product from some company.)
36 2008-06-05 Atsushi Enomoto <atsushi@ximian.com>
38 * XmlSerializationReaderInterpreter.cs, MapCodeGenerator.cs,
39 SerializationCodeGenerator.cs : fixed bug #378696.
40 Default value should not be filled during deserialization, and
41 default values for DateTime/TimeSpan/DateTimeOffset should not be
42 output as raw string in generated code.
44 2008-06-04 Atsushi Enomoto <atsushi@ximian.com>
46 * XmlSerializationReader.cs : in ReadXmlDocument(), MoveToContent()
47 is required after ReadStartElement(). Fixed bug #393406 (without
48 unit test; no simple way to do that :( ).
50 2008-04-11 Atsushi Enomoto <atsushi@ximian.com>
52 * XmlTypeMapping.cs : .NET 2.0 has a weird behavior that swallows
53 exception from IXmlSerializable.GetSchema().
55 2008-04-01 Lluis Sanchez Gual <lluis@novell.com>
57 * TypeData.cs: Prefix with a '@' type names that are equal to keywords.
58 * XmlSerializationReaderInterpreter.cs,
59 XmlSerializationWriterInterpreter.cs: Properly handle nullable enum
61 * SerializationCodeGenerator.cs: Properly handle nullable enum values.
62 Don't generate read flags for text collectors (avoid var not used
64 * XmlReflectionImporter.cs: Assign the MappedType to text collector
65 members. It is needed when the member is an enum.
67 2008-03-30 Gert Driesen <drieseng@users.sourceforge.net>
69 * MapCodeGenerator.cs: Ensure fields that back properties are unique.
71 2008-03-26 Lluis Sanchez Gual <lluis@novell.com>
73 * MapCodeGenerator.cs, XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs:
74 If a value type field has the IsNullable property set to true,
75 generate it as System.Nullable<T>.
77 2008-03-26 Lluis Sanchez Gual <lluis@novell.com>
79 * XmlSchemaImporter.cs: Fix problem with primitive types with a forced
80 base class. It happens for example when a web service declares a
81 soap header of type bool. The schema exporter needs to generate a
82 subclass of SoapHeader for that header type. But if bool is used in
83 the parameters, it must use System.Boolean, not the SoapHeader
84 subclass. The solution is to store primitive types with a forced
85 base class in a different table. In this way it is possible to have
86 two maps for primitive types: one with the forced base class
87 (returned by ImportDerivedTypeMapping) and one with the regular
88 primitive map. Fixes bug #336739.
90 2008-03-21 Atsushi Enomoto <atsushi@ximian.com>
92 * XmlReflectionImporter.cs : set key for imported type mapping so
93 that generated serializer does not result in duplicate key error.
96 2008-02-03 Arina Itkes <arinai@mainsoft.com>
98 * XmlSchemaExporter.cs : Generated typed DataTable and typed DataSet
99 have an identical schema and an identical TargetNamespace.
100 This fix is a workaround for this specific case.
102 2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
104 * TypeData.cs : fixed setter which did not actually see the argument.
105 * XmlTypeMapElementInfo.cs : some cosmetic fixes for gendarme-
108 2007-11-09 Atsushi Enomoto <atsushi@ximian.com>
110 * XmlTypeMapping.cs : to get schema provider method, check base
111 types as well (i.e. FlattenHierarchy). Otherwise typed DataSet
112 cannot be reflected in 2.0.
114 2007-11-02 Atsushi Enomoto <atsushi@ximian.com>
116 * TypeTranslator.cs : for duration, rather use primitiveTypes than
117 nameCache, and hence TimeSpan could be serialized just as custom
118 type. Fixed bug #338705.
120 2007-11-01 Atsushi Enomoto <atsushi@ximian.com>
122 * XmlSchemaImporter.cs : simpleType is allowed to be imported.
123 (Part of #336739 fix.)
125 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
127 * XmlCustomFormatter.cs : use RoundtripKind when converting to and
130 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
132 * MapCodeGenerator.cs : found the true culprit for the previous
135 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
137 * MapCodeGenerator.cs, XmlSchemaImporter.cs: revert the previous
138 change; the type is included in the output, but it should not be
141 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
143 * MapCodeGenerator.cs, XmlSchemaImporter.cs: when a complexType has
144 simple content extension/restriction and the simple base type is
145 schema-defined, it must be written in exported code. Fixed (part
148 2007-10-26 Atsushi Enomoto <atsushi@ximian.com>
150 * TypeTranslator.cs, XmlCustomFormatter.cs : looks like duration is
151 serialized to System.String, not TimeSpan. Fixed bug #336625.
153 2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
155 * XmlMapping.cs : added XsdElementName.
156 * XmlSerializationWriter.cs : some more implementation.
158 2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
160 * XmlTypeMapping.cs : Namespace and XmlTypeNamespace could be
161 different when an explicit namespace is specified (e.g. at
162 XmlReflectionImporter.ctor).
163 * SerializationCodeGenerator.cs,
164 XmlSerializationWriterInterpreter.cs :
165 revert XmlTypeMapping.XmlTypeNamsepace usage. Now with the fix
166 above, original code should work fine.
168 2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
170 * XmlTypeMapping.cs, XmlSerializationWriterInterpreter.cs,
171 SerializationCodeGenerator.cs :
172 More XmlSchemaProviderAttribute method check. Use QName returned
173 by the method for the output root name.
175 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
177 * XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
178 byte[] (processed as primitive SchemaType). Fixed bug #81880.
180 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
182 * XmlSchemaProviderAttribute.cs : added IsAny.
184 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
186 * XmlSerializationReader.cs :
187 implemented ReaderCount and CheckReaderCount().
189 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
191 * MapCodeGenerator.cs : avoid possible duplicates in generated field
192 names. Fixed bug #82078.
194 2007-08-10 Atsushi Enomoto <atsushi@ximian.com>
196 * XmlSerializer.cs : use WhitespaceHandling.Significant when creating
197 XmlTextReader. Fixed bug #82372. No tests should be added for it.
199 2007-07-29 Konstantin Triger <kostat@mainsoft.com>
201 * XmlSerializationWriter.cs: do not output xml declaration while
202 serializing XmlDocument.
204 2007-07-26 Atsushi Enomoto <atsushi@ximian.com>
206 * XmlSerializationWriterInterpreter.cs : looks like XmlNode[]
207 serialization is a complicated mess. bug #81539.
209 2007-07-23 Vladimir Krasnov <vladimirk@mainsoft.com>
211 * XmlTypeMapping.cs: fixed XmlSerializableMapping ctor, corrected when
212 qualified name is empty
213 * XmlSchemaExporter.cs: fixed SetSchemaXmlSerializableType when schema
214 provider method returns null schema
216 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
218 * CodeIdentifier.cs: Default ctor is public on 1.0 profile too.
219 * CodeIdentifiers.cs: Ctor taking bool is 2.0 only.
221 2007-06-27 Konstantin Triger <kostat@mainsoft.com>
223 * XmlTypeMapping.cs, XmlSchemaExporter.cs: add partial support for
224 XmlSchemaProviderAttribute.
226 2007-05-27 Konstantin Triger <kostat@mainsoft.com>
229 1. Fix the construction of TypeData for nullable types: it should not
230 be primitive since the primitive were loaded in static ctor.
231 2. Rename primitiveNullableTypes -> nullableTypes to reflect
232 correctly the field purpose.
233 3. Unify synchronization with synchronized hashtable.
235 2007-05-24 Konstantin Triger <kostat@mainsoft.com>
237 * TypeTranslator.cs: fix typo: set IsNullable flag for primitiveNullableTypes.
239 2007-05-14 Adar Wesley <adarw@mainsoft.com>
241 * XmlSchemaExporter.cs: added missing overload for method ExportAnyType.
243 * XmlSchemas.cs: added missing methods Add, AddReference, Contains,
246 * XmlSerializationReader.cs: added missing method AddReaderCount.
248 * XmlSerializationWriter.cs: added missing overload WriteStartElement.
250 * XmlSerializer.cs: added missing overload Serialize.
252 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
254 * XmlCustomFormatter.cs : fix GenerateToXmlString() as well.
256 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
258 * XmlCustomFormatter.cs :
259 in 2.0, use F instead of f for dateTime formatting.
261 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
263 * XmlSchemas.cs : 1.1-only duplicate check does not seem to be
264 required. This is also a workaround for 1.x ws proxy generation.
266 2007-04-24 Atsushi Enomoto <atsushi@ximian.com>
268 * XmlCustomFormatter.cs : ditto for reader method generation.
269 * SerializationCodeGenerator.cs : for generic nullable values it
270 needs to store ReadNullableString() result to a temporary variable.
272 2007-04-23 Atsushi Enomoto <atsushi@ximian.com>
274 * TypeData.cs, XmlCustomFormatter.cs : generic nullable values did
275 not fit with non-nullable formatting. Fixed #80759 regression.
277 2007-04-20 Atsushi Enomoto <atsushi@ximian.com>
279 * XmlTypeMapping.cs, ReflectionHelper.cs,
280 XmlSerializationReaderInterpreter.cs, SerializationCodeGenerator.cs:
281 support instantiation by private constructor.
283 2007-04-19 Konstantin Triger <kostat@mainsoft.com>
285 * XmlSchemaExporter.cs: do not export twice simple types.
287 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
289 * TypeData.cs : forgot NET_2_0.
291 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
293 * TypeData.cs : in get_ListItemTypeData(), check generic ICollection
294 as well as non-generic one. Fixed bug #81341. Though the type check
295 looks like an aggregation of bugfix hacks and there should be some
296 kind of sane refactoring, to throw best-suited errors.
298 2007-02-28 Atsushi Enomoto <atsushi@ximian.com>
300 * SerializationCodeGenerator.cs : fix wrong name comparison:
301 Name->LocalName. Add hacky TARGET_JVM support (hope it is harmless).
303 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
305 * SerializationCodeGenerator.cs,
306 XmlSerializationReaderInterpreter.cs :
307 Handle attributes on non-empty elements as well. Fixed bug #80131.
309 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
311 * SerializationCodeGenerator.cs,
312 XmlSerializationReaderInterpreter.cs :
313 Handle empty root element.
314 Read out attribute parameters. To do that, split attribute
315 reader part from ReadMembers(), as it isn't invoked when the
318 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
320 * XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
322 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
324 * XmlReflectionImporter.cs : CanBeNull() should return true when the
325 argument is generic nullable value type.
327 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
329 * TypeData.cs, MapCodeGenerator.cs, XmlMemberMapping.cs,
330 TypeTranslator.cs : removed IsGenericNullable and added
331 set_IsNullable so that it could be simpler.
333 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
335 * SerializationCodeGenerator.cs, XmlMappingAccess.cs,
336 SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
339 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
341 * SerializationCodeGenerator.cs : hooks won't work unless they are
342 set. For WriteStartElement() it could simply embed the names.
344 2007-02-14 Atsushi Enomoto <atsushi@ximian.com>
346 * XmlTypeMapMember.cs : don't use readonly [Foo]Specified property
347 as nil-condition member. Fixed bug #80759.
349 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
351 * SoapReflectionImporter.cs : for primitive types, set predefined
352 namespaces, regardless of the actual specification.
354 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
356 * XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
358 * XmlSerializationWriterInterpreter.cs,
359 SerializationCodeGenerator.cs : so they have to be handled here.
361 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
363 * XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
364 when the name is null (almost no need to do this, but it is easier
365 to remove NotWorking from extraneous tests and let them hush than
368 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
370 * XmlSerializationWriter.cs : callbacks could be kept null.
372 2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
374 * XmlMemberMapping.cs : uhoh, there is a nasty trick to output
377 2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
379 * TypeData.cs : added get_IsGenericNullable.
380 * MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
381 the TypeData.IsGenericNullable.
382 Use GetDomType() instead of CodeTypeReference.ctor() to not lose
384 * XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
385 so that it won't XmlSchemaElement.IsNillable.
386 * TypeTranslator.cs :
387 Fixed wrong TypeData modification against non-nullable stuff.
388 Added another GetTypeData() that takes isNullableRuntimeType so
389 that it won't miss XmlSchemaElement.IsNillable.
390 Added another GetPrimitiveTypeData() that takes nullable.
392 2007-01-15 Atsushi Enomoto <atsushi@ximian.com>
394 * TypeData.cs : reject generic type definitions.
395 * TypeTranslator.cs : Make generic type names in XML compatible with
396 .net: foo_x0060_1 -> fooOfString.
398 2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
400 * SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
401 GenerateToXmlString() needed hexBinary support as well. Since
402 XmlConvert.[To|From]BinHexString() are internal, use reflection.
403 Really fixed bug #79989 and #79990 for generated serializers.
405 2006-12-03 Gert Driesen <drieseng@users.sourceforge.net>
407 * XmlSchemaExporter.cs: Emit xml name of enum-based default values.
408 Set XmlSchemaAttribute.Use to Required if no default value is defined,
409 and member is not an optional value type. Element should have minOccurs
410 1 if value type member has default value. Output flag enum type as
411 xsd list with restriction.
412 * XmlReflectionImporter.cs: Removed special casing of enums. Instead
413 of passing namespace of XmlAttribute to ImportTypeMapping, use the
414 default namespace for importing the member type.
416 2006-12-02 Gert Driesen <drieseng@users.sourceforge.net>
418 * SerializationCodeGenerator.cs: Initialize out parameters if they
419 are value types. Fixed bug #79988.
420 * XmlSerializationReaderInterpreter.cs: Same.
422 2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
424 * XmlReflectionImporter.cs : implemented several missing check and
425 support for XmlArrayAttribute. Fixed bug #78042.
427 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
429 * XmlCustomFormatter.cs : handle hexBinary type. Fixed bug #79989
432 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
435 * TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
436 "nullable" information. Introduced new primitiveNullableTypes pool
437 whose TypeData has 'true' for new IsNullable property. This
438 property is also used for non-primitive types.
439 * XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
440 of IsValueType, to handle nullable types.
442 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
444 * TypeTranslator.cs : Hari knew better way to do it.
446 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
448 * TypeTranslator.cs : #if NET_2_0 for generic thingy.
450 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
452 * TypeTranslator.cs : (GetTypeData) when the argument type is
453 Nullable<T>, use T instead. At run time (on both interpreter and
454 generated code) it is converted to T. Fixed bug #79803.
456 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
458 * SerializationCodeGenerator.cs, TypeData.cs :
459 Now we differentiate TypeName, FullTypeName C# type names. It is
460 to create valid C# sources especially for generic types.
463 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
465 * XmlSerializationReader.cs : (ReadReferencedElement)
466 Sometimes there are array types in WSDL, which are not reflected
467 in client proxies. In SOAP messages, they are marked
468 soap-env:arrayType, so use it (this could coexist with xsi:type,
469 which indicates the type in WSDL). Fixed bug #79057.
471 2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
473 * XmlSerializationReader.cs : implement ToByteArray[Base64|Hex]().
474 removed extra ReadSerializable().
475 * XmlTypeMapping.cs : added XsdTypeName and XsdTypeNamespace.
477 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
479 * SerializationCodeGenerator.cs,
480 SerializationCodeGeneratorConfiguration.cs :
481 make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
482 (or it is impossible to use genxs more than twice in an assembly.)
484 2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
487 * XmlReflectionImporter.cs : Compute nullable correctly. Elements are
488 nillable when its type is a reference type.
489 * XmlSchemaExporter.cs :
490 Set XmlTypeMapElementInfo.IsNullable from XmlTypeMapping.
491 Set XmlSchemaElement.IsNillable from XmlTypeMapElementInfo.
493 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
495 * XmlSchemaImporter.cs : top-level element might also have no type
496 name specification, so just compare ElementType with anyType.
498 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
500 * XmlSchemaImporter.cs : attributes might overlap by extending
501 base content models. Since invalid content models are rejected by
502 Compile(), simply ignore duplicating attributes. Note that it is
503 basically hack, which should not skip derived ones but use them (but
504 it is mostly harmless since the result is very unlikely to differ).
506 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
508 * XmlSchemaImporter.cs : when top-level element is xs:anyType, all
509 complexTypes must be also imported.
511 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
513 * XmlSchemaImporter.cs : ImportTypeMapping() raises exception when
514 the argument name is not bound to any elements.
516 2006-11-07 Atsushi Enomoto <atsushi@ximian.com>
518 * XmlCustomFormatter.cs : consider null base64 byte array value.
521 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
523 * CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
524 explicitly say Obsolete instantiation.
525 * CodeIdentifiers.cs : implemented case-insensitive mode.
526 * XmlSerializerAssemblyAttribute.cs : added missing .ctor().
527 * SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
528 in 2.0 profile it could also be applied to an interface.
529 * SoapReflectionImporter.cs,
530 XmlReflectionImporter.cs,
531 XmlMappingAccess.cs :
532 added missing ImportMembersMapping overload and moved actual
533 implementation to most lengthy-arglist one. To make it possible,
534 XmlMappingAccess is included in 1.x as internal enum.
536 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
538 * XmlSchemaImporter.cs : initialize extensions from configuration.
540 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
542 * SchemaImporterExtension.cs,
543 SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
545 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
547 * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
548 * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
549 became a class, it needs explicit "override".
550 Since InternalSyncObject is gone, it needs another lock target.
551 * IXmlSerializerImplementation.cs : removed.
552 * XmlSerializerImplementation.cs : added.
553 * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
554 IXmlSerializerImplementation -> XmlSerializerImplementation.
555 * XmlSchemas.cs : removed Schemas. hacked Compile().
556 Now it implements IEnumerable<XmlSchema>.
557 * XmlSchemaEnumerator.cs : added missing type.
559 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
561 * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
562 is not considered in XmlSerializationReader yet.
563 * XmlElementEventArgs.cs : added ExpectedElements. Note that it
564 is not considered in XmlSerializationReader yet.
565 * XmlSerializationReader.cs : added some overloads for
566 UnknownElement()/-Attribute()/-Node().
568 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
570 * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
572 * XmlSerializationCollectionFixupCallback.cs,
573 XmlNodeEventHandler.cs,
574 XmlSerializationReadCallback.cs,
575 UnreferencedObjectEventHandler.cs,
576 XmlSerializationWriteCallback.cs,
577 XmlAttributeEventHandler.cs,
578 XmlElementEventHandler.cs,
579 XmlSerializationFixupCallback.cs :
580 exclude [Serializable] in NET_2_0.
581 * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
582 * XmlSerializerVersionAttribute.cs : removed [Obsolete].
583 * XmlMappingAccess.cs : it is [Flags].
584 * SchemaImporter.cs : implement Extensions.
585 * XmlAnyElementAttribute.cs,
586 XmlArrayAttribute.cs : added Order.
587 Note that it is not considered in XmlSerializer yet.
589 2006-10-25 Ankit Jain <jankit@novell.com>
591 * SerializationCodeGenerator.cs (GenerateContract): Handle
592 'generateAsInternal' config option.
594 2006-10-10 Gert Driesen <drieseng@users.sourceforge.net>
596 * XmlSerializer.cs: Output namespace declarations in same order as
599 2006-10-08 Gert Driesen <drieseng@users.sourceforge.net>
601 * XmlSerializer.cs: Corrected exception message when deserialization
603 * SerializationCodeGenerator.cs: Added support for flag enums.
604 * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
605 all exceptions that occur while reflecting member. Validate default
607 * SoapReflectionImporter.cs: Revert small part of previous patch as
608 XmlSerializer expects enum value.
610 2006-10-01 Gert Driesen <drieseng@users.sourceforge.net>
612 * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
613 thrown during creation of map member bubble up. Only allow
614 SoapAttribute on primitive types and enums. Obtain default value for
617 2006-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
619 * XmlTypeAttribute.cs: added property AnonymousType for 2.0
621 2006-09-12 Lluis Sanchez Gual <lluis@novell.com>
623 * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
625 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
627 * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
630 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
632 * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
633 to strings. Make sure maps returned by ImportClassSimpleType are always
634 simple type maps. All this fixes bug #77585.
636 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
638 * XmlSchemaImporter.cs: Always import simple type unions
639 as string (like MS.NET does). Fixes bug #79234.
641 2006-08-25 Kornél Pál <kornelpal@gmail.com>
643 * MapCodeGenerator.cs: Use assembly file version constants.
645 2006-07-24 Atsushi Enomoto <atsushi@ximian.com>
647 * XmlMappingAccess.cs : new type in 2.0 RTM.
648 * XmlCodeExporter.cs, SoapCodeExporter.cs,
650 XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
651 SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
652 XmlMemberMapping.cs, XmlSerializationReader.cs :
653 several 2.0 API fixes from betas to RTM.
655 2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
657 * XmlTypeMapMember.cs: Added GlobalIndex property.
658 * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
660 * SerializationCodeGenerator.cs:
661 * XmlSerializationWriterInterpreter.cs:
662 * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
663 Index to get/set the values from the input array, since some Index
664 values are shared between attribute and element members. Fixes
667 2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
669 * SerializationCodeGenerator.cs,
670 XmlSerializerReaderInterpreter.cs : handle CDATA section as text
671 node. Fixed bug #78536.
673 2006-05-15 Gert Driesen <drieseng@users.sourceforge.net>
675 * XmlCodeExporter.cs: Added bool argument to GenerateClass and
676 GenerateEnum methods that specifies whether we're dealing with a type
677 for a top-level element. In GenerateClass, do not always add Namespace
678 argument for XmlRootAttribute if isTopLevel is false, and do not
679 emit XmlRootAttribute if isTopLevel is false and no arguments have been
681 * SoapCodeExporter.cs: Added bool argument to GenerateClass and
682 GenerateEnum methods.
683 * MapCodeGenerator.cs: Added bool argument to GenerateClass and
684 GenerateEnum methods.
686 2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
688 * SerializationCodeGenerator.cs: Allow generating serializer for
689 reading an XmlElement or XmlDocument as root element.
690 Properly generate jagged array creation.
692 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
694 * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
696 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
698 * SerializationCodeGenerator.cs: For flag enums, we should split on all
699 whitespace chars instead of only on blanks.
700 * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
701 constant name(s) to integral enum value.
703 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
705 * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
706 as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
708 2006-04-24 Gert Driesen <drieseng@users.sourceforge.net>
710 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
711 allow XML Schema items to be added to its parent in the same order
712 as MS.NET (schema elements before complex types, ...).
714 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
716 * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
717 GenerateProperties. Use full type name for XML serialization attributes
718 instead of shortcut (without Attribute suffix). Always add Namespace
719 argument for XmlRootAttribute on classes. Added IsNullable argument for
720 XmlRootRootAttribute on classes. For attribute members, only output
721 Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
722 ctor that takes CodeGenerationOptions.
723 * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
724 CodeGenerationOptions.
725 * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
726 profile, emit GeneratedCodeAttribute, SerializableAttribute,
727 DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
728 To match MS.NET, emit attribute members before element members.
729 * XmlReflectionImporter.cs: Enums are never nullable.
730 * XmlSchemaImporter.cs: Set IsNullable on map using value of
731 XmlSchemaElement.IsNillable. Added LocateElement overload that takes
734 2006-04-15 Gert Driesen <drieseng@users.sourceforge.net>
736 * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
737 to XmlReflectionImporter and SoapReflectionImporter to keep from
738 always ending up with the XSD type that directly maps to the CLR type.
739 * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
740 Type. This improves performance by avoiding the use of
741 TypeTranslator.GetTypeData for types imported from a schema and fixes
743 * SoapReflectionImporter.cs: Same.
745 2006-04-11 Lluis Sanchez Gual <lluis@novell.com>
747 * XmlSchemas.cs: In 1.1, don't allow adding two schemas
748 with the same namespaces. This is allowed in 2.0. Fixed
749 the Find() method to cope with this case. Based on a patch
752 2006-03-22 Gert Driesen <drieseng@users.sourceforge.net>
754 * XmlReflectionImporter.cs: Throw NotSupportException instead of
755 InvalidOperationException (IOE) if void is specified as type in
756 ImportTypeMapping. To match MS.NET, surround importing of type in
757 try/catch block, and wrap any IOE in another IOE adding information
758 on the type that was being reflected. In CreateTypeMapping, surround
759 creating of map member in try/catch block, and wrap any IOE in another
760 IOE adding information on the member that was being reflected.
761 Modified exception message for missing enumeration value to match
762 MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
763 XmlTextAttribute, and it differs from type of reflected member when
764 schema type of member is primitive or enum. Fixed bug #77591.
766 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
768 * XmlSchemaExporter.cs: Import namespace of schema generated for
769 non-xsd primitive. Do not set zero-length TargetNamespace to avoid
770 emitting empty targetNamespace attribute in generated schema.
771 * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
774 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
776 * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
777 Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
778 serialization of integral value to enum constant name, and made sure
779 the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
780 throw InvalidOperationException if no matching enum constant exists.
781 In EnumMap ctor, initialize arrays holding XML names, enum names and
783 * XmlSerializationReaderInterpreter.cs: Pass full type name to
784 EnumMapping.GetEnumName for construction of exception message.
785 * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
786 and InvalidCastException in another InvalidOperationException to match
787 MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
788 and the inner exception for a TargetInvocationException in an
789 InvalidOperationException to match MSFT.
790 * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
791 XmlCustomFormatter.FromEnum in order to also support serialization
792 integral value to enum constant name. In 2.0 profile, throw
793 InvalidOperationException if numeric value cannot be serialized into
794 an enum constant value. In GenerateSingleEnumValue, no longer attempt
795 to parse unknown constant value but instead report it as
796 InvalidOperationException. Use string.Length instead of "" comparison
797 to check whether a string is empty. Fixed compiler warnings in
798 generated code (possible empty statement).
799 * XmlSerializationWriterInterpreter.cs: Pass full type name to
801 * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
802 to allow it to be used in exception messages.
803 * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
804 enum fields. Use IsDefined instead of GetCustomAttributes for checking
805 if a certain attribute is defined. Use integral value of enum constant
806 in EnumMapMember ctor.
807 * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
808 enum fields. Use IsDefined instead of GetCustomAttributes for checking
809 if a certain attribute is defined. Use integral value of enum constant
810 in EnumMapMember ctor.
812 2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
814 * XmlReflectionImporter.cs: Ignore the element namespace if
815 the schema form is set to Unqualified. Fixes bug #75019.
817 2006-02-22 Gert Driesen <drieseng@users.sourceforge.net>
819 * SerializationCodeGenerator.cs: Omit return statement in ReadObject
820 method if GenerateReadListElement returns null. Fixes bug #77588.
822 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
824 * XmlSerializer.cs: Fix the previous fix.
826 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
828 * XmlSerializer.cs: Added option to avoid falling back to the
829 interpreted serializer if the code generator fails. To be used
832 2006-02-16 Gert Driesen <drieseng@users.sourceforge.net>
834 * TypeData.cs: Fixed the following issues when dealing with Array
836 - if a type implements IDictionary, throw a NotSupportedException
837 - if a type implements ICollection, then an Add method must exist
838 which takes a single argument of a type to which the listitem type
839 is assignable (meaning a base type or an interface that it
840 implements). If such a method does not exist, then throw an
841 InvalidOperationException.
842 - if a type implements IEnumerable, then the listitem type is
843 determined by the type of the Current property of the (IEnumerator)
844 type returned by the GetEnumerator() method or the private
845 implementation of IEnumerable.GetEnumerator(). If there's no
846 public Current property on the IEnumerator, then System.Object
847 is assumed as listitem type. Similar as for types implementing
848 ICollection, an Add method must exist which takes a single argument
849 of a type to which the listitem type is assignable (meaning a base
850 type or an interface that it implements). If such a method does not
851 exist, then throw an InvalidOperationException.
853 2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
855 * XmlSchemaImporter.cs: Support importing complex types with
856 simple content based on enums. Fixes bug #76848.
858 2006-02-11 Gert Driesen <drieseng@users.sourceforge.net>
860 * SoapAttributeAttribute.cs: Set eol-style to CRLF.
861 * SoapElementAttribute.cs: Same.
862 * SoapEnumAttribute.cs: Same.
863 * SoapIncludeAttribute.cs: Same.
864 * SoapSchemaMember.cs: Same.
865 * SoapTypeAttribute.cs: Same.
866 * XmlArrayAttribute.cs: Same.
867 * XmlAttributeAttribute.cs: Same.
868 * XmlChoiceIdentifierAttribute.cs: Same.
869 * XmlElementAttribute.cs: Same.
870 * XmlEnumAttribute.cs: Same.
871 * XmlRootAttribute.cs: Same.
872 * XmlSchemaImporter.cs: Same.
873 * XmlTextAttribute.cs: Same.
874 * XmlTypeAttribute.cs: Same.
875 * XmlTypeMapping.cs: Same.
876 * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
877 * CodeIdentifiers.cs: Same.
878 * SoapCodeExporter.cs: Same.
879 * SoapAttributes.cs: Same.
880 * SoapIgnoreAttribute.cs: Same.
881 * SoapSchemaImporter.cs: Same.
882 * TypeMember.cs: Same.
883 * UnreferencedObjectEventArgs.cs: Same.
884 * XmlAnyAttributeAttribute.cs: Same.
885 * XmlAnyElementAttributes.cs: Same.
886 * XmlArrayItemAttributes.cs: Same.
887 * XmlAttributeEventArgs.cs: Same.
888 * XmlCodeExporter.cs: Same.
889 * XmlElementAttributes.cs: Same.
890 * XmlElementEventArgs.cs: Same.
891 * XmlIgnoreAttribute.cs: Same.
892 * XmlNamespaceDeclarationsAttribute.cs: Same.
893 * XmlNodeEventArgs.cs: Same.
894 * XmlReflectionMember.cs: Same.
895 * XmlSchemas.cs: Same.
896 * XmlSerializerNamespaces.cs: Same.
897 * XmlTypeMapMemberElement.cs: Set eol-style to native.
899 2006-02-10 Gert Driesen <drieseng@users.sourceforge.net>
901 * CodeExporter.cs: Set eol-style to native.
902 * CodeGenerationOptions.cs: Same.
903 * CodeIdentifier.cs: Same.
904 * ImportContext.cs: Same.
905 * IXmlSerializable.cs: Same.
906 * IXmlSerializerImplementation.cs: Same.
907 * IXmlTextParser.cs: Same.
908 * MapCodeGenerator.cs: Same.
909 * ReflectionHelper.cs: Same. Fixed line endings.
910 * SchemaImporter.cs: Same.
911 * SchemaImporterExtensionCollection.cs: Same.
912 * SchemaImporterExtension.cs: Same.
913 * SchemaTypes.cs: Same.
914 * SerializationCodeGeneratorConfiguration.cs: Same.
915 * SerializationCodeGenerator.cs: Same.
916 * SerializationSource.cs: Same.
917 * SoapReflectionImporter.cs: Same.
918 * SoapSchemaExporter.cs: Same.
920 * TypeTranslator.cs: Same.
921 * UnreferencedObjectEventHandler.cs: Same.
922 * XmlAnyElementAttribute.cs: Same.
923 * XmlArrayItemAttribute.cs: Same.
924 * XmlAttributeEventHandler.cs: Same.
925 * XmlAttributeOverrides.cs: Same.
926 * XmlAttributes.cs: Same.
927 * XmlDeserializationEvents.cs: Same.
928 * XmlElementEventHandler.cs: Same.
929 * XmlIncludeAttribute.cs: Same.
930 * XmlMapping.cs: Same.
931 * XmlMemberMapping.cs: Same.
932 * XmlMembersMapping.cs: Same.
933 * XmlNodeEventHandler.cs: Same.
934 * XmlReflectionImporter.cs: Same.
935 * XmlSchemaExporter.cs: Same.
936 * XmlSchemaProviderAttribute.cs: Same.
937 * XmlSerializationCollectionFixupCallback.cs: Same.
938 * XmlSerialiationFixupCallback.cs: Same.
939 * XmlSerializationGeneratedCode.cs: Same.
940 * XmlSerializationReadCallback.cs: Same.
941 * XmlSerializationReader.cs: Same.
942 * XmlSerializationReaderInterpreter.cs: Same.
943 * XmlSerializationWriteCallback.cs: Same.
944 * XmlSerializationWriterInterpreter.cs: Same.
945 * XmlSerializerAssemblyAttribute.cs: Same.
946 * XmlSerializer.cs: Same.
947 * XmlSerializerFactory.cs: Same.
948 * XmlSerializerVersionAttribute.cs: Same.
949 * XmlTypeMapElementInfo.cs: Same.
950 * XmlTypeMapMemberAttribute.cs: Same.
951 * XmlTypeMapMember.cs: Same.
952 * XmlTypeMapMemberNamespaces.cs: Same.
954 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
956 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
957 if map represents enum. Fixes bug #77501.
959 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
961 * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
962 CreateInvalidEnumValueException. Set eol-style to native.
963 * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
964 enum for which string value must be created. Set eol-style to native.
965 Modified FromEnum to behave more like MSFT's implementation:
966 - treat value as bit field.
967 - no longer return empty string if the value matches an id for which there's no corresponding
969 - if one of the ids has value 0 and there's a match for the enum value
970 (with a zero length XML name) or the enum value is 0, then return the
971 corresponding XML for the id with value 0.
972 - in 2.0 profile, throw InvalidOperationException if no match is found
973 for (part of) the enum value.
974 Modifies ToEnum to match the MSFT implementation (as described in
976 - Expect hashtable containing enum names as key, and corresponding
977 integral numbers as value.
978 - Do not report exception for whitespace-only value.
979 - Support space (MS docs are not clear about this) delimited list
981 - typeName is only used to construct exception message.
983 2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
985 * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
986 looking for the correct element definition for a member,
987 based on the value type, take into account subypes of the
988 declared types. Fixes bug #77447.
990 2006-02-07 Konstantin Triger <kostat@mainsoft.com>
992 * XmlReflectionImporter.cs: remove local name encoding for enums.
994 2006-01-08 Gert Driesen <drieseng@users.sourceforge.net>
996 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
998 2006-01-07 Gert Driesen <drieseng@users.sourceforge.net>
1000 * XmlTypeMapping.cs: Fixed line endings.
1001 * TypeTranslator.cs: Fixed line endings.
1003 2005-12-07 Lluis Sanchez Gual <lluis@novell.com>
1005 * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
1006 collection, don't create a new collection if the property already has a
1007 collection instance.
1008 * SerializationCodeGenerator.cs: same as above. Also return an empty
1009 string for flag enum default values.
1011 2005-12-06 Konstantin Triger <kostat@mainsoft.com>
1013 * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
1015 2005-12-05 Lluis Sanchez Gual <lluis@novell.com>
1017 * XmlSerializationReaderInterpreter.cs:
1018 * SerializationCodeGenerator.cs: When deserializing a collection,
1019 don't create a new collection if the property already has a
1020 collection instance. This does not apply to arrays. Changed how nullabe
1021 array properties are set. Setting IsNullable=false to the property means
1022 that it won't be set if the read array is null (so, if the property
1023 already has a value, it will be kept).
1024 Another change is that can't never be null (only arrays can).
1026 2005-12-01 Lluis Sanchez Gual <lluis@novell.com>
1028 * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
1029 a cli array type, consider it refering to the type of array elements.
1030 This fixes bug #76860. Also added some locking.
1032 2005-11-27 Konstantin Triger <kostat@mainsoft.com>
1034 * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
1035 export non-xsd primitive types.
1037 2005-11-24 Vladimir Krasnov <vladimirk@mainsoft.com>
1039 * XmlTypeMapping.cs: fixed GetXmlName method, added difference
1040 of value serialization of flags and non-flags enums
1042 2005-11-23 Konstantin Triger <kostat@mainsoft.com>
1044 * XmlSchemaExporter.cs: do not import empty namespaces.
1046 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1048 * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
1049 method, ReadEndElement should check XmlNodeType.
1050 * XmlTypeMapping.cs: fixed GetXmlName method, it should not
1051 write zero as default enum value.
1053 2005-11-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1055 * XmlReflectionImporter.cs: fixed field order returned by
1056 reflection in method GetReflectionMembers. TARGET_JVM only.
1058 2005-11-07 Lluis Sanchez Gual <lluis@novell.com>
1060 * XmlSchemaImporter.cs: Added support for restrictions with
1061 embedded simple type definitions.
1063 2005-11-04 Atsushi Enomoto <atsushi@ximian.com>
1065 * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
1066 sys.xml.schema corcompare diffs.
1068 2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
1070 * SerializationCodeGenerator.cs:
1071 * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
1072 need to be all XmlElments. Fix by Atsushi for bug #76288.
1074 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1076 * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
1077 In ListMap.FindElement, take into account the ChoiceMember
1079 * SerializationCodeGenerator.cs:
1080 * XmlSerializationReaderInterpreter.cs: For lists with a choice
1081 member, fill the member with the corresponding enum values.
1082 * XmlReflectionImporter.cs: Properly reflect the choice member
1083 when applied to a list.
1084 * XmlSerializationWriterInterpreter.cs: Track class changes.
1085 * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
1086 All this fixes bug #76203.
1088 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1090 * SoapReflectionImporter.cs: Check the correct defaults
1093 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1095 * SerializationSource.cs: Fix nullref.
1096 * XmlReflectionImporter.cs: When registering a type using
1097 IncludeType(), make sure it is added as a subtype and the
1098 map for typeof(object) if it has already been imported.
1101 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1103 * XmlSerializationWriter.cs: Also internally serialize
1104 arrays of object (see previous change).
1106 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1108 * XmlSerializationWriter.cs: Properly serialize arrays
1109 of primitive types when not explicitely specified in
1110 a container class. Based on a patch by Konstantin Triger.
1113 2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
1115 * TypeData.cs: Reset the hasPublicConstructor flag when the
1116 type is an interface.
1117 * XmlSerializationWriterInterpreter.cs: Get the Count property
1118 from the object type instead of the property type (it didn't
1120 * ReflectionHelper.cs: In CheckSerializableType, don't trow
1121 if the type is a collection interface. All this fixes
1124 2005-08-06 Lluis Sanchez Gual <lluis@novell.com>
1126 * XmlTypeMapping.cs: Added null check.
1128 2005-08-05 Lluis Sanchez Gual <lluis@novell.com>
1130 * XmlTypeMapping.cs: Added ListMembers property that returns
1131 members which are collections.
1132 * SerializationCodeGenerator.cs:
1133 * XmlSerializationReaderInterpreter.cs: Initialize collection
1134 members to an empty collection by default. Fixes bug #75662.
1136 2005-08-01 Gert Driesen <drieseng@users.sourceforge.net>
1138 * XmlMapping.cs: API compatibility fixes. Ctor is not protected
1139 in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
1141 2005-07-31 Gert Driesen <drieseng@users.sourceforge.net>
1143 * SoapAttributeAttribute.cs: Return zero-length string if
1144 AttributeName or DataType are null.
1145 * SoapEnumAttribute.cs: Return zero-length string if Name is null.
1146 * SoapIncludeAttribute.cs: Avoid using property in ctor.
1147 * SoapSchemaMember.cs: Return zero-length string if MemberName is
1148 null. MemberType should be XmlQualifiedName.Empty by default.
1149 * SoapTypeAttribute.cs: Return zero-length string if TypeName is
1150 null. Avoid using property in ctor.
1151 * XmlArrayAttribute.cs: Return zero-length string if ElementName is
1152 null. Avoid using property in ctor.
1153 * XmlArrayItemAttribute.cs: IsNullable must be false by default.
1154 Return zero-length string if DataType or ElementName are null. Avoid
1155 using property in ctor.
1156 * SoapElementAttribute.cs: Return zero-length string when DataType
1157 or ElementName are null. Avoid using property in ctor.
1158 * XmlAnyElementAttribute.cs: Return zero-length string when Name is
1159 null. Avoid using property in ctor.
1160 * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
1161 zero-length string if AttributeName or DataType are null.
1162 * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
1164 * XmlElementAttribute.cs: Return zero-length string when DataType or
1165 ElementName are null. Avoid using property in ctor.
1166 * XmlEnumAttribute.cs: Avoid using property in ctor.
1167 * XmlIncludeAttribute.cs: Avoid using property in ctor.
1168 * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
1169 can no longer be null. Use check for zero-length string to determine
1170 whether they are set. Corrected exception message when DataType is
1171 set for complex type.
1172 * XmlRootAttribute.cs: Return zero-length string if DataType or
1173 ElementName are null. Avoid using property in ctor.
1174 * XmlTextAttribute.cs: Return zero-length string if DataType is null.
1175 * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
1177 2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
1179 * SerializationCodeGenerator.cs: In the generated serializer always
1180 use the Object equality operator when comparing objects to serialize
1181 to null, since those objects may have the equality operator
1182 overloaded. This fixes bug #75543.
1184 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1186 * XmlCustomFormatter.cs: Properly read/write duration values.
1188 2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
1190 * XmlSerializer.cs: Fix race between XmlSerializer and the
1191 serializer generator.
1193 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
1195 * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
1196 getting the real xml type name of a member.
1197 * XmlSerializationWriterInterpreter.cs: Use that new property
1198 to get the type name of primitive types. This should fix bug #75180.
1200 2005-06-07 Lluis Sanchez Gual <lluis@novell.com>
1202 * SerializationCodeGenerator.cs: When reading members by order,
1203 call a MoveToContext after each member read. In the fixup method
1204 don't cast returned values if it is reading an object array.
1206 * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
1207 being imported is a primitive type, create a wrapper class that
1208 inherits from the provided one. This fixes bug #68809.
1210 * XmlSerializationReader.cs: Properly report unreferenced objects.
1211 Created an overload of ReadTypedPrimitive that reports elements of
1212 unknown type. Implemented Referenced().
1214 2005-05-30 Lluis Sanchez Gual <lluis@novell.com>
1216 * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
1217 set to the default namespace. This fixes bug #73035.
1219 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
1221 * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
1222 types indirectly imported by this method use the same namespace.
1224 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1226 * TypeTableEntry.cs : removed obsolete code.
1228 2005-04-26 Lluis Sanchez Gual <lluis@novell.com>
1230 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
1231 properties which are read only. Fixes bug #74723.
1233 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
1235 * XmlReflectionImporter.cs:
1236 * SoapReflectionImporter.cs:
1237 * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
1238 where needed. Based on a patch by Konstantin Triger.
1240 2005-04-12 Lluis Sanchez Gual <lluis@novell.com>
1242 * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
1243 * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
1244 export the schema that it defines. In ImportNamespace, removed
1245 check for default namespace, since it may be included from a non
1247 * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
1248 types. All this based on a patch by Konstantin Triger.
1250 * SerializationCodeGenerator.cs:
1252 * XmlSerializationReaderInterpreter.cs:
1253 * SoapCodeExporter.cs:
1254 * XmlTypeMapMemberAttribute.cs:
1255 * XmlSerializationReader.cs:
1256 * XmlCodeExporter.cs: Fixed some warnings.
1258 2005-04-10 Andrew Skiba <andrews@mainsoft.com>
1260 * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
1262 2005-04-03 Andrew Skiba <andrews@mainsoft.com>
1264 * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
1267 2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
1269 * SerializationCodeGenerator.cs:
1270 * XmlSerializationReaderInterpreter.cs: If the element being read is
1271 bound to a choice member, set the corresponding value.
1272 * XmlTypeMapMember.cs: Added helper SetValue method.
1273 * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
1274 since now stores the enum value.
1275 * XmlReflectionImporter.cs: Properly import choice values.
1276 * XmlTypeMapMemberElement.cs: Added setter for the choice.
1278 2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
1280 * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
1281 This fixes bug #73901 and should fix #70384.
1282 * XmlSerializationReader.cs: When reading an object element, return
1283 an Object instance if the element has no children. This fixes bug #73974.
1284 * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
1285 type (it is written as an element with those nodes as children).
1287 2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
1289 * XmlSchemaImporter.cs: Support importing schemas that define
1290 extra types in the standard xml schema namespace. When using encoded
1291 format, support the primitive types defined by the SOAP encoding
1294 2005-03-04 Lluis Sanchez Gual <lluis@novell.com>
1296 * ReflectionHelper.cs: Avoid endless loop.
1297 * XmlSchemas.cs: Added null check. Patches from MainSoft.
1299 2005-02-07 Lluis Sanchez Gual <lluis@novell.com>
1301 * XmlSerializationReader.cs: After reading an href element, skip the
1302 whole element (it may not be an empty element). This fixes bug #72265.
1304 2005-01-25 Lluis Sanchez Gual <lluis@novell.com>
1306 * XmlSchemaImporter.cs: When importing a default value of type enum,
1307 translate it from the schema value to the clr value.
1309 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1311 * XmlSerializer.cs: only print the results if there's an error
1314 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1316 * SerializationCodeGenerator.cs: don't use _config if it has not been
1319 2005-01-18 Lluis Sanchez Gual <lluis@novell.com>
1321 * XmlReflectionImporter.cs: Don't check the property type if it has
1322 an [XmlIgnore] attribute. This fixes bug #71332.
1324 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
1326 * SerializationCodeGenerator.cs,
1327 XmlSerializationWriterInterpreter.cs : exchanged attribute
1328 serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
1329 xmlns attributes in XmlAnyAttribute are not written.
1331 2005-01-12 Atsushi Enomoto <atsushi@ximian.com>
1333 * SerializationCodeGeneratorConfiguration.cs,
1334 SerializationCodeGenerator.cs : Added some generation configuration:
1335 <generateAsInternal>
1336 write custom reader/writer as internal classes.
1337 <noreader>, <nowriter>
1338 They make generation of reader and/or writer optional.
1339 * XmlSerializerNamespaces.cs :
1340 Now it uses ListDictionary instead of Hashtable.
1341 * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
1342 written unless there is already the same prefix-ns mapping.
1344 2005-01-12 Lluis Sanchez Gual <lluis@novell.com>
1346 * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
1347 * XmlSchemaImporter.cs: When importing a base type of a complex type,
1348 make sure that the base class is always imported as a class and not
1349 as an array. If it has been imported as array, import it again.
1350 This fixes bug #70839. Other minor fixes as well.
1351 * XmlSerializationWriter.cs: Fixed warning.
1353 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1355 * SerializationCodeGenerator.cs: Yet another generation fix.
1357 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1359 * SerializationCodeGenerator.cs: Fixed generation of enum literals.
1361 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1363 * XmlReflectionMember.cs: Added DeclaringType member.
1364 * XmlReflectionImporter.cs: When importing fields that belong to a
1365 base class, use the xml namespace of the base map for the member.
1366 This fixes bug #70309.
1368 2004-11-30 Lluis Sanchez Gual <lluis@novell.com>
1370 * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
1371 compilation warnings.
1373 2004-11-24 Lluis Sanchez Gual <lluis@novell.com>
1375 * SerializationSource.cs: Made SerializationSource abstract, and
1376 renamed Equals to BaseEquals to avoid missing GetHashCode warning
1377 (it does not really make sense in this case).
1378 * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
1379 XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1380 XmlSerializationReader.cs: Fixed warnings.
1382 2004-10-19 Atsushi Enomoto <atsushi@ximian.com>
1384 * XmlSerializationWriter.cs : When namespace is an empty string,
1385 XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
1388 2004-10-01 Lluis Sanchez Gual <lluis@novell.com>
1390 * MapCodeGenerator.cs: When the Object type is exported, export all
1391 derived maps. This was done in IncludeMetadata, but this method is
1392 not called by the xsd tool.
1393 * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
1394 attribute for primitive types and arrays.
1395 * XmlSchemaImporter.cs: Only export all object-derived maps if the
1396 Object type is explicitly referenced by an element.
1397 * XmlSerializationWriter.cs: Minor fix.
1399 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
1401 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
1402 This fixes bug #66877.
1404 2004-09-21 Lluis Sanchez Gual <lluis@novell.com>
1406 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1407 when reading a primitive value in encoded format using
1408 ReadReferencingElement, provide the type name and namespace
1409 since the xsi type may not be present in the xml element. This
1412 2004-09-15 Lluis Sanchez Gual <lluis@novell.com>
1414 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
1415 ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
1416 * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
1417 ImportIncludedTypes to the end, to make sure that the current map has all
1418 needed data before derived maps are constructed.
1419 * XmlSchemaExporter.cs: Generate the base class of simple types that are
1420 not primitive types. Set the correct value for IsMixed in extended types.
1421 * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
1422 the base class of a simple type doesn't need to be a xsd type.
1423 All those patches fix bug #65654.
1425 2004-09-03 Lluis Sanchez Gual <lluis@novell.com>
1427 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
1428 Normalization==true by default.
1430 2004-09-02 Lluis Sanchez Gual <lluis@novell.com>
1432 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
1433 In CheckSerializableType, add the option of ignoring types with private
1434 constructors. Some kind of lists can be deserialized
1435 even if the constructor is private. See bug #61464.
1436 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1437 Before creating a list, check that it has a public constructor.
1438 * TypeData.cs: Added HasPublicConstructor property.
1440 2004-09-01 Lluis Sanchez Gual <lluis@novell.com>
1442 * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
1443 value list serialization.
1444 * XmlSchemaImporter.cs: Added some null checks.
1446 2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
1448 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1449 When deserializing an encoded method response, assign to the return value
1450 the first element of the message, whatever it is. The return type doesn't
1451 need to be Object, it seems to be true for all return types.
1453 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
1455 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
1456 no need to add it after the call.
1457 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
1459 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
1461 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
1462 * ImportContext.cs: Implemented.
1463 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
1464 options for 2.0. Implemented support for generating properties instead of
1466 * XmlSchemaImporter.cs: Added support for sharing types.
1468 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
1470 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
1471 xsd type is not part of the last schema specification, but the google api
1472 uses it and ms.net accepts it.
1474 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
1476 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
1477 Thanks to Juan C. Olivares.
1479 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
1481 * CodeExporter.cs: Added private constructor.
1482 * CodeGenerationOptions.cs: Set the correct enum values.
1483 * CodeIdentifier.cs: Added private constructor.
1484 * SchemaImporter.cs: Added internal constructor.
1485 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
1486 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
1487 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
1488 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
1489 * XmlSerializationReader.cs: Added missing setter for DecodeName.
1491 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1493 * XmlSerializer.cs: Fix fix.
1495 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1497 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
1498 * ReflectionHelper.cs: New method for generating map keys.
1499 * SerializationCodeGenerator.cs: Added support for generating the serializer
1500 contract class, needed for 2.0.
1501 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
1503 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
1504 as Type[]. Added check that makes sure that enums being serialized are
1506 * XmlMapping.cs: Added internal GetKey method.
1507 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
1508 Added first bits to support loading of serializers from pre-generated
1510 * XmlSerializerFactory.cs: Mostly implemeted.
1512 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1514 * CodeIdentifier.cs: Removed constructor for NET_2_0.
1515 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
1516 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
1517 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
1518 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
1519 XmlSerializerNamespaces.cs: Added 2.0 stubs.
1520 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
1521 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
1522 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
1523 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
1524 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
1525 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
1526 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
1528 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1530 * SerializationCodeGenerator.cs: Generate check that the object being
1531 serialized has a known type. Little cast fix.
1532 * XmlCustomFormatter.cs: Little fix in Single conversion.
1534 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
1536 * TypeData.cs: In the constructor, set the correct xml type name if the
1537 type is an array (for example, instead of StringCollection, use
1540 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
1542 * ReflectionHelper.cs: Correctly detect private types.
1543 * XmlCodeExporter.cs: Implemented missing method.
1544 * XmlSchemaImporter.cs: Allow import of root primitive types.
1546 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
1548 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
1549 SerializationCodeGenerator.cs, SerializationSource.cs,
1550 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
1551 XmlSerializationReader.cs, XmlSerializationWriter.cs,
1552 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
1553 : Globalization fixes.
1554 In XmlCustomFormatter.GenerateToXmlString() time was not
1555 generated correctly.
1556 Replaced all CRLF XmlAttributeOverrides.cs into LF.
1558 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
1560 * XmlSerializationWriter.cs: changed signature of protected method
1561 FromByteArrayBase64 to match MS.NET
1563 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1565 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
1566 attributes that MS.NET generates.
1567 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
1569 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
1570 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
1571 MS.NET member ordering. Patch by David Taylor.
1572 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
1573 flag. The generated enum must also not be included in the schema.
1574 * XmlTypeMapMember.cs: Added ignore flag.
1575 * XmlTypeMapping.cs: The AttributeMembers property now returns the
1576 attributes in the correct order.
1578 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
1580 * XmlSerializationReader.cs: added missing protected members
1581 to fix API compatibility with MS.NET
1582 * XmlSerializationWriter.cs: added missing protected members
1583 to fix API compatibility with MS.NET
1585 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
1587 * XmlSerializationReader.cs: Support schamea instance namespaces other than
1588 the 2001 one when reading the xsi type.
1589 * MapCodeGenerator.cs: Take into account that the root namespace and element
1590 name may have changed from one export to another of the same type. In
1591 this case the class attributes need to be regenerated.
1592 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
1593 not ElementName. Idem for namespace.
1594 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
1595 * XmlRootAttribute.cs: Default value for nullable is true.
1596 * XmlSchemaImporter.cs: The root name for a class may change in some
1597 scenarios (for example, when the type is initially exported as part of
1598 another type and later exported as a root type).
1599 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
1600 found using the standard namespace, try getting the type using
1601 the 2000/10 and 1999 namespaces.
1602 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
1604 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1606 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1607 In encoded format, primitive types can be null. Read them using
1608 ReadReferencingElement, that already checks for the null tag.
1610 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
1612 * XmlSerializationReader.cs: Check for empty element when reading an array
1613 element. This fixes bug #59003. Thanks Atsushi!
1615 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1617 * XmlSerializationWriter.cs: Implemented some missing methods.
1618 In .NET 1.0, encoded null elements use the attribute null="1", while in
1619 1.1 the attribute is nil="true".
1620 * XmlTypeMapping.cs: Little fix for nested classes.
1622 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1624 * XmlReflectionImporter.cs: Don't reset the internal tables at every
1625 ImportMembersMapping call. This fixes bug #58112. The problem is that
1626 it imported two different arrays (only different in the array item
1627 namespace) with the same name. Not sure what was this Reset needed for,
1628 everyting seems to work without it.
1630 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1632 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1633 When deserializing an encoded method response, if the return type of the
1634 method is Object, assign to it the first element of the message, whatever
1636 * XmlSerializationReader.cs:
1637 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
1638 the imported member.
1639 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
1640 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
1641 a given xsi type is not found. Just read it as primitive type.
1642 * XmlTypeMapMember.cs: Added IsReturnValue property.
1643 * XmlTypeMapping.cs: Added ReturnMember property.
1644 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
1646 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1648 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1649 When reading an object using the typeof(object) map, an emty xsi:type
1650 means that it has to read the contents into an XmlNode[].
1651 * TypeData.cs: Return the correct full name for inner classes.
1652 * XmlSchemaImporter.cs: Improved detection of types that represent
1653 "anyType", and must be mapped to XmlElement, XmlNode or Object.
1654 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1655 the correct namespace.
1656 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1659 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1661 * XmlSerializationWriter.cs : It do not have to handle schema
1662 namespace as special one.
1664 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1666 * XmlSerializationReaderInterpreter.cs: Removed the check for null
1667 AttributeMembers collection. Even if there are no attribute members,
1668 attributes need to be read.
1670 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1672 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1673 the IXmlSerializable object may not read all the EndElement it read.
1674 This fixes bug #57413.
1676 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1678 * XmlSerializer.cs: Enable serializer generation by default.
1680 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
1682 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1683 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1684 turns out that it is an array, import it again as array. This fixes
1687 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1689 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1690 don't use type name for array types, since we can have different classes
1691 that represent the same array type (for example StringCollection and
1694 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
1696 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1697 not present in MS.NET.
1698 * XmlSerializationWriter.cs: Improved error message.
1700 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1702 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
1703 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1704 Support deserialization of members of type XmlDocument. This fixes #56169.
1706 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1708 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1709 Use a special method to generate default values, since default enum values
1710 will come as integers, so a special cast is needed.
1711 * XmlSerializationReaderInterpreter.cs,
1712 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1713 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
1714 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1715 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
1716 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1717 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1718 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1719 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1720 of SerializationSource. It can't keep and use the XmlAttributeOverride
1721 instances as key values, since those instances can be modified after the
1722 xml map has been generated. Now, SerializationSource generates a unique
1723 string hash from XmlAttributeOverride and uses it for comparisons.
1725 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
1727 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
1728 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1729 the adequate type. Set the default value of members that do have a default
1730 value. Other minor fixes.
1731 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1732 from typeof(object) map, even those that have another base class.
1733 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1734 It must serialize the char as number, not as character.
1735 * XmlSerializationReaderInterpreter.cs: Set the default value of members
1736 that do have a default value.
1737 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1738 of members that have a default value.
1740 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
1742 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1743 This fixes bug #55547.
1745 2004-03-13 David Sheldon <dave-mono@earth.li>
1747 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1750 2004-03-13 David Sheldon <dave-mono@earth.li>
1752 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
1753 fixes test case that tests for this directly.
1754 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1755 it. Treat it as null.
1757 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
1759 * CodeIdentifier.cs: Limit the length of identifiers.
1760 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1761 Generate types using GetDomType, so if the type is an array, it creates
1762 the correct combination of types.
1763 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1764 an enum, if the string is empty and the enum has [Flags], then return 0
1765 as value. This fixes bug #55509.
1766 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1767 are not supported. Another check: a simple type cannot be enum if it does
1768 not have any enum facet.
1769 And another fix: use string as default type for attribtues.
1770 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
1771 other schemas. An imported schema would not be in the table, but its
1772 elements (although from another namespace) would be in the schema that
1773 imported it. So, we need know to check for every schema in the table.
1774 * XmlSerializer.cs: Added environment variable to help debugging code
1777 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
1779 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1780 of XmlInclude attributes needed for the service class.
1781 IsMapExported: Removed check for object type, since it can now be exported.
1782 SetMapExported: Use the type name as key, since different importers may
1783 be used to create a map for the same type.
1784 GenerateClassInclude: Updated signature.
1785 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1786 GenerateClassInclude(): Updated signature.
1787 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1788 Implemented IncludeTypes.
1789 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1790 GenerateClassInclude(): Updated signature.
1791 * XmlMemberMapping.cs: Added missing property.
1792 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1793 Implemented IncludeTypes().
1794 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1795 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1796 Now, it does a regular import and then assign the required base class to
1797 the imported map. In this way it is possible to assign a base type for a
1798 map that was previously imported without a base type.
1799 * XmlTypeMapping.cs: Added internal method SetRoot().
1801 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
1803 * SerializationCodeGenerator.cs: Added support for generation of readers
1804 and writers for several maps in a single class. Added support for
1805 XmlMemberMapping. Fixed generation of serializers that use encoded format.
1806 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1807 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
1808 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1809 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1810 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1811 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1812 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1813 Added InternalEquals method.
1814 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1815 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1816 * XmlCustomFormatter.cs: Fixed little bug.
1817 * XmlMapping.cs: Added Source property. This a global identifier of the map.
1818 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1819 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1821 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1822 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1824 * XmlSerializer.cs: Added support for generation of serializers.
1826 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
1828 * SerializationCodeGenerator.cs,
1829 SerializationCodeGeneratorConfiguration.cs:
1830 Added <namespaceImports> feature ("using XXX;" generation) support.
1832 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
1834 * XmlSerializationWriter.cs: When writing the root element, use a prefix
1835 if the namespace of the element is defined in the list of namespaces
1836 provided to the XmlSerializer. This fixes bug #54427.
1838 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
1840 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1841 Those are basically methods to add custom attributes to element and
1843 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1844 * XmlCodeExporter.cs: Better support for custom attribute generation for
1846 * XmlCustomFormatter.cs: Added null check.
1847 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
1848 attributes that are required.
1849 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1852 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
1854 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1855 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1856 string, not string[].
1857 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1858 for array parameters. In general, improved generation of schema Form
1860 * XmlMemberMapping.cs: Added Form property.
1861 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1862 simple types. Added a check for this.
1863 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1864 Form. The key used to determine if a map has been already generated must
1865 include the XmlType, since there can be two xml types with the same CLR
1866 type and namespace (for example, they may differ in the Form property).
1867 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1868 also return the corresponding map. There can be two maps that have the
1869 same TypeData, so given a TypeData is not always possible to get the
1870 correct corresponding map (for example two arrays that only differ in the
1872 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1875 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1877 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1878 normalizedString schema type.
1880 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1882 * XmlReflectionImporter.cs: Get the class members using the right order.
1883 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1884 A member with the Any attribute can also contain text. Support this.
1885 * XmlTypeMapMemberElement.cs: Added CanBeText property.
1887 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1889 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1892 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1894 * MapCodeGenerator.cs: Added helper method for generating an attribute
1895 parameter of type enum.
1896 * XmlAttributeAttribute.cs: little fix.
1897 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1898 for method parameters.
1899 * XmlMemberMapping.cs: Improved support for members of type "any".
1900 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1901 If the namespace is explicitly specified, then the form should be
1902 qualified. Also fixed issues with the namespace assigned to attributes.
1903 This should fix bug #53384.
1904 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1905 methods that return values of type "any". Changed the methods
1906 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1907 element, return it, and the caller must add it to the collection.
1908 Other fixes in attribute generation.
1909 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1910 generate the AnyType mapping from the type described in the schema.
1911 Small fixes regarding IsMixed property of complex types (it means that
1912 the type can contain text, so the XmlTextAttribute must be generated).
1913 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1914 be only used in the bare+encoded format.
1916 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1918 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1919 to be derived types of the one that has the attribute.
1920 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1921 map to the parent map. This fixes #53246.
1922 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1924 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
1926 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
1927 do not check the root element name, since it can be any name. This fixes
1930 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1932 * XmlReflectionImporter.cs: Throw exception if a value type member has the
1933 IsNullable=true flag. This fixes bug #52906.
1935 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1937 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
1938 so a 'specified' member has always to be generated.
1939 * TypeData.cs: Fixed check for value type.
1941 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1943 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
1944 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
1945 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
1946 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
1947 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
1948 Added support for value specifiers members. This fixes bug #53024.
1950 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1952 * XmlSchemaExporter.cs: Don't create referenced element if it has already
1953 been created (two types could be referencing the same schema element).
1955 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
1957 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
1958 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
1959 arrays. This fixes bug #53018.
1961 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
1963 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
1964 default namespace for members.
1965 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
1966 * XmlReflectionImporter.cs: Fixed the assignment of root and type
1968 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
1969 default namespace for members. In AddSchemaElement, if the element is
1970 a root element never use a "ref" attribute.
1971 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
1973 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1975 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1976 XmlTypeMapping.cs: more namespace fixes.
1978 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1980 * XmlReflectionImporter.cs: type namespace must never be used as root
1981 namespace. This fixes bug #52772.
1983 2004-01-08 Nick Drochak <ndrochak@ieee.org>
1985 * XmlSchemaImporter.cs: Removed unused variable.
1987 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
1989 * XmlReflectionImporter.cs: Ignore Namespace property when applying
1990 the [XmlType] attribute to an enum. This fixes bug #52607.
1992 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
1994 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
1995 option that allow serialization of private types.
1997 2003-12-18 Eran Domb <erand@mainsoft.com>
1999 * TypeTranslator.cs : Change primtive types map.
2001 2003-12-18 Eran Domb <erand@mainsoft.com>
2003 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
2006 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2008 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
2009 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
2010 primitive types are not the same as XML primitive types. Patch proposed
2011 by Mordechai Taitelman. This fixes bug #52228.
2012 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
2014 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2016 * XmlReflectionImporter.cs: Little fix.
2018 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2020 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
2021 need to be derived types of the includer. This fixes bug #52152.
2022 Added null check for Name property of XmlEnumAttribute. This fixes
2024 * XmlSerializationReader.cs: Fixed some error messages.
2025 * XmlSerializationReaderInterpreter.cs: Check that the root element has
2026 the correct local name and namespace. This fixes bug #52038.
2027 Throw exception if enum value can't be parsed.
2028 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
2031 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
2033 * MapCodeGenerator.cs: Added support for [Flags] enum.
2034 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
2035 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
2036 encoded array type. Added support for enums with [Flags].
2037 In encoded format, unqualified types are schema types by default.
2039 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
2041 * XmlCodeExporter.cs: Little fix.
2042 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
2043 same name have the same type.
2044 * XmlSchemaImporter.cs: Support xml:lang.
2045 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
2046 fixed wrong namespace for the arrayType attribute.
2048 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
2050 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
2051 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2052 When using rpc format on a web service, members don't need to have any
2053 specific namespace. Added a flag for turning namespace check on/off.
2055 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
2057 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
2058 delayedListFixups.Count cannot be used because elementes from
2059 delayedListFixups are deleted sometimes.
2061 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
2063 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
2064 This fixes bug #51060.
2066 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
2068 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
2069 If type is Enum the code use type.GetElememtType() instead of
2070 Enum.GetUnderlyingType().
2072 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
2074 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
2075 Removed several TODOs already done.
2077 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
2079 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
2082 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
2084 * ReflectionHelper.cs: In CheckSerializableType() check that the type
2086 * XmlSerializationWriter.cs: Added check for circular references.
2087 This fixes bug #49879.
2089 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
2091 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
2092 can't be serialized. This fixes bug #49878.
2093 * TypeData.cs: In ListItemType check that the collection has a valid
2094 Add method and report an error if not.
2095 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
2096 reflecting a collection.
2098 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
2100 * SoapReflectionImporter.cs: Support element references for enum values in
2101 encoding format. This fixes bug #49568.
2102 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
2103 the name and namespace of the wrapper element. MS.NET doesn't do it.
2104 This fixes bug #49729.
2106 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
2108 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
2110 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
2112 * MapCodeGenerator.cs: New file. Moved here all code that is common
2113 between XmlCodeExporter and SoapCodeExporter.
2114 * SoapCodeExporter.cs: Implemented.
2115 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
2116 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
2117 encoded bare parameter list.
2118 * XmlTypeMapping.cs: Added method for getting member element by index.
2120 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2122 * XmlSchemas.cs : Implemented IsDataSet().
2124 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
2126 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
2127 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
2128 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
2129 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
2130 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
2131 and whether it uses encoded or literal format.
2132 * XmlSchemaExporter.cs: Little fixes.
2134 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
2136 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
2137 need to be of type SOAP-ENC:Array, it can be a restriction of it.
2139 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
2141 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
2142 Read only properties are only serialized if the type is an array.
2144 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
2146 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
2147 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
2148 is not needed for value types.
2150 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
2152 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
2153 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
2155 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
2157 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
2159 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
2161 * XmlSchemaExporter.cs: Keep track of elements being exported.
2162 * XmlSchemas.cs: Removed unneeded catch.
2164 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
2166 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
2167 Fixed handling of members with XmlTextAttribute that are arrays.
2168 * TypeData.cs: IsComplexType now returns true for XmlNode.
2169 * XmlSerializer.cs: Added check for null mapping in FromMappings.
2170 * XmlTypeMapping.cs: Added helper method FindTextElement.
2172 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
2174 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
2175 Added support for IncludeInSchema flag.
2176 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2177 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
2178 methods. Added support for IncludeInSchema flag.
2179 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2180 Added support for IncludeInSchema flag.
2181 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
2182 * XmlTypeMapping.cs: Added IncludeInSchema property.
2184 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
2186 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
2188 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
2190 * XmlCustomFormatter.cs: added support for additional string types in
2191 GenerateToXmlString().
2192 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
2195 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
2197 * SoapSchemaImporter.cs: implemented.
2198 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
2199 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
2200 * XmlSchemaImporter.cs: more support for encoded format.
2202 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
2204 * SerializationCodeGenerator.cs: Minor fixes.
2205 * SoapReflectionImporter.cs: More fixes.
2206 * SoapSchemaExporter.cs: implemented.
2207 * SoapSchemaImporter.cs: Initial implementation.
2208 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
2210 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
2211 * XmlMemberMapping.cs: Minor fixes.
2212 * XmlMembersMapping.cs: added some convenient constructors.
2213 * XmlSchemaExporter.cs: Added support for encoded format.
2214 * XmlSchemaImporter.cs: Added support for encoded format.
2215 * XmlSerializationReader.cs: changed some string literals by constants.
2216 Implemented ParseWsdlArrayType.
2217 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
2219 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
2220 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
2221 WriteAttribute to write custom attributes.
2222 * XmlSerializer.cs: added some namespace constants.
2223 * XmlTypeMapping.cs: added GetSchemaArrayName method.
2225 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
2227 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
2228 * XmlTypeMapMemberElement.cs: Little fix.
2229 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
2230 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
2232 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
2235 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
2237 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2238 * XmlMemberMapping.cs: Changed constructor.
2239 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2240 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
2241 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
2242 * XmlSerializationWriterInterpreter.cs: Changed visibility.
2244 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2246 * XmlSerializer.cs: Fix in Deserialize() method.
2248 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2250 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
2251 * XmlSchemas.cs: Find method: make sure the returned object belongs to
2253 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
2254 Add null checks for eventSource.
2255 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
2256 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
2257 namespece declarations. Virtual method WriteObject not needed any more.
2258 In WriteStartElement, write the provided namespaces.
2259 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
2260 Added GetTypeMap method, that returns the map for a given type. Added some
2261 virtual methods, so writer behavior can be extended at several places by
2263 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
2264 methods CreateReader and CreateWriter are not called unless no type or
2265 type mapping was provided in the constructor.
2267 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2269 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
2270 schema type it is importing is a class or an array. It will always
2273 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2275 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
2276 as text nodes. Support it.
2278 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2280 * CodeIdentifier.cs: Fixed MakeValid method.
2281 * TypeTranslator.cs: Added support for more primitive types. Added
2282 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
2284 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
2285 are different from the type ns and name.
2286 Generate class and field comments.
2287 Fixed default attribute generation. In elements with ref attribute, it has to be
2288 generated in the referred attribute.
2289 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
2290 Added suport for text nodes in members of type "any".
2291 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
2293 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
2294 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
2295 that have already been declared.
2296 WriteStartElement(): elements from schema namespace are always written with ns prefix.
2297 * XmlTypeMapMember.cs: Added documentation property.
2298 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
2299 represents a simple type.
2301 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2303 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
2305 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
2306 * TypeData.cs: Added property that returns a TypeData that represents an array of
2308 * TypeTranslator.cs: Added GetArrayName() method.
2309 Added TypeDatas for missing primitive types.
2310 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
2311 XmlRootAttribute. Added the namespace to all attributes being generated.
2312 Other fixes in the generation of code.
2313 * XmlReflectionImporter: store the namespace of the type in the maps.
2314 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
2315 class can generate text. Do not export inherited attributes of a class.
2316 Use the new root namespace stored in the map when generating the root element.
2317 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
2318 namespace is the default namespace.
2319 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
2320 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
2321 namespace instead of the map namespace (which can be different if the type
2322 has a XmlRoot element).
2323 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
2324 to System.DBNull.Value.
2325 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
2326 the collection if it has not yet been created.
2327 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
2328 of the type. It may be different from the namespace of the map if the type
2329 has a XmlRoot element. Also added IsSimpleType property.
2330 In ClassMap, added AllMembers property.
2332 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
2334 * TypeData.cs: Added new constructor and variables to allow the creation of
2335 a TypeData without a Type. Added ListItemTypeData property.
2336 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
2337 array of arrays. Added also a property to get the nested array map.
2338 * XmlCodeExporter.cs: First implementation of code exporter.
2340 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2342 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
2343 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
2346 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
2348 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
2349 maps with the same name and namespace. To avoid this, maps must be registered
2350 using the real map namespace, not the default namespace (the namespace can
2351 change if the type has a XmlType or SoapType attribute).
2352 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
2353 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
2355 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
2358 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2360 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
2361 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
2362 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
2363 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
2364 * XmlSchemaExporter.cs: Implemented.
2365 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
2366 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
2367 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
2368 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
2369 GetStringValue() returns null if the value is null, instead of empty string.
2370 (attributes with null values are not written).
2371 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
2372 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
2373 DataType value can is now in TypeData.
2374 * XmlTypeMapMemberElement.cs: Small fix.
2375 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
2377 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2379 * AssemblyInfo.cs: Removed
2381 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
2383 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
2384 namespace declarations if they have already been defined.
2386 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
2388 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
2389 for adding elements to a list.
2391 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
2393 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
2394 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
2397 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2399 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
2400 Added support for serialization of enums with the Flags attribute.
2402 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2404 * SoapReflectionImporter.cs: Fix support for DataType in class members.
2405 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
2406 can have other names.
2407 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
2408 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
2409 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2410 Fix support for DataType in class members.
2411 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
2412 Added support for array of primitive types in attributes.
2414 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
2416 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
2417 be overlodaded, so it is not good for this.
2418 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
2420 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
2422 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
2423 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
2424 array if the namespace is not specified in XmlArrayItemAttribute.
2426 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
2428 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
2429 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
2430 is not specified in the xsi attribute.
2431 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
2432 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
2434 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2436 * XmlSerializationReader.cs : Synchronous fix with
2437 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
2438 * added XmlTypeMapMemberNamespace.cs.
2439 * XmlReflectionImporter,
2440 XmlSerializationReaderInterpreter.cs,
2441 XmlSerializationWriterInterpreter.cs,
2442 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
2444 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2446 * XmlSerializationWriter.cs : some QName handling fix.
2448 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2450 * XmlSerializationReader.cs: Fixed error message.
2451 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
2453 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
2455 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2457 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
2458 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
2459 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
2460 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
2462 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2464 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
2465 * SoapReflectionImporter.cs: tiny fix.
2466 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
2467 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
2468 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
2469 * XmlSerializationWriter.cs: implemented WriteSerializable ().
2471 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
2473 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
2474 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
2475 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
2476 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
2477 * XmlSerializationWriter.cs: small fix.
2479 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2481 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
2482 Added support for DefaultValueAttribute.
2483 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
2484 the value of an enum.
2485 * XmlTypeMapMember.cs: Added DefaultValue attribute.
2486 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
2489 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2491 * XmlSerializationReader.cs: Minor fix.
2493 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2495 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
2497 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
2499 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2500 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
2501 * XmlCustomFormatter.cs: small fixes.
2502 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2503 * XmlSerializationWriter.cs: Implemented TopLevelElement().
2504 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
2505 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
2506 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
2509 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
2511 * SoapReflectionImporter.cs: implemented.
2512 * TypeTranslator.cs: added IsPrimitive() method
2513 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
2514 used by that one. Also added Format property, that can be literal or encoded.
2515 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
2516 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
2517 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
2518 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
2519 * XmlSerializationWriter.cs: added support for encoded format.
2520 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
2521 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
2522 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
2523 and a map is needed for them).
2524 * XmlTypeMapMemberElement.cs: small fixes.
2525 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
2526 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
2528 2003-06-01 Miguel de Icaza <miguel@ximian.com>
2530 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
2531 UnknownElement): Add line number information.
2533 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
2535 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
2536 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2537 * XmlMapping.cs: Added internal property.
2538 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
2539 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
2540 * XmlReflectionMember.cs: XmlAttributes are now created by default
2541 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
2542 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
2543 Implemented support for XmlMembersMapping.
2544 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
2546 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
2548 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
2549 from xml type to clr type.
2550 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2551 * XmlReflectionMember.cs: Added default constructor.
2552 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
2553 * XmlSerializationWriter.cs: Several fixes.
2554 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2555 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
2556 Added support for enums. Added support for XmlElement and XmlNode.
2557 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
2559 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
2561 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
2562 * XmlCustomFormatter.cs: Added formatting methods.
2563 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
2564 * XmlReflectionMember.cs: Added new constructor.
2565 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
2566 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
2567 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
2568 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
2570 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2572 * Added TypeTableEntry.cs.
2573 * TypeTranslator.cs : changed for non-static use.
2574 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
2575 and GetElementName(). Bugfix so that if any XmlElementAttribute
2576 exists after non-typed XmlElementAttribute then it might be ignored.
2577 Added GetElementIsNullable().
2578 * XmlSerializer.cs :
2579 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
2580 Object memberObj[4].
2581 Deserialize() now uses XmlReader.Depth to check its depth.
2582 Serialize() for non-XmlReader arguments now always write xmldecl.
2583 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
2584 and handles XmlQualifiedName.
2585 Separated SerializeType () from Serialize().
2586 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
2587 IsPropertyTypeSerializable() from SerializeMembers().
2588 SerializeMembers() is now capable of null value and actual type,
2589 which should be included by XmlIncludeAttribute and so on.
2590 Renamed SerializeArray() to SerializeArrayContent(), and added
2591 SerializeCollectionContent().
2592 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
2593 FillTypeTable() is now aware of XmlInclude attributes.
2594 FillEnum() should not have different type table content from others.
2596 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2598 * XmlSerializer.cs : this time, only replaced spaces with tabs.
2600 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2602 * ChangeLog : Added missing ChangeLog of 2003-04-25.
2603 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
2604 separators. Added experimental method ToEnum().
2605 * XmlSerializationReader.cs : unconfirmed implementation of
2606 ReadSerializable() and ToEnum().
2607 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
2608 is null then no output will be written.
2609 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
2610 to use custom formatted name.
2612 2003-05-02 Miguel de Icaza <miguel@ximian.com>
2614 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
2615 had a void return value.
2617 2003-04-26 Miguel de Icaza <miguel@ximian.com>
2619 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
2620 `AllowMultiple' flags.
2622 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2624 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
2625 * XmlReflectionImporter.cs : patch by Erik LeBel.
2626 Now uses XmlRootAttribute to determine element name.
2628 2003-03-17 Miguel de Icaza <miguel@ximian.com>
2630 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
2633 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2635 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
2636 XmlWriter argument should call WriteEndDocument.
2638 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2640 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
2641 not WriteState.Start, and never call WriteEndDocument().
2643 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
2645 * XmlCustomFormatter.cs: Correct signature, Implement
2648 * XmlSerializationWriter.cs: Fix prototype.
2650 * XmlSerializer.cs: Implements Deserialize().
2652 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2654 * XmlSerializer.cs : serializing now works for interface member.
2656 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2658 * XmlSerializer.cs : some fix handling xml node object more correct.
2660 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
2661 * XmlSerializer.cs: Array serialization for 1D arrays works
2662 * TypeTranslator: Added for translations`
2664 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2666 * XmlCustomFormatter.cs: finished.
2667 * XmlSerializationReader.cs: implemented some more methods.
2669 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2671 * XmlSerializationReader.cs: implemented a few methods.
2673 * XmlAnyElementAttribute.cs:
2674 * XmlArrayAttribute.cs:
2675 * XmlChoiceIdentifierAttribute.cs:
2676 * XmlElementAttribute.cs:
2677 * XmlMemberMapping.cs:
2678 * XmlMembersMapping.cs: class status based fixes.
2680 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2682 * CodeIdentifiers.cs:
2683 * XmlSchemaExporter.cs:
2684 * XmlSchemaImporter.cs:
2686 * XmlSerializationWriteCallback.cs:
2687 * XmlSerializationWriter.cs:
2689 * XmlSerializerNamespaces.cs: some class status based fixed and
2690 implemented a couple of methods.
2692 * SoapSchemaExporter.cs: stubbed out.
2694 2002-08-24 Tim Coleman <tim@timcoleman.com>
2695 * SoapCodeExporter.cs:
2696 Fix return value of ExportTypeMapping.
2697 * XmlCustomFormatter.cs:
2698 Change methods to be internal instead of public.
2699 * XmlSerializationWriter.cs:
2700 Modify GetPrimitiveTypeName to build on linux.
2701 Modify GetQualifiedName to return an incrementing prefix
2702 instead of the same one all the time (still need to manage
2704 Modify WriteElementString to only do special stuff is XsiType
2706 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2707 an XmlQualifiedName.
2709 2002-08-22 Tim Coleman <tim@timcoleman.com>
2710 * XmlSerializationReader.cs:
2712 * XmlSerializationWriter.cs:
2714 * XmlCustomFormatter.cs:
2715 Implemented this class.
2717 2002-08-20 Tim Coleman <tim@timcoleman.com>
2718 * XmlSerializationWriter.cs:
2719 Some implementation.
2721 2002-08-19 Tim Coleman <tim@timcoleman.com>
2724 * XmlSerializationWriter.cs:
2727 2002-08-14 Tim Coleman <tim@timcoleman.com>
2729 More reformatting of source code so I can
2730 better understand what it does.
2732 2002-08-06 Tim Coleman <tim@timcoleman.com>
2734 Some reformatting of code for readability.
2735 Modify to correctly serialize ICollection objects
2736 such as the BindingCollection of a ServiceDescription
2739 2002-08-03 Tim Coleman <tim@timcoleman.com>
2741 Changed Implements() to check based on name rather
2742 than FullName. FullName was never working correctly.
2744 2002-07-26 Tim Coleman <tim@timcoleman.com>
2746 The constructor now looks for an XmlRootAttribute attribute
2747 if one is not passed in. Various changes to make it emit
2748 proper XML, such as handling an element without a namespace
2749 prefix, and using WriteEndDocument where it should be.
2751 2002-07-24 Tim Coleman <tim@timcoleman.com>
2752 * CodeIdentifier.cs:
2753 * IXmlSerializable.cs:
2754 * XmlSerializationCollectionFixupCallback.cs:
2755 * XmlSerializationFixupCallback.cs:
2756 * XmlSerializationReadCallback.cs:
2757 * XmlSerializationReader.cs:
2758 * XmlSerializationWriteCallback.cs:
2761 * CodeIdentifiers.cs:
2762 Implement some of these classes
2763 * XmlCodeExporter.cs:
2764 Fix return type of a function
2766 2002-07-24 Tim Coleman <tim@timcoleman.com>
2767 * SoapReflectionImporter.cs:
2768 New class added to build
2769 System.Web.Services.Description.ServiceDescription.cs
2771 2002-07-22 Tim Coleman <tim@timcoleman.com>
2772 * CodeIdentifiers.cs:
2773 * SoapCodeExporter.cs:
2774 * SoapSchemaExporter.cs:
2775 * XmlCodeExporter.cs:
2776 * XmlMemberMapping.cs:
2777 * XmlMembersMapping.cs:
2778 * XmlReflectionImporter.cs:
2779 * XmlReflectionMember.cs:
2780 * XmlSchemaExporter.cs:
2781 * XmlSchemaImporter.cs:
2783 New stubbs added to aid in the linux build of
2784 System.Web.Services.
2786 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
2788 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2790 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2792 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
2794 * XmlSeriailizer: Updated Serialize() method.
2796 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2797 * XmlSerializer: Serialize() method Partially Implemented.
2799 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2801 * Soap & XmlOverrides: Implemented using TypeMember as key with
2802 suggestions from Rafael.