1 2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlTypeMapping.cs, XmlReflectionImporter.cs: XmlRoot takes higher
4 priority to XmlSchemaProvider QName.
5 This fixes WCF EndpointAddress serialization.
7 2010-03-16 Jb Evain <jbevain@novell.com>
9 * SerializationSource.cs: use MOONLIGHT symbol to disambiguate
10 MonoTouch and Moonlight code.
12 2010-03-10 Atsushi Enomoto <atsushi@ximian.com>
14 * XmlAnyElementAttribute.cs : add internal IsNullableSpecified
15 (for moonlight compatibility).
16 * XmlChoiceIdentifierAttribute.cs : implement MemberInfo (ditto).
18 2010-03-08 Atsushi Enomoto <atsushi@ximian.com>
20 * XmlSerializationWriter.cs : namespaces argument could be null.
21 MS generated serializers often pass null here.
23 2010-01-28 Atsushi Enomoto <atsushi@ximian.com>
25 * SerializationCodeGenerator.cs : generate valid code for non-
26 identifier names. This should fix bug #488293.
28 2010-01-26 Atsushi Enomoto <atsushi@ximian.com>
30 * XmlReflectionImporter.cs, SerializationCodeGenerator.cs,
31 XmlSerializationWriterInterpreter.cs: XmlAnyElementAttribute can be
32 still used for non-XmlNode (object) array. It only fails when it
33 tries to serialize non-XmlNode object at run-time.
36 2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
38 * SerializationCodeGenerator.cs : enum value identifiers should be
39 escaped with '@'. Fixed bug #566370.
41 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
43 * XmlRootAttribute.cs : it is also expected to have
44 internal property for SL2.
46 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
48 * XmlArrayItemAttribute.cs, XmlElementAttribute.cs,
49 XmlAnyElementAttribute.cs : added more 2.1 obstacles.
51 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
53 * XmlChoiceIdentifierAttribute.cs : added internal MemberInfo
56 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
58 * SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
59 SerializationSource as the class is going to be used in 2.1 too.
60 * XmlRootAttribute.cs : use KeyHelper above to add internal Key
61 property that is used in SL2 System.Xml.Serialization.dll.
63 2009-02-19 Geoff Norton <gnorton@novell.com>
65 * SerializationSource.cs: KeyHelper is needed by
68 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
70 * XmlSchemaImporter.cs : hack ImportSchemaType().
72 2008-12-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
74 * XmlSerializer.cs: updated to work with shadowcopy fixes.
76 2008-11-05 Atsushi Enomoto <atsushi@ximian.com>
78 * TypeData.cs : do not reject ICollection<T> for not implementing
79 Item[T]. Fixed bug #430759.
81 2008-09-19 Atsushi Enomoto <atsushi@ximian.com>
83 * XmlSerializer.cs : revert previous change and fix sys.data tests.
85 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
87 * XmlSerializer.cs : in 2.0 profile it seems to create XmlReader
88 for stream and textreader, that skips whitespaces.
90 2008-09-02 Atsushi Enomoto <atsushi@ximian.com>
92 * SerializationCodeGenerator.cs
93 XmlSerializationWriterInterpreter.cs : fixed bug #419973.
94 Sometimes implicit operators could involve and it affects on
95 typecasting. It's simple for code generator, but very bad for
98 2008-08-19 Jb Evain <jbevain@novell.com>
100 * XmlRootAttribute.cs: ifdef out parts to compile on net_2_1.
102 2008-07-10 Atsushi Enomoto <atsushi@ximian.com>
104 * XmlSerializationWriter.cs : more helpful error message.
106 2008-07-09 Atsushi Enomoto <atsushi@ximian.com>
108 * MapCodeGenerator.cs : use explicit element name for explicitly added
109 XmlElementAttribute. (exposed by some product from some company.)
111 2008-06-05 Atsushi Enomoto <atsushi@ximian.com>
113 * XmlSerializationReaderInterpreter.cs, MapCodeGenerator.cs,
114 SerializationCodeGenerator.cs : fixed bug #378696.
115 Default value should not be filled during deserialization, and
116 default values for DateTime/TimeSpan/DateTimeOffset should not be
117 output as raw string in generated code.
119 2008-06-04 Atsushi Enomoto <atsushi@ximian.com>
121 * XmlSerializationReader.cs : in ReadXmlDocument(), MoveToContent()
122 is required after ReadStartElement(). Fixed bug #393406 (without
123 unit test; no simple way to do that :( ).
125 2008-04-11 Atsushi Enomoto <atsushi@ximian.com>
127 * XmlTypeMapping.cs : .NET 2.0 has a weird behavior that swallows
128 exception from IXmlSerializable.GetSchema().
130 2008-04-01 Lluis Sanchez Gual <lluis@novell.com>
132 * TypeData.cs: Prefix with a '@' type names that are equal to keywords.
133 * XmlSerializationReaderInterpreter.cs,
134 XmlSerializationWriterInterpreter.cs: Properly handle nullable enum
136 * SerializationCodeGenerator.cs: Properly handle nullable enum values.
137 Don't generate read flags for text collectors (avoid var not used
139 * XmlReflectionImporter.cs: Assign the MappedType to text collector
140 members. It is needed when the member is an enum.
142 2008-03-30 Gert Driesen <drieseng@users.sourceforge.net>
144 * MapCodeGenerator.cs: Ensure fields that back properties are unique.
146 2008-03-26 Lluis Sanchez Gual <lluis@novell.com>
148 * MapCodeGenerator.cs, XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs:
149 If a value type field has the IsNullable property set to true,
150 generate it as System.Nullable<T>.
152 2008-03-26 Lluis Sanchez Gual <lluis@novell.com>
154 * XmlSchemaImporter.cs: Fix problem with primitive types with a forced
155 base class. It happens for example when a web service declares a
156 soap header of type bool. The schema exporter needs to generate a
157 subclass of SoapHeader for that header type. But if bool is used in
158 the parameters, it must use System.Boolean, not the SoapHeader
159 subclass. The solution is to store primitive types with a forced
160 base class in a different table. In this way it is possible to have
161 two maps for primitive types: one with the forced base class
162 (returned by ImportDerivedTypeMapping) and one with the regular
163 primitive map. Fixes bug #336739.
165 2008-03-21 Atsushi Enomoto <atsushi@ximian.com>
167 * XmlReflectionImporter.cs : set key for imported type mapping so
168 that generated serializer does not result in duplicate key error.
171 2008-02-03 Arina Itkes <arinai@mainsoft.com>
173 * XmlSchemaExporter.cs : Generated typed DataTable and typed DataSet
174 have an identical schema and an identical TargetNamespace.
175 This fix is a workaround for this specific case.
177 2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
179 * TypeData.cs : fixed setter which did not actually see the argument.
180 * XmlTypeMapElementInfo.cs : some cosmetic fixes for gendarme-
183 2007-11-09 Atsushi Enomoto <atsushi@ximian.com>
185 * XmlTypeMapping.cs : to get schema provider method, check base
186 types as well (i.e. FlattenHierarchy). Otherwise typed DataSet
187 cannot be reflected in 2.0.
189 2007-11-02 Atsushi Enomoto <atsushi@ximian.com>
191 * TypeTranslator.cs : for duration, rather use primitiveTypes than
192 nameCache, and hence TimeSpan could be serialized just as custom
193 type. Fixed bug #338705.
195 2007-11-01 Atsushi Enomoto <atsushi@ximian.com>
197 * XmlSchemaImporter.cs : simpleType is allowed to be imported.
198 (Part of #336739 fix.)
200 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
202 * XmlCustomFormatter.cs : use RoundtripKind when converting to and
205 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
207 * MapCodeGenerator.cs : found the true culprit for the previous
210 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
212 * MapCodeGenerator.cs, XmlSchemaImporter.cs: revert the previous
213 change; the type is included in the output, but it should not be
216 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
218 * MapCodeGenerator.cs, XmlSchemaImporter.cs: when a complexType has
219 simple content extension/restriction and the simple base type is
220 schema-defined, it must be written in exported code. Fixed (part
223 2007-10-26 Atsushi Enomoto <atsushi@ximian.com>
225 * TypeTranslator.cs, XmlCustomFormatter.cs : looks like duration is
226 serialized to System.String, not TimeSpan. Fixed bug #336625.
228 2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
230 * XmlMapping.cs : added XsdElementName.
231 * XmlSerializationWriter.cs : some more implementation.
233 2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
235 * XmlTypeMapping.cs : Namespace and XmlTypeNamespace could be
236 different when an explicit namespace is specified (e.g. at
237 XmlReflectionImporter.ctor).
238 * SerializationCodeGenerator.cs,
239 XmlSerializationWriterInterpreter.cs :
240 revert XmlTypeMapping.XmlTypeNamsepace usage. Now with the fix
241 above, original code should work fine.
243 2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
245 * XmlTypeMapping.cs, XmlSerializationWriterInterpreter.cs,
246 SerializationCodeGenerator.cs :
247 More XmlSchemaProviderAttribute method check. Use QName returned
248 by the method for the output root name.
250 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
252 * XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
253 byte[] (processed as primitive SchemaType). Fixed bug #81880.
255 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
257 * XmlSchemaProviderAttribute.cs : added IsAny.
259 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
261 * XmlSerializationReader.cs :
262 implemented ReaderCount and CheckReaderCount().
264 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
266 * MapCodeGenerator.cs : avoid possible duplicates in generated field
267 names. Fixed bug #82078.
269 2007-08-10 Atsushi Enomoto <atsushi@ximian.com>
271 * XmlSerializer.cs : use WhitespaceHandling.Significant when creating
272 XmlTextReader. Fixed bug #82372. No tests should be added for it.
274 2007-07-29 Konstantin Triger <kostat@mainsoft.com>
276 * XmlSerializationWriter.cs: do not output xml declaration while
277 serializing XmlDocument.
279 2007-07-26 Atsushi Enomoto <atsushi@ximian.com>
281 * XmlSerializationWriterInterpreter.cs : looks like XmlNode[]
282 serialization is a complicated mess. bug #81539.
284 2007-07-23 Vladimir Krasnov <vladimirk@mainsoft.com>
286 * XmlTypeMapping.cs: fixed XmlSerializableMapping ctor, corrected when
287 qualified name is empty
288 * XmlSchemaExporter.cs: fixed SetSchemaXmlSerializableType when schema
289 provider method returns null schema
291 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
293 * CodeIdentifier.cs: Default ctor is public on 1.0 profile too.
294 * CodeIdentifiers.cs: Ctor taking bool is 2.0 only.
296 2007-06-27 Konstantin Triger <kostat@mainsoft.com>
298 * XmlTypeMapping.cs, XmlSchemaExporter.cs: add partial support for
299 XmlSchemaProviderAttribute.
301 2007-05-27 Konstantin Triger <kostat@mainsoft.com>
304 1. Fix the construction of TypeData for nullable types: it should not
305 be primitive since the primitive were loaded in static ctor.
306 2. Rename primitiveNullableTypes -> nullableTypes to reflect
307 correctly the field purpose.
308 3. Unify synchronization with synchronized hashtable.
310 2007-05-24 Konstantin Triger <kostat@mainsoft.com>
312 * TypeTranslator.cs: fix typo: set IsNullable flag for primitiveNullableTypes.
314 2007-05-14 Adar Wesley <adarw@mainsoft.com>
316 * XmlSchemaExporter.cs: added missing overload for method ExportAnyType.
318 * XmlSchemas.cs: added missing methods Add, AddReference, Contains,
321 * XmlSerializationReader.cs: added missing method AddReaderCount.
323 * XmlSerializationWriter.cs: added missing overload WriteStartElement.
325 * XmlSerializer.cs: added missing overload Serialize.
327 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
329 * XmlCustomFormatter.cs : fix GenerateToXmlString() as well.
331 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
333 * XmlCustomFormatter.cs :
334 in 2.0, use F instead of f for dateTime formatting.
336 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
338 * XmlSchemas.cs : 1.1-only duplicate check does not seem to be
339 required. This is also a workaround for 1.x ws proxy generation.
341 2007-04-24 Atsushi Enomoto <atsushi@ximian.com>
343 * XmlCustomFormatter.cs : ditto for reader method generation.
344 * SerializationCodeGenerator.cs : for generic nullable values it
345 needs to store ReadNullableString() result to a temporary variable.
347 2007-04-23 Atsushi Enomoto <atsushi@ximian.com>
349 * TypeData.cs, XmlCustomFormatter.cs : generic nullable values did
350 not fit with non-nullable formatting. Fixed #80759 regression.
352 2007-04-20 Atsushi Enomoto <atsushi@ximian.com>
354 * XmlTypeMapping.cs, ReflectionHelper.cs,
355 XmlSerializationReaderInterpreter.cs, SerializationCodeGenerator.cs:
356 support instantiation by private constructor.
358 2007-04-19 Konstantin Triger <kostat@mainsoft.com>
360 * XmlSchemaExporter.cs: do not export twice simple types.
362 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
364 * TypeData.cs : forgot NET_2_0.
366 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
368 * TypeData.cs : in get_ListItemTypeData(), check generic ICollection
369 as well as non-generic one. Fixed bug #81341. Though the type check
370 looks like an aggregation of bugfix hacks and there should be some
371 kind of sane refactoring, to throw best-suited errors.
373 2007-02-28 Atsushi Enomoto <atsushi@ximian.com>
375 * SerializationCodeGenerator.cs : fix wrong name comparison:
376 Name->LocalName. Add hacky TARGET_JVM support (hope it is harmless).
378 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
380 * SerializationCodeGenerator.cs,
381 XmlSerializationReaderInterpreter.cs :
382 Handle attributes on non-empty elements as well. Fixed bug #80131.
384 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
386 * SerializationCodeGenerator.cs,
387 XmlSerializationReaderInterpreter.cs :
388 Handle empty root element.
389 Read out attribute parameters. To do that, split attribute
390 reader part from ReadMembers(), as it isn't invoked when the
393 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
395 * XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
397 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
399 * XmlReflectionImporter.cs : CanBeNull() should return true when the
400 argument is generic nullable value type.
402 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
404 * TypeData.cs, MapCodeGenerator.cs, XmlMemberMapping.cs,
405 TypeTranslator.cs : removed IsGenericNullable and added
406 set_IsNullable so that it could be simpler.
408 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
410 * SerializationCodeGenerator.cs, XmlMappingAccess.cs,
411 SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
414 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
416 * SerializationCodeGenerator.cs : hooks won't work unless they are
417 set. For WriteStartElement() it could simply embed the names.
419 2007-02-14 Atsushi Enomoto <atsushi@ximian.com>
421 * XmlTypeMapMember.cs : don't use readonly [Foo]Specified property
422 as nil-condition member. Fixed bug #80759.
424 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
426 * SoapReflectionImporter.cs : for primitive types, set predefined
427 namespaces, regardless of the actual specification.
429 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
431 * XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
433 * XmlSerializationWriterInterpreter.cs,
434 SerializationCodeGenerator.cs : so they have to be handled here.
436 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
438 * XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
439 when the name is null (almost no need to do this, but it is easier
440 to remove NotWorking from extraneous tests and let them hush than
443 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
445 * XmlSerializationWriter.cs : callbacks could be kept null.
447 2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
449 * XmlMemberMapping.cs : uhoh, there is a nasty trick to output
452 2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
454 * TypeData.cs : added get_IsGenericNullable.
455 * MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
456 the TypeData.IsGenericNullable.
457 Use GetDomType() instead of CodeTypeReference.ctor() to not lose
459 * XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
460 so that it won't XmlSchemaElement.IsNillable.
461 * TypeTranslator.cs :
462 Fixed wrong TypeData modification against non-nullable stuff.
463 Added another GetTypeData() that takes isNullableRuntimeType so
464 that it won't miss XmlSchemaElement.IsNillable.
465 Added another GetPrimitiveTypeData() that takes nullable.
467 2007-01-15 Atsushi Enomoto <atsushi@ximian.com>
469 * TypeData.cs : reject generic type definitions.
470 * TypeTranslator.cs : Make generic type names in XML compatible with
471 .net: foo_x0060_1 -> fooOfString.
473 2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
475 * SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
476 GenerateToXmlString() needed hexBinary support as well. Since
477 XmlConvert.[To|From]BinHexString() are internal, use reflection.
478 Really fixed bug #79989 and #79990 for generated serializers.
480 2006-12-03 Gert Driesen <drieseng@users.sourceforge.net>
482 * XmlSchemaExporter.cs: Emit xml name of enum-based default values.
483 Set XmlSchemaAttribute.Use to Required if no default value is defined,
484 and member is not an optional value type. Element should have minOccurs
485 1 if value type member has default value. Output flag enum type as
486 xsd list with restriction.
487 * XmlReflectionImporter.cs: Removed special casing of enums. Instead
488 of passing namespace of XmlAttribute to ImportTypeMapping, use the
489 default namespace for importing the member type.
491 2006-12-02 Gert Driesen <drieseng@users.sourceforge.net>
493 * SerializationCodeGenerator.cs: Initialize out parameters if they
494 are value types. Fixed bug #79988.
495 * XmlSerializationReaderInterpreter.cs: Same.
497 2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
499 * XmlReflectionImporter.cs : implemented several missing check and
500 support for XmlArrayAttribute. Fixed bug #78042.
502 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
504 * XmlCustomFormatter.cs : handle hexBinary type. Fixed bug #79989
507 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
510 * TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
511 "nullable" information. Introduced new primitiveNullableTypes pool
512 whose TypeData has 'true' for new IsNullable property. This
513 property is also used for non-primitive types.
514 * XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
515 of IsValueType, to handle nullable types.
517 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
519 * TypeTranslator.cs : Hari knew better way to do it.
521 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
523 * TypeTranslator.cs : #if NET_2_0 for generic thingy.
525 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
527 * TypeTranslator.cs : (GetTypeData) when the argument type is
528 Nullable<T>, use T instead. At run time (on both interpreter and
529 generated code) it is converted to T. Fixed bug #79803.
531 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
533 * SerializationCodeGenerator.cs, TypeData.cs :
534 Now we differentiate TypeName, FullTypeName C# type names. It is
535 to create valid C# sources especially for generic types.
538 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
540 * XmlSerializationReader.cs : (ReadReferencedElement)
541 Sometimes there are array types in WSDL, which are not reflected
542 in client proxies. In SOAP messages, they are marked
543 soap-env:arrayType, so use it (this could coexist with xsi:type,
544 which indicates the type in WSDL). Fixed bug #79057.
546 2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
548 * XmlSerializationReader.cs : implement ToByteArray[Base64|Hex]().
549 removed extra ReadSerializable().
550 * XmlTypeMapping.cs : added XsdTypeName and XsdTypeNamespace.
552 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
554 * SerializationCodeGenerator.cs,
555 SerializationCodeGeneratorConfiguration.cs :
556 make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
557 (or it is impossible to use genxs more than twice in an assembly.)
559 2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
562 * XmlReflectionImporter.cs : Compute nullable correctly. Elements are
563 nillable when its type is a reference type.
564 * XmlSchemaExporter.cs :
565 Set XmlTypeMapElementInfo.IsNullable from XmlTypeMapping.
566 Set XmlSchemaElement.IsNillable from XmlTypeMapElementInfo.
568 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
570 * XmlSchemaImporter.cs : top-level element might also have no type
571 name specification, so just compare ElementType with anyType.
573 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
575 * XmlSchemaImporter.cs : attributes might overlap by extending
576 base content models. Since invalid content models are rejected by
577 Compile(), simply ignore duplicating attributes. Note that it is
578 basically hack, which should not skip derived ones but use them (but
579 it is mostly harmless since the result is very unlikely to differ).
581 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
583 * XmlSchemaImporter.cs : when top-level element is xs:anyType, all
584 complexTypes must be also imported.
586 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
588 * XmlSchemaImporter.cs : ImportTypeMapping() raises exception when
589 the argument name is not bound to any elements.
591 2006-11-07 Atsushi Enomoto <atsushi@ximian.com>
593 * XmlCustomFormatter.cs : consider null base64 byte array value.
596 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
598 * CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
599 explicitly say Obsolete instantiation.
600 * CodeIdentifiers.cs : implemented case-insensitive mode.
601 * XmlSerializerAssemblyAttribute.cs : added missing .ctor().
602 * SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
603 in 2.0 profile it could also be applied to an interface.
604 * SoapReflectionImporter.cs,
605 XmlReflectionImporter.cs,
606 XmlMappingAccess.cs :
607 added missing ImportMembersMapping overload and moved actual
608 implementation to most lengthy-arglist one. To make it possible,
609 XmlMappingAccess is included in 1.x as internal enum.
611 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
613 * XmlSchemaImporter.cs : initialize extensions from configuration.
615 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
617 * SchemaImporterExtension.cs,
618 SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
620 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
622 * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
623 * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
624 became a class, it needs explicit "override".
625 Since InternalSyncObject is gone, it needs another lock target.
626 * IXmlSerializerImplementation.cs : removed.
627 * XmlSerializerImplementation.cs : added.
628 * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
629 IXmlSerializerImplementation -> XmlSerializerImplementation.
630 * XmlSchemas.cs : removed Schemas. hacked Compile().
631 Now it implements IEnumerable<XmlSchema>.
632 * XmlSchemaEnumerator.cs : added missing type.
634 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
636 * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
637 is not considered in XmlSerializationReader yet.
638 * XmlElementEventArgs.cs : added ExpectedElements. Note that it
639 is not considered in XmlSerializationReader yet.
640 * XmlSerializationReader.cs : added some overloads for
641 UnknownElement()/-Attribute()/-Node().
643 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
645 * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
647 * XmlSerializationCollectionFixupCallback.cs,
648 XmlNodeEventHandler.cs,
649 XmlSerializationReadCallback.cs,
650 UnreferencedObjectEventHandler.cs,
651 XmlSerializationWriteCallback.cs,
652 XmlAttributeEventHandler.cs,
653 XmlElementEventHandler.cs,
654 XmlSerializationFixupCallback.cs :
655 exclude [Serializable] in NET_2_0.
656 * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
657 * XmlSerializerVersionAttribute.cs : removed [Obsolete].
658 * XmlMappingAccess.cs : it is [Flags].
659 * SchemaImporter.cs : implement Extensions.
660 * XmlAnyElementAttribute.cs,
661 XmlArrayAttribute.cs : added Order.
662 Note that it is not considered in XmlSerializer yet.
664 2006-10-25 Ankit Jain <jankit@novell.com>
666 * SerializationCodeGenerator.cs (GenerateContract): Handle
667 'generateAsInternal' config option.
669 2006-10-10 Gert Driesen <drieseng@users.sourceforge.net>
671 * XmlSerializer.cs: Output namespace declarations in same order as
674 2006-10-08 Gert Driesen <drieseng@users.sourceforge.net>
676 * XmlSerializer.cs: Corrected exception message when deserialization
678 * SerializationCodeGenerator.cs: Added support for flag enums.
679 * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
680 all exceptions that occur while reflecting member. Validate default
682 * SoapReflectionImporter.cs: Revert small part of previous patch as
683 XmlSerializer expects enum value.
685 2006-10-01 Gert Driesen <drieseng@users.sourceforge.net>
687 * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
688 thrown during creation of map member bubble up. Only allow
689 SoapAttribute on primitive types and enums. Obtain default value for
692 2006-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
694 * XmlTypeAttribute.cs: added property AnonymousType for 2.0
696 2006-09-12 Lluis Sanchez Gual <lluis@novell.com>
698 * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
700 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
702 * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
705 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
707 * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
708 to strings. Make sure maps returned by ImportClassSimpleType are always
709 simple type maps. All this fixes bug #77585.
711 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
713 * XmlSchemaImporter.cs: Always import simple type unions
714 as string (like MS.NET does). Fixes bug #79234.
716 2006-08-25 Kornél Pál <kornelpal@gmail.com>
718 * MapCodeGenerator.cs: Use assembly file version constants.
720 2006-07-24 Atsushi Enomoto <atsushi@ximian.com>
722 * XmlMappingAccess.cs : new type in 2.0 RTM.
723 * XmlCodeExporter.cs, SoapCodeExporter.cs,
725 XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
726 SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
727 XmlMemberMapping.cs, XmlSerializationReader.cs :
728 several 2.0 API fixes from betas to RTM.
730 2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
732 * XmlTypeMapMember.cs: Added GlobalIndex property.
733 * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
735 * SerializationCodeGenerator.cs:
736 * XmlSerializationWriterInterpreter.cs:
737 * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
738 Index to get/set the values from the input array, since some Index
739 values are shared between attribute and element members. Fixes
742 2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
744 * SerializationCodeGenerator.cs,
745 XmlSerializerReaderInterpreter.cs : handle CDATA section as text
746 node. Fixed bug #78536.
748 2006-05-15 Gert Driesen <drieseng@users.sourceforge.net>
750 * XmlCodeExporter.cs: Added bool argument to GenerateClass and
751 GenerateEnum methods that specifies whether we're dealing with a type
752 for a top-level element. In GenerateClass, do not always add Namespace
753 argument for XmlRootAttribute if isTopLevel is false, and do not
754 emit XmlRootAttribute if isTopLevel is false and no arguments have been
756 * SoapCodeExporter.cs: Added bool argument to GenerateClass and
757 GenerateEnum methods.
758 * MapCodeGenerator.cs: Added bool argument to GenerateClass and
759 GenerateEnum methods.
761 2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
763 * SerializationCodeGenerator.cs: Allow generating serializer for
764 reading an XmlElement or XmlDocument as root element.
765 Properly generate jagged array creation.
767 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
769 * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
771 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
773 * SerializationCodeGenerator.cs: For flag enums, we should split on all
774 whitespace chars instead of only on blanks.
775 * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
776 constant name(s) to integral enum value.
778 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
780 * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
781 as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
783 2006-04-24 Gert Driesen <drieseng@users.sourceforge.net>
785 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
786 allow XML Schema items to be added to its parent in the same order
787 as MS.NET (schema elements before complex types, ...).
789 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
791 * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
792 GenerateProperties. Use full type name for XML serialization attributes
793 instead of shortcut (without Attribute suffix). Always add Namespace
794 argument for XmlRootAttribute on classes. Added IsNullable argument for
795 XmlRootRootAttribute on classes. For attribute members, only output
796 Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
797 ctor that takes CodeGenerationOptions.
798 * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
799 CodeGenerationOptions.
800 * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
801 profile, emit GeneratedCodeAttribute, SerializableAttribute,
802 DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
803 To match MS.NET, emit attribute members before element members.
804 * XmlReflectionImporter.cs: Enums are never nullable.
805 * XmlSchemaImporter.cs: Set IsNullable on map using value of
806 XmlSchemaElement.IsNillable. Added LocateElement overload that takes
809 2006-04-15 Gert Driesen <drieseng@users.sourceforge.net>
811 * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
812 to XmlReflectionImporter and SoapReflectionImporter to keep from
813 always ending up with the XSD type that directly maps to the CLR type.
814 * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
815 Type. This improves performance by avoiding the use of
816 TypeTranslator.GetTypeData for types imported from a schema and fixes
818 * SoapReflectionImporter.cs: Same.
820 2006-04-11 Lluis Sanchez Gual <lluis@novell.com>
822 * XmlSchemas.cs: In 1.1, don't allow adding two schemas
823 with the same namespaces. This is allowed in 2.0. Fixed
824 the Find() method to cope with this case. Based on a patch
827 2006-03-22 Gert Driesen <drieseng@users.sourceforge.net>
829 * XmlReflectionImporter.cs: Throw NotSupportException instead of
830 InvalidOperationException (IOE) if void is specified as type in
831 ImportTypeMapping. To match MS.NET, surround importing of type in
832 try/catch block, and wrap any IOE in another IOE adding information
833 on the type that was being reflected. In CreateTypeMapping, surround
834 creating of map member in try/catch block, and wrap any IOE in another
835 IOE adding information on the member that was being reflected.
836 Modified exception message for missing enumeration value to match
837 MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
838 XmlTextAttribute, and it differs from type of reflected member when
839 schema type of member is primitive or enum. Fixed bug #77591.
841 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
843 * XmlSchemaExporter.cs: Import namespace of schema generated for
844 non-xsd primitive. Do not set zero-length TargetNamespace to avoid
845 emitting empty targetNamespace attribute in generated schema.
846 * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
849 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
851 * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
852 Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
853 serialization of integral value to enum constant name, and made sure
854 the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
855 throw InvalidOperationException if no matching enum constant exists.
856 In EnumMap ctor, initialize arrays holding XML names, enum names and
858 * XmlSerializationReaderInterpreter.cs: Pass full type name to
859 EnumMapping.GetEnumName for construction of exception message.
860 * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
861 and InvalidCastException in another InvalidOperationException to match
862 MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
863 and the inner exception for a TargetInvocationException in an
864 InvalidOperationException to match MSFT.
865 * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
866 XmlCustomFormatter.FromEnum in order to also support serialization
867 integral value to enum constant name. In 2.0 profile, throw
868 InvalidOperationException if numeric value cannot be serialized into
869 an enum constant value. In GenerateSingleEnumValue, no longer attempt
870 to parse unknown constant value but instead report it as
871 InvalidOperationException. Use string.Length instead of "" comparison
872 to check whether a string is empty. Fixed compiler warnings in
873 generated code (possible empty statement).
874 * XmlSerializationWriterInterpreter.cs: Pass full type name to
876 * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
877 to allow it to be used in exception messages.
878 * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
879 enum fields. Use IsDefined instead of GetCustomAttributes for checking
880 if a certain attribute is defined. Use integral value of enum constant
881 in EnumMapMember ctor.
882 * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
883 enum fields. Use IsDefined instead of GetCustomAttributes for checking
884 if a certain attribute is defined. Use integral value of enum constant
885 in EnumMapMember ctor.
887 2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
889 * XmlReflectionImporter.cs: Ignore the element namespace if
890 the schema form is set to Unqualified. Fixes bug #75019.
892 2006-02-22 Gert Driesen <drieseng@users.sourceforge.net>
894 * SerializationCodeGenerator.cs: Omit return statement in ReadObject
895 method if GenerateReadListElement returns null. Fixes bug #77588.
897 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
899 * XmlSerializer.cs: Fix the previous fix.
901 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
903 * XmlSerializer.cs: Added option to avoid falling back to the
904 interpreted serializer if the code generator fails. To be used
907 2006-02-16 Gert Driesen <drieseng@users.sourceforge.net>
909 * TypeData.cs: Fixed the following issues when dealing with Array
911 - if a type implements IDictionary, throw a NotSupportedException
912 - if a type implements ICollection, then an Add method must exist
913 which takes a single argument of a type to which the listitem type
914 is assignable (meaning a base type or an interface that it
915 implements). If such a method does not exist, then throw an
916 InvalidOperationException.
917 - if a type implements IEnumerable, then the listitem type is
918 determined by the type of the Current property of the (IEnumerator)
919 type returned by the GetEnumerator() method or the private
920 implementation of IEnumerable.GetEnumerator(). If there's no
921 public Current property on the IEnumerator, then System.Object
922 is assumed as listitem type. Similar as for types implementing
923 ICollection, an Add method must exist which takes a single argument
924 of a type to which the listitem type is assignable (meaning a base
925 type or an interface that it implements). If such a method does not
926 exist, then throw an InvalidOperationException.
928 2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
930 * XmlSchemaImporter.cs: Support importing complex types with
931 simple content based on enums. Fixes bug #76848.
933 2006-02-11 Gert Driesen <drieseng@users.sourceforge.net>
935 * SoapAttributeAttribute.cs: Set eol-style to CRLF.
936 * SoapElementAttribute.cs: Same.
937 * SoapEnumAttribute.cs: Same.
938 * SoapIncludeAttribute.cs: Same.
939 * SoapSchemaMember.cs: Same.
940 * SoapTypeAttribute.cs: Same.
941 * XmlArrayAttribute.cs: Same.
942 * XmlAttributeAttribute.cs: Same.
943 * XmlChoiceIdentifierAttribute.cs: Same.
944 * XmlElementAttribute.cs: Same.
945 * XmlEnumAttribute.cs: Same.
946 * XmlRootAttribute.cs: Same.
947 * XmlSchemaImporter.cs: Same.
948 * XmlTextAttribute.cs: Same.
949 * XmlTypeAttribute.cs: Same.
950 * XmlTypeMapping.cs: Same.
951 * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
952 * CodeIdentifiers.cs: Same.
953 * SoapCodeExporter.cs: Same.
954 * SoapAttributes.cs: Same.
955 * SoapIgnoreAttribute.cs: Same.
956 * SoapSchemaImporter.cs: Same.
957 * TypeMember.cs: Same.
958 * UnreferencedObjectEventArgs.cs: Same.
959 * XmlAnyAttributeAttribute.cs: Same.
960 * XmlAnyElementAttributes.cs: Same.
961 * XmlArrayItemAttributes.cs: Same.
962 * XmlAttributeEventArgs.cs: Same.
963 * XmlCodeExporter.cs: Same.
964 * XmlElementAttributes.cs: Same.
965 * XmlElementEventArgs.cs: Same.
966 * XmlIgnoreAttribute.cs: Same.
967 * XmlNamespaceDeclarationsAttribute.cs: Same.
968 * XmlNodeEventArgs.cs: Same.
969 * XmlReflectionMember.cs: Same.
970 * XmlSchemas.cs: Same.
971 * XmlSerializerNamespaces.cs: Same.
972 * XmlTypeMapMemberElement.cs: Set eol-style to native.
974 2006-02-10 Gert Driesen <drieseng@users.sourceforge.net>
976 * CodeExporter.cs: Set eol-style to native.
977 * CodeGenerationOptions.cs: Same.
978 * CodeIdentifier.cs: Same.
979 * ImportContext.cs: Same.
980 * IXmlSerializable.cs: Same.
981 * IXmlSerializerImplementation.cs: Same.
982 * IXmlTextParser.cs: Same.
983 * MapCodeGenerator.cs: Same.
984 * ReflectionHelper.cs: Same. Fixed line endings.
985 * SchemaImporter.cs: Same.
986 * SchemaImporterExtensionCollection.cs: Same.
987 * SchemaImporterExtension.cs: Same.
988 * SchemaTypes.cs: Same.
989 * SerializationCodeGeneratorConfiguration.cs: Same.
990 * SerializationCodeGenerator.cs: Same.
991 * SerializationSource.cs: Same.
992 * SoapReflectionImporter.cs: Same.
993 * SoapSchemaExporter.cs: Same.
995 * TypeTranslator.cs: Same.
996 * UnreferencedObjectEventHandler.cs: Same.
997 * XmlAnyElementAttribute.cs: Same.
998 * XmlArrayItemAttribute.cs: Same.
999 * XmlAttributeEventHandler.cs: Same.
1000 * XmlAttributeOverrides.cs: Same.
1001 * XmlAttributes.cs: Same.
1002 * XmlDeserializationEvents.cs: Same.
1003 * XmlElementEventHandler.cs: Same.
1004 * XmlIncludeAttribute.cs: Same.
1005 * XmlMapping.cs: Same.
1006 * XmlMemberMapping.cs: Same.
1007 * XmlMembersMapping.cs: Same.
1008 * XmlNodeEventHandler.cs: Same.
1009 * XmlReflectionImporter.cs: Same.
1010 * XmlSchemaExporter.cs: Same.
1011 * XmlSchemaProviderAttribute.cs: Same.
1012 * XmlSerializationCollectionFixupCallback.cs: Same.
1013 * XmlSerialiationFixupCallback.cs: Same.
1014 * XmlSerializationGeneratedCode.cs: Same.
1015 * XmlSerializationReadCallback.cs: Same.
1016 * XmlSerializationReader.cs: Same.
1017 * XmlSerializationReaderInterpreter.cs: Same.
1018 * XmlSerializationWriteCallback.cs: Same.
1019 * XmlSerializationWriterInterpreter.cs: Same.
1020 * XmlSerializerAssemblyAttribute.cs: Same.
1021 * XmlSerializer.cs: Same.
1022 * XmlSerializerFactory.cs: Same.
1023 * XmlSerializerVersionAttribute.cs: Same.
1024 * XmlTypeMapElementInfo.cs: Same.
1025 * XmlTypeMapMemberAttribute.cs: Same.
1026 * XmlTypeMapMember.cs: Same.
1027 * XmlTypeMapMemberNamespaces.cs: Same.
1029 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1031 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
1032 if map represents enum. Fixes bug #77501.
1034 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1036 * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
1037 CreateInvalidEnumValueException. Set eol-style to native.
1038 * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
1039 enum for which string value must be created. Set eol-style to native.
1040 Modified FromEnum to behave more like MSFT's implementation:
1041 - treat value as bit field.
1042 - no longer return empty string if the value matches an id for which there's no corresponding
1044 - if one of the ids has value 0 and there's a match for the enum value
1045 (with a zero length XML name) or the enum value is 0, then return the
1046 corresponding XML for the id with value 0.
1047 - in 2.0 profile, throw InvalidOperationException if no match is found
1048 for (part of) the enum value.
1049 Modifies ToEnum to match the MSFT implementation (as described in
1051 - Expect hashtable containing enum names as key, and corresponding
1052 integral numbers as value.
1053 - Do not report exception for whitespace-only value.
1054 - Support space (MS docs are not clear about this) delimited list
1056 - typeName is only used to construct exception message.
1058 2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
1060 * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
1061 looking for the correct element definition for a member,
1062 based on the value type, take into account subypes of the
1063 declared types. Fixes bug #77447.
1065 2006-02-07 Konstantin Triger <kostat@mainsoft.com>
1067 * XmlReflectionImporter.cs: remove local name encoding for enums.
1069 2006-01-08 Gert Driesen <drieseng@users.sourceforge.net>
1071 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
1073 2006-01-07 Gert Driesen <drieseng@users.sourceforge.net>
1075 * XmlTypeMapping.cs: Fixed line endings.
1076 * TypeTranslator.cs: Fixed line endings.
1078 2005-12-07 Lluis Sanchez Gual <lluis@novell.com>
1080 * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
1081 collection, don't create a new collection if the property already has a
1082 collection instance.
1083 * SerializationCodeGenerator.cs: same as above. Also return an empty
1084 string for flag enum default values.
1086 2005-12-06 Konstantin Triger <kostat@mainsoft.com>
1088 * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
1090 2005-12-05 Lluis Sanchez Gual <lluis@novell.com>
1092 * XmlSerializationReaderInterpreter.cs:
1093 * SerializationCodeGenerator.cs: When deserializing a collection,
1094 don't create a new collection if the property already has a
1095 collection instance. This does not apply to arrays. Changed how nullabe
1096 array properties are set. Setting IsNullable=false to the property means
1097 that it won't be set if the read array is null (so, if the property
1098 already has a value, it will be kept).
1099 Another change is that can't never be null (only arrays can).
1101 2005-12-01 Lluis Sanchez Gual <lluis@novell.com>
1103 * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
1104 a cli array type, consider it refering to the type of array elements.
1105 This fixes bug #76860. Also added some locking.
1107 2005-11-27 Konstantin Triger <kostat@mainsoft.com>
1109 * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
1110 export non-xsd primitive types.
1112 2005-11-24 Vladimir Krasnov <vladimirk@mainsoft.com>
1114 * XmlTypeMapping.cs: fixed GetXmlName method, added difference
1115 of value serialization of flags and non-flags enums
1117 2005-11-23 Konstantin Triger <kostat@mainsoft.com>
1119 * XmlSchemaExporter.cs: do not import empty namespaces.
1121 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1123 * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
1124 method, ReadEndElement should check XmlNodeType.
1125 * XmlTypeMapping.cs: fixed GetXmlName method, it should not
1126 write zero as default enum value.
1128 2005-11-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1130 * XmlReflectionImporter.cs: fixed field order returned by
1131 reflection in method GetReflectionMembers. TARGET_JVM only.
1133 2005-11-07 Lluis Sanchez Gual <lluis@novell.com>
1135 * XmlSchemaImporter.cs: Added support for restrictions with
1136 embedded simple type definitions.
1138 2005-11-04 Atsushi Enomoto <atsushi@ximian.com>
1140 * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
1141 sys.xml.schema corcompare diffs.
1143 2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
1145 * SerializationCodeGenerator.cs:
1146 * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
1147 need to be all XmlElments. Fix by Atsushi for bug #76288.
1149 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1151 * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
1152 In ListMap.FindElement, take into account the ChoiceMember
1154 * SerializationCodeGenerator.cs:
1155 * XmlSerializationReaderInterpreter.cs: For lists with a choice
1156 member, fill the member with the corresponding enum values.
1157 * XmlReflectionImporter.cs: Properly reflect the choice member
1158 when applied to a list.
1159 * XmlSerializationWriterInterpreter.cs: Track class changes.
1160 * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
1161 All this fixes bug #76203.
1163 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1165 * SoapReflectionImporter.cs: Check the correct defaults
1168 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1170 * SerializationSource.cs: Fix nullref.
1171 * XmlReflectionImporter.cs: When registering a type using
1172 IncludeType(), make sure it is added as a subtype and the
1173 map for typeof(object) if it has already been imported.
1176 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1178 * XmlSerializationWriter.cs: Also internally serialize
1179 arrays of object (see previous change).
1181 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1183 * XmlSerializationWriter.cs: Properly serialize arrays
1184 of primitive types when not explicitely specified in
1185 a container class. Based on a patch by Konstantin Triger.
1188 2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
1190 * TypeData.cs: Reset the hasPublicConstructor flag when the
1191 type is an interface.
1192 * XmlSerializationWriterInterpreter.cs: Get the Count property
1193 from the object type instead of the property type (it didn't
1195 * ReflectionHelper.cs: In CheckSerializableType, don't trow
1196 if the type is a collection interface. All this fixes
1199 2005-08-06 Lluis Sanchez Gual <lluis@novell.com>
1201 * XmlTypeMapping.cs: Added null check.
1203 2005-08-05 Lluis Sanchez Gual <lluis@novell.com>
1205 * XmlTypeMapping.cs: Added ListMembers property that returns
1206 members which are collections.
1207 * SerializationCodeGenerator.cs:
1208 * XmlSerializationReaderInterpreter.cs: Initialize collection
1209 members to an empty collection by default. Fixes bug #75662.
1211 2005-08-01 Gert Driesen <drieseng@users.sourceforge.net>
1213 * XmlMapping.cs: API compatibility fixes. Ctor is not protected
1214 in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
1216 2005-07-31 Gert Driesen <drieseng@users.sourceforge.net>
1218 * SoapAttributeAttribute.cs: Return zero-length string if
1219 AttributeName or DataType are null.
1220 * SoapEnumAttribute.cs: Return zero-length string if Name is null.
1221 * SoapIncludeAttribute.cs: Avoid using property in ctor.
1222 * SoapSchemaMember.cs: Return zero-length string if MemberName is
1223 null. MemberType should be XmlQualifiedName.Empty by default.
1224 * SoapTypeAttribute.cs: Return zero-length string if TypeName is
1225 null. Avoid using property in ctor.
1226 * XmlArrayAttribute.cs: Return zero-length string if ElementName is
1227 null. Avoid using property in ctor.
1228 * XmlArrayItemAttribute.cs: IsNullable must be false by default.
1229 Return zero-length string if DataType or ElementName are null. Avoid
1230 using property in ctor.
1231 * SoapElementAttribute.cs: Return zero-length string when DataType
1232 or ElementName are null. Avoid using property in ctor.
1233 * XmlAnyElementAttribute.cs: Return zero-length string when Name is
1234 null. Avoid using property in ctor.
1235 * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
1236 zero-length string if AttributeName or DataType are null.
1237 * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
1239 * XmlElementAttribute.cs: Return zero-length string when DataType or
1240 ElementName are null. Avoid using property in ctor.
1241 * XmlEnumAttribute.cs: Avoid using property in ctor.
1242 * XmlIncludeAttribute.cs: Avoid using property in ctor.
1243 * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
1244 can no longer be null. Use check for zero-length string to determine
1245 whether they are set. Corrected exception message when DataType is
1246 set for complex type.
1247 * XmlRootAttribute.cs: Return zero-length string if DataType or
1248 ElementName are null. Avoid using property in ctor.
1249 * XmlTextAttribute.cs: Return zero-length string if DataType is null.
1250 * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
1252 2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
1254 * SerializationCodeGenerator.cs: In the generated serializer always
1255 use the Object equality operator when comparing objects to serialize
1256 to null, since those objects may have the equality operator
1257 overloaded. This fixes bug #75543.
1259 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1261 * XmlCustomFormatter.cs: Properly read/write duration values.
1263 2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
1265 * XmlSerializer.cs: Fix race between XmlSerializer and the
1266 serializer generator.
1268 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
1270 * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
1271 getting the real xml type name of a member.
1272 * XmlSerializationWriterInterpreter.cs: Use that new property
1273 to get the type name of primitive types. This should fix bug #75180.
1275 2005-06-07 Lluis Sanchez Gual <lluis@novell.com>
1277 * SerializationCodeGenerator.cs: When reading members by order,
1278 call a MoveToContext after each member read. In the fixup method
1279 don't cast returned values if it is reading an object array.
1281 * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
1282 being imported is a primitive type, create a wrapper class that
1283 inherits from the provided one. This fixes bug #68809.
1285 * XmlSerializationReader.cs: Properly report unreferenced objects.
1286 Created an overload of ReadTypedPrimitive that reports elements of
1287 unknown type. Implemented Referenced().
1289 2005-05-30 Lluis Sanchez Gual <lluis@novell.com>
1291 * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
1292 set to the default namespace. This fixes bug #73035.
1294 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
1296 * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
1297 types indirectly imported by this method use the same namespace.
1299 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1301 * TypeTableEntry.cs : removed obsolete code.
1303 2005-04-26 Lluis Sanchez Gual <lluis@novell.com>
1305 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
1306 properties which are read only. Fixes bug #74723.
1308 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
1310 * XmlReflectionImporter.cs:
1311 * SoapReflectionImporter.cs:
1312 * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
1313 where needed. Based on a patch by Konstantin Triger.
1315 2005-04-12 Lluis Sanchez Gual <lluis@novell.com>
1317 * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
1318 * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
1319 export the schema that it defines. In ImportNamespace, removed
1320 check for default namespace, since it may be included from a non
1322 * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
1323 types. All this based on a patch by Konstantin Triger.
1325 * SerializationCodeGenerator.cs:
1327 * XmlSerializationReaderInterpreter.cs:
1328 * SoapCodeExporter.cs:
1329 * XmlTypeMapMemberAttribute.cs:
1330 * XmlSerializationReader.cs:
1331 * XmlCodeExporter.cs: Fixed some warnings.
1333 2005-04-10 Andrew Skiba <andrews@mainsoft.com>
1335 * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
1337 2005-04-03 Andrew Skiba <andrews@mainsoft.com>
1339 * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
1342 2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
1344 * SerializationCodeGenerator.cs:
1345 * XmlSerializationReaderInterpreter.cs: If the element being read is
1346 bound to a choice member, set the corresponding value.
1347 * XmlTypeMapMember.cs: Added helper SetValue method.
1348 * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
1349 since now stores the enum value.
1350 * XmlReflectionImporter.cs: Properly import choice values.
1351 * XmlTypeMapMemberElement.cs: Added setter for the choice.
1353 2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
1355 * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
1356 This fixes bug #73901 and should fix #70384.
1357 * XmlSerializationReader.cs: When reading an object element, return
1358 an Object instance if the element has no children. This fixes bug #73974.
1359 * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
1360 type (it is written as an element with those nodes as children).
1362 2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
1364 * XmlSchemaImporter.cs: Support importing schemas that define
1365 extra types in the standard xml schema namespace. When using encoded
1366 format, support the primitive types defined by the SOAP encoding
1369 2005-03-04 Lluis Sanchez Gual <lluis@novell.com>
1371 * ReflectionHelper.cs: Avoid endless loop.
1372 * XmlSchemas.cs: Added null check. Patches from MainSoft.
1374 2005-02-07 Lluis Sanchez Gual <lluis@novell.com>
1376 * XmlSerializationReader.cs: After reading an href element, skip the
1377 whole element (it may not be an empty element). This fixes bug #72265.
1379 2005-01-25 Lluis Sanchez Gual <lluis@novell.com>
1381 * XmlSchemaImporter.cs: When importing a default value of type enum,
1382 translate it from the schema value to the clr value.
1384 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1386 * XmlSerializer.cs: only print the results if there's an error
1389 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1391 * SerializationCodeGenerator.cs: don't use _config if it has not been
1394 2005-01-18 Lluis Sanchez Gual <lluis@novell.com>
1396 * XmlReflectionImporter.cs: Don't check the property type if it has
1397 an [XmlIgnore] attribute. This fixes bug #71332.
1399 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
1401 * SerializationCodeGenerator.cs,
1402 XmlSerializationWriterInterpreter.cs : exchanged attribute
1403 serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
1404 xmlns attributes in XmlAnyAttribute are not written.
1406 2005-01-12 Atsushi Enomoto <atsushi@ximian.com>
1408 * SerializationCodeGeneratorConfiguration.cs,
1409 SerializationCodeGenerator.cs : Added some generation configuration:
1410 <generateAsInternal>
1411 write custom reader/writer as internal classes.
1412 <noreader>, <nowriter>
1413 They make generation of reader and/or writer optional.
1414 * XmlSerializerNamespaces.cs :
1415 Now it uses ListDictionary instead of Hashtable.
1416 * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
1417 written unless there is already the same prefix-ns mapping.
1419 2005-01-12 Lluis Sanchez Gual <lluis@novell.com>
1421 * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
1422 * XmlSchemaImporter.cs: When importing a base type of a complex type,
1423 make sure that the base class is always imported as a class and not
1424 as an array. If it has been imported as array, import it again.
1425 This fixes bug #70839. Other minor fixes as well.
1426 * XmlSerializationWriter.cs: Fixed warning.
1428 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1430 * SerializationCodeGenerator.cs: Yet another generation fix.
1432 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1434 * SerializationCodeGenerator.cs: Fixed generation of enum literals.
1436 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1438 * XmlReflectionMember.cs: Added DeclaringType member.
1439 * XmlReflectionImporter.cs: When importing fields that belong to a
1440 base class, use the xml namespace of the base map for the member.
1441 This fixes bug #70309.
1443 2004-11-30 Lluis Sanchez Gual <lluis@novell.com>
1445 * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
1446 compilation warnings.
1448 2004-11-24 Lluis Sanchez Gual <lluis@novell.com>
1450 * SerializationSource.cs: Made SerializationSource abstract, and
1451 renamed Equals to BaseEquals to avoid missing GetHashCode warning
1452 (it does not really make sense in this case).
1453 * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
1454 XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1455 XmlSerializationReader.cs: Fixed warnings.
1457 2004-10-19 Atsushi Enomoto <atsushi@ximian.com>
1459 * XmlSerializationWriter.cs : When namespace is an empty string,
1460 XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
1463 2004-10-01 Lluis Sanchez Gual <lluis@novell.com>
1465 * MapCodeGenerator.cs: When the Object type is exported, export all
1466 derived maps. This was done in IncludeMetadata, but this method is
1467 not called by the xsd tool.
1468 * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
1469 attribute for primitive types and arrays.
1470 * XmlSchemaImporter.cs: Only export all object-derived maps if the
1471 Object type is explicitly referenced by an element.
1472 * XmlSerializationWriter.cs: Minor fix.
1474 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
1476 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
1477 This fixes bug #66877.
1479 2004-09-21 Lluis Sanchez Gual <lluis@novell.com>
1481 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1482 when reading a primitive value in encoded format using
1483 ReadReferencingElement, provide the type name and namespace
1484 since the xsi type may not be present in the xml element. This
1487 2004-09-15 Lluis Sanchez Gual <lluis@novell.com>
1489 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
1490 ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
1491 * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
1492 ImportIncludedTypes to the end, to make sure that the current map has all
1493 needed data before derived maps are constructed.
1494 * XmlSchemaExporter.cs: Generate the base class of simple types that are
1495 not primitive types. Set the correct value for IsMixed in extended types.
1496 * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
1497 the base class of a simple type doesn't need to be a xsd type.
1498 All those patches fix bug #65654.
1500 2004-09-03 Lluis Sanchez Gual <lluis@novell.com>
1502 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
1503 Normalization==true by default.
1505 2004-09-02 Lluis Sanchez Gual <lluis@novell.com>
1507 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
1508 In CheckSerializableType, add the option of ignoring types with private
1509 constructors. Some kind of lists can be deserialized
1510 even if the constructor is private. See bug #61464.
1511 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1512 Before creating a list, check that it has a public constructor.
1513 * TypeData.cs: Added HasPublicConstructor property.
1515 2004-09-01 Lluis Sanchez Gual <lluis@novell.com>
1517 * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
1518 value list serialization.
1519 * XmlSchemaImporter.cs: Added some null checks.
1521 2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
1523 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1524 When deserializing an encoded method response, assign to the return value
1525 the first element of the message, whatever it is. The return type doesn't
1526 need to be Object, it seems to be true for all return types.
1528 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
1530 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
1531 no need to add it after the call.
1532 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
1534 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
1536 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
1537 * ImportContext.cs: Implemented.
1538 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
1539 options for 2.0. Implemented support for generating properties instead of
1541 * XmlSchemaImporter.cs: Added support for sharing types.
1543 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
1545 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
1546 xsd type is not part of the last schema specification, but the google api
1547 uses it and ms.net accepts it.
1549 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
1551 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
1552 Thanks to Juan C. Olivares.
1554 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
1556 * CodeExporter.cs: Added private constructor.
1557 * CodeGenerationOptions.cs: Set the correct enum values.
1558 * CodeIdentifier.cs: Added private constructor.
1559 * SchemaImporter.cs: Added internal constructor.
1560 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
1561 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
1562 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
1563 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
1564 * XmlSerializationReader.cs: Added missing setter for DecodeName.
1566 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1568 * XmlSerializer.cs: Fix fix.
1570 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1572 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
1573 * ReflectionHelper.cs: New method for generating map keys.
1574 * SerializationCodeGenerator.cs: Added support for generating the serializer
1575 contract class, needed for 2.0.
1576 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
1578 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
1579 as Type[]. Added check that makes sure that enums being serialized are
1581 * XmlMapping.cs: Added internal GetKey method.
1582 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
1583 Added first bits to support loading of serializers from pre-generated
1585 * XmlSerializerFactory.cs: Mostly implemeted.
1587 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1589 * CodeIdentifier.cs: Removed constructor for NET_2_0.
1590 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
1591 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
1592 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
1593 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
1594 XmlSerializerNamespaces.cs: Added 2.0 stubs.
1595 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
1596 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
1597 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
1598 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
1599 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
1600 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
1601 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
1603 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1605 * SerializationCodeGenerator.cs: Generate check that the object being
1606 serialized has a known type. Little cast fix.
1607 * XmlCustomFormatter.cs: Little fix in Single conversion.
1609 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
1611 * TypeData.cs: In the constructor, set the correct xml type name if the
1612 type is an array (for example, instead of StringCollection, use
1615 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
1617 * ReflectionHelper.cs: Correctly detect private types.
1618 * XmlCodeExporter.cs: Implemented missing method.
1619 * XmlSchemaImporter.cs: Allow import of root primitive types.
1621 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
1623 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
1624 SerializationCodeGenerator.cs, SerializationSource.cs,
1625 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
1626 XmlSerializationReader.cs, XmlSerializationWriter.cs,
1627 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
1628 : Globalization fixes.
1629 In XmlCustomFormatter.GenerateToXmlString() time was not
1630 generated correctly.
1631 Replaced all CRLF XmlAttributeOverrides.cs into LF.
1633 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
1635 * XmlSerializationWriter.cs: changed signature of protected method
1636 FromByteArrayBase64 to match MS.NET
1638 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1640 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
1641 attributes that MS.NET generates.
1642 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
1644 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
1645 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
1646 MS.NET member ordering. Patch by David Taylor.
1647 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
1648 flag. The generated enum must also not be included in the schema.
1649 * XmlTypeMapMember.cs: Added ignore flag.
1650 * XmlTypeMapping.cs: The AttributeMembers property now returns the
1651 attributes in the correct order.
1653 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
1655 * XmlSerializationReader.cs: added missing protected members
1656 to fix API compatibility with MS.NET
1657 * XmlSerializationWriter.cs: added missing protected members
1658 to fix API compatibility with MS.NET
1660 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
1662 * XmlSerializationReader.cs: Support schamea instance namespaces other than
1663 the 2001 one when reading the xsi type.
1664 * MapCodeGenerator.cs: Take into account that the root namespace and element
1665 name may have changed from one export to another of the same type. In
1666 this case the class attributes need to be regenerated.
1667 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
1668 not ElementName. Idem for namespace.
1669 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
1670 * XmlRootAttribute.cs: Default value for nullable is true.
1671 * XmlSchemaImporter.cs: The root name for a class may change in some
1672 scenarios (for example, when the type is initially exported as part of
1673 another type and later exported as a root type).
1674 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
1675 found using the standard namespace, try getting the type using
1676 the 2000/10 and 1999 namespaces.
1677 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
1679 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1681 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1682 In encoded format, primitive types can be null. Read them using
1683 ReadReferencingElement, that already checks for the null tag.
1685 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
1687 * XmlSerializationReader.cs: Check for empty element when reading an array
1688 element. This fixes bug #59003. Thanks Atsushi!
1690 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1692 * XmlSerializationWriter.cs: Implemented some missing methods.
1693 In .NET 1.0, encoded null elements use the attribute null="1", while in
1694 1.1 the attribute is nil="true".
1695 * XmlTypeMapping.cs: Little fix for nested classes.
1697 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1699 * XmlReflectionImporter.cs: Don't reset the internal tables at every
1700 ImportMembersMapping call. This fixes bug #58112. The problem is that
1701 it imported two different arrays (only different in the array item
1702 namespace) with the same name. Not sure what was this Reset needed for,
1703 everyting seems to work without it.
1705 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1707 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1708 When deserializing an encoded method response, if the return type of the
1709 method is Object, assign to it the first element of the message, whatever
1711 * XmlSerializationReader.cs:
1712 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
1713 the imported member.
1714 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
1715 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
1716 a given xsi type is not found. Just read it as primitive type.
1717 * XmlTypeMapMember.cs: Added IsReturnValue property.
1718 * XmlTypeMapping.cs: Added ReturnMember property.
1719 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
1721 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1723 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1724 When reading an object using the typeof(object) map, an emty xsi:type
1725 means that it has to read the contents into an XmlNode[].
1726 * TypeData.cs: Return the correct full name for inner classes.
1727 * XmlSchemaImporter.cs: Improved detection of types that represent
1728 "anyType", and must be mapped to XmlElement, XmlNode or Object.
1729 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1730 the correct namespace.
1731 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1734 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1736 * XmlSerializationWriter.cs : It do not have to handle schema
1737 namespace as special one.
1739 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1741 * XmlSerializationReaderInterpreter.cs: Removed the check for null
1742 AttributeMembers collection. Even if there are no attribute members,
1743 attributes need to be read.
1745 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1747 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1748 the IXmlSerializable object may not read all the EndElement it read.
1749 This fixes bug #57413.
1751 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1753 * XmlSerializer.cs: Enable serializer generation by default.
1755 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
1757 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1758 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1759 turns out that it is an array, import it again as array. This fixes
1762 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1764 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1765 don't use type name for array types, since we can have different classes
1766 that represent the same array type (for example StringCollection and
1769 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
1771 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1772 not present in MS.NET.
1773 * XmlSerializationWriter.cs: Improved error message.
1775 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1777 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
1778 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1779 Support deserialization of members of type XmlDocument. This fixes #56169.
1781 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1783 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1784 Use a special method to generate default values, since default enum values
1785 will come as integers, so a special cast is needed.
1786 * XmlSerializationReaderInterpreter.cs,
1787 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1788 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
1789 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1790 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
1791 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1792 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1793 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1794 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1795 of SerializationSource. It can't keep and use the XmlAttributeOverride
1796 instances as key values, since those instances can be modified after the
1797 xml map has been generated. Now, SerializationSource generates a unique
1798 string hash from XmlAttributeOverride and uses it for comparisons.
1800 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
1802 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
1803 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1804 the adequate type. Set the default value of members that do have a default
1805 value. Other minor fixes.
1806 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1807 from typeof(object) map, even those that have another base class.
1808 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1809 It must serialize the char as number, not as character.
1810 * XmlSerializationReaderInterpreter.cs: Set the default value of members
1811 that do have a default value.
1812 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1813 of members that have a default value.
1815 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
1817 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1818 This fixes bug #55547.
1820 2004-03-13 David Sheldon <dave-mono@earth.li>
1822 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1825 2004-03-13 David Sheldon <dave-mono@earth.li>
1827 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
1828 fixes test case that tests for this directly.
1829 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1830 it. Treat it as null.
1832 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
1834 * CodeIdentifier.cs: Limit the length of identifiers.
1835 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1836 Generate types using GetDomType, so if the type is an array, it creates
1837 the correct combination of types.
1838 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1839 an enum, if the string is empty and the enum has [Flags], then return 0
1840 as value. This fixes bug #55509.
1841 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1842 are not supported. Another check: a simple type cannot be enum if it does
1843 not have any enum facet.
1844 And another fix: use string as default type for attribtues.
1845 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
1846 other schemas. An imported schema would not be in the table, but its
1847 elements (although from another namespace) would be in the schema that
1848 imported it. So, we need know to check for every schema in the table.
1849 * XmlSerializer.cs: Added environment variable to help debugging code
1852 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
1854 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1855 of XmlInclude attributes needed for the service class.
1856 IsMapExported: Removed check for object type, since it can now be exported.
1857 SetMapExported: Use the type name as key, since different importers may
1858 be used to create a map for the same type.
1859 GenerateClassInclude: Updated signature.
1860 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1861 GenerateClassInclude(): Updated signature.
1862 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1863 Implemented IncludeTypes.
1864 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1865 GenerateClassInclude(): Updated signature.
1866 * XmlMemberMapping.cs: Added missing property.
1867 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1868 Implemented IncludeTypes().
1869 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1870 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1871 Now, it does a regular import and then assign the required base class to
1872 the imported map. In this way it is possible to assign a base type for a
1873 map that was previously imported without a base type.
1874 * XmlTypeMapping.cs: Added internal method SetRoot().
1876 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
1878 * SerializationCodeGenerator.cs: Added support for generation of readers
1879 and writers for several maps in a single class. Added support for
1880 XmlMemberMapping. Fixed generation of serializers that use encoded format.
1881 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1882 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
1883 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1884 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1885 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1886 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1887 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1888 Added InternalEquals method.
1889 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1890 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1891 * XmlCustomFormatter.cs: Fixed little bug.
1892 * XmlMapping.cs: Added Source property. This a global identifier of the map.
1893 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1894 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1896 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1897 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1899 * XmlSerializer.cs: Added support for generation of serializers.
1901 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
1903 * SerializationCodeGenerator.cs,
1904 SerializationCodeGeneratorConfiguration.cs:
1905 Added <namespaceImports> feature ("using XXX;" generation) support.
1907 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
1909 * XmlSerializationWriter.cs: When writing the root element, use a prefix
1910 if the namespace of the element is defined in the list of namespaces
1911 provided to the XmlSerializer. This fixes bug #54427.
1913 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
1915 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1916 Those are basically methods to add custom attributes to element and
1918 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1919 * XmlCodeExporter.cs: Better support for custom attribute generation for
1921 * XmlCustomFormatter.cs: Added null check.
1922 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
1923 attributes that are required.
1924 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1927 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
1929 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1930 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1931 string, not string[].
1932 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1933 for array parameters. In general, improved generation of schema Form
1935 * XmlMemberMapping.cs: Added Form property.
1936 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1937 simple types. Added a check for this.
1938 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1939 Form. The key used to determine if a map has been already generated must
1940 include the XmlType, since there can be two xml types with the same CLR
1941 type and namespace (for example, they may differ in the Form property).
1942 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1943 also return the corresponding map. There can be two maps that have the
1944 same TypeData, so given a TypeData is not always possible to get the
1945 correct corresponding map (for example two arrays that only differ in the
1947 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1950 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1952 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1953 normalizedString schema type.
1955 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1957 * XmlReflectionImporter.cs: Get the class members using the right order.
1958 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1959 A member with the Any attribute can also contain text. Support this.
1960 * XmlTypeMapMemberElement.cs: Added CanBeText property.
1962 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1964 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1967 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1969 * MapCodeGenerator.cs: Added helper method for generating an attribute
1970 parameter of type enum.
1971 * XmlAttributeAttribute.cs: little fix.
1972 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1973 for method parameters.
1974 * XmlMemberMapping.cs: Improved support for members of type "any".
1975 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1976 If the namespace is explicitly specified, then the form should be
1977 qualified. Also fixed issues with the namespace assigned to attributes.
1978 This should fix bug #53384.
1979 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1980 methods that return values of type "any". Changed the methods
1981 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1982 element, return it, and the caller must add it to the collection.
1983 Other fixes in attribute generation.
1984 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1985 generate the AnyType mapping from the type described in the schema.
1986 Small fixes regarding IsMixed property of complex types (it means that
1987 the type can contain text, so the XmlTextAttribute must be generated).
1988 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1989 be only used in the bare+encoded format.
1991 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1993 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1994 to be derived types of the one that has the attribute.
1995 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1996 map to the parent map. This fixes #53246.
1997 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1999 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
2001 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
2002 do not check the root element name, since it can be any name. This fixes
2005 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
2007 * XmlReflectionImporter.cs: Throw exception if a value type member has the
2008 IsNullable=true flag. This fixes bug #52906.
2010 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
2012 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
2013 so a 'specified' member has always to be generated.
2014 * TypeData.cs: Fixed check for value type.
2016 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
2018 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
2019 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
2020 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
2021 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
2022 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
2023 Added support for value specifiers members. This fixes bug #53024.
2025 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
2027 * XmlSchemaExporter.cs: Don't create referenced element if it has already
2028 been created (two types could be referencing the same schema element).
2030 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
2032 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
2033 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
2034 arrays. This fixes bug #53018.
2036 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
2038 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
2039 default namespace for members.
2040 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
2041 * XmlReflectionImporter.cs: Fixed the assignment of root and type
2043 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
2044 default namespace for members. In AddSchemaElement, if the element is
2045 a root element never use a "ref" attribute.
2046 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
2048 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
2050 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2051 XmlTypeMapping.cs: more namespace fixes.
2053 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
2055 * XmlReflectionImporter.cs: type namespace must never be used as root
2056 namespace. This fixes bug #52772.
2058 2004-01-08 Nick Drochak <ndrochak@ieee.org>
2060 * XmlSchemaImporter.cs: Removed unused variable.
2062 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
2064 * XmlReflectionImporter.cs: Ignore Namespace property when applying
2065 the [XmlType] attribute to an enum. This fixes bug #52607.
2067 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
2069 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
2070 option that allow serialization of private types.
2072 2003-12-18 Eran Domb <erand@mainsoft.com>
2074 * TypeTranslator.cs : Change primtive types map.
2076 2003-12-18 Eran Domb <erand@mainsoft.com>
2078 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
2081 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2083 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
2084 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
2085 primitive types are not the same as XML primitive types. Patch proposed
2086 by Mordechai Taitelman. This fixes bug #52228.
2087 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
2089 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2091 * XmlReflectionImporter.cs: Little fix.
2093 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2095 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
2096 need to be derived types of the includer. This fixes bug #52152.
2097 Added null check for Name property of XmlEnumAttribute. This fixes
2099 * XmlSerializationReader.cs: Fixed some error messages.
2100 * XmlSerializationReaderInterpreter.cs: Check that the root element has
2101 the correct local name and namespace. This fixes bug #52038.
2102 Throw exception if enum value can't be parsed.
2103 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
2106 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
2108 * MapCodeGenerator.cs: Added support for [Flags] enum.
2109 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
2110 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
2111 encoded array type. Added support for enums with [Flags].
2112 In encoded format, unqualified types are schema types by default.
2114 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
2116 * XmlCodeExporter.cs: Little fix.
2117 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
2118 same name have the same type.
2119 * XmlSchemaImporter.cs: Support xml:lang.
2120 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
2121 fixed wrong namespace for the arrayType attribute.
2123 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
2125 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
2126 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2127 When using rpc format on a web service, members don't need to have any
2128 specific namespace. Added a flag for turning namespace check on/off.
2130 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
2132 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
2133 delayedListFixups.Count cannot be used because elementes from
2134 delayedListFixups are deleted sometimes.
2136 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
2138 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
2139 This fixes bug #51060.
2141 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
2143 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
2144 If type is Enum the code use type.GetElememtType() instead of
2145 Enum.GetUnderlyingType().
2147 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
2149 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
2150 Removed several TODOs already done.
2152 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
2154 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
2157 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
2159 * ReflectionHelper.cs: In CheckSerializableType() check that the type
2161 * XmlSerializationWriter.cs: Added check for circular references.
2162 This fixes bug #49879.
2164 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
2166 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
2167 can't be serialized. This fixes bug #49878.
2168 * TypeData.cs: In ListItemType check that the collection has a valid
2169 Add method and report an error if not.
2170 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
2171 reflecting a collection.
2173 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
2175 * SoapReflectionImporter.cs: Support element references for enum values in
2176 encoding format. This fixes bug #49568.
2177 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
2178 the name and namespace of the wrapper element. MS.NET doesn't do it.
2179 This fixes bug #49729.
2181 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
2183 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
2185 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
2187 * MapCodeGenerator.cs: New file. Moved here all code that is common
2188 between XmlCodeExporter and SoapCodeExporter.
2189 * SoapCodeExporter.cs: Implemented.
2190 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
2191 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
2192 encoded bare parameter list.
2193 * XmlTypeMapping.cs: Added method for getting member element by index.
2195 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2197 * XmlSchemas.cs : Implemented IsDataSet().
2199 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
2201 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
2202 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
2203 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
2204 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
2205 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
2206 and whether it uses encoded or literal format.
2207 * XmlSchemaExporter.cs: Little fixes.
2209 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
2211 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
2212 need to be of type SOAP-ENC:Array, it can be a restriction of it.
2214 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
2216 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
2217 Read only properties are only serialized if the type is an array.
2219 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
2221 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
2222 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
2223 is not needed for value types.
2225 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
2227 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
2228 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
2230 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
2232 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
2234 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
2236 * XmlSchemaExporter.cs: Keep track of elements being exported.
2237 * XmlSchemas.cs: Removed unneeded catch.
2239 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
2241 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
2242 Fixed handling of members with XmlTextAttribute that are arrays.
2243 * TypeData.cs: IsComplexType now returns true for XmlNode.
2244 * XmlSerializer.cs: Added check for null mapping in FromMappings.
2245 * XmlTypeMapping.cs: Added helper method FindTextElement.
2247 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
2249 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
2250 Added support for IncludeInSchema flag.
2251 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2252 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
2253 methods. Added support for IncludeInSchema flag.
2254 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2255 Added support for IncludeInSchema flag.
2256 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
2257 * XmlTypeMapping.cs: Added IncludeInSchema property.
2259 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
2261 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
2263 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
2265 * XmlCustomFormatter.cs: added support for additional string types in
2266 GenerateToXmlString().
2267 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
2270 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
2272 * SoapSchemaImporter.cs: implemented.
2273 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
2274 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
2275 * XmlSchemaImporter.cs: more support for encoded format.
2277 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
2279 * SerializationCodeGenerator.cs: Minor fixes.
2280 * SoapReflectionImporter.cs: More fixes.
2281 * SoapSchemaExporter.cs: implemented.
2282 * SoapSchemaImporter.cs: Initial implementation.
2283 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
2285 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
2286 * XmlMemberMapping.cs: Minor fixes.
2287 * XmlMembersMapping.cs: added some convenient constructors.
2288 * XmlSchemaExporter.cs: Added support for encoded format.
2289 * XmlSchemaImporter.cs: Added support for encoded format.
2290 * XmlSerializationReader.cs: changed some string literals by constants.
2291 Implemented ParseWsdlArrayType.
2292 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
2294 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
2295 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
2296 WriteAttribute to write custom attributes.
2297 * XmlSerializer.cs: added some namespace constants.
2298 * XmlTypeMapping.cs: added GetSchemaArrayName method.
2300 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
2302 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
2303 * XmlTypeMapMemberElement.cs: Little fix.
2304 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
2305 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
2307 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
2310 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
2312 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2313 * XmlMemberMapping.cs: Changed constructor.
2314 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2315 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
2316 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
2317 * XmlSerializationWriterInterpreter.cs: Changed visibility.
2319 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2321 * XmlSerializer.cs: Fix in Deserialize() method.
2323 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2325 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
2326 * XmlSchemas.cs: Find method: make sure the returned object belongs to
2328 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
2329 Add null checks for eventSource.
2330 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
2331 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
2332 namespece declarations. Virtual method WriteObject not needed any more.
2333 In WriteStartElement, write the provided namespaces.
2334 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
2335 Added GetTypeMap method, that returns the map for a given type. Added some
2336 virtual methods, so writer behavior can be extended at several places by
2338 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
2339 methods CreateReader and CreateWriter are not called unless no type or
2340 type mapping was provided in the constructor.
2342 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2344 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
2345 schema type it is importing is a class or an array. It will always
2348 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2350 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
2351 as text nodes. Support it.
2353 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2355 * CodeIdentifier.cs: Fixed MakeValid method.
2356 * TypeTranslator.cs: Added support for more primitive types. Added
2357 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
2359 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
2360 are different from the type ns and name.
2361 Generate class and field comments.
2362 Fixed default attribute generation. In elements with ref attribute, it has to be
2363 generated in the referred attribute.
2364 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
2365 Added suport for text nodes in members of type "any".
2366 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
2368 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
2369 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
2370 that have already been declared.
2371 WriteStartElement(): elements from schema namespace are always written with ns prefix.
2372 * XmlTypeMapMember.cs: Added documentation property.
2373 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
2374 represents a simple type.
2376 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2378 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
2380 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
2381 * TypeData.cs: Added property that returns a TypeData that represents an array of
2383 * TypeTranslator.cs: Added GetArrayName() method.
2384 Added TypeDatas for missing primitive types.
2385 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
2386 XmlRootAttribute. Added the namespace to all attributes being generated.
2387 Other fixes in the generation of code.
2388 * XmlReflectionImporter: store the namespace of the type in the maps.
2389 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
2390 class can generate text. Do not export inherited attributes of a class.
2391 Use the new root namespace stored in the map when generating the root element.
2392 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
2393 namespace is the default namespace.
2394 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
2395 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
2396 namespace instead of the map namespace (which can be different if the type
2397 has a XmlRoot element).
2398 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
2399 to System.DBNull.Value.
2400 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
2401 the collection if it has not yet been created.
2402 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
2403 of the type. It may be different from the namespace of the map if the type
2404 has a XmlRoot element. Also added IsSimpleType property.
2405 In ClassMap, added AllMembers property.
2407 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
2409 * TypeData.cs: Added new constructor and variables to allow the creation of
2410 a TypeData without a Type. Added ListItemTypeData property.
2411 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
2412 array of arrays. Added also a property to get the nested array map.
2413 * XmlCodeExporter.cs: First implementation of code exporter.
2415 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2417 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
2418 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
2421 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
2423 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
2424 maps with the same name and namespace. To avoid this, maps must be registered
2425 using the real map namespace, not the default namespace (the namespace can
2426 change if the type has a XmlType or SoapType attribute).
2427 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
2428 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
2430 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
2433 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2435 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
2436 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
2437 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
2438 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
2439 * XmlSchemaExporter.cs: Implemented.
2440 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
2441 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
2442 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
2443 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
2444 GetStringValue() returns null if the value is null, instead of empty string.
2445 (attributes with null values are not written).
2446 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
2447 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
2448 DataType value can is now in TypeData.
2449 * XmlTypeMapMemberElement.cs: Small fix.
2450 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
2452 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2454 * AssemblyInfo.cs: Removed
2456 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
2458 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
2459 namespace declarations if they have already been defined.
2461 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
2463 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
2464 for adding elements to a list.
2466 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
2468 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
2469 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
2472 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2474 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
2475 Added support for serialization of enums with the Flags attribute.
2477 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2479 * SoapReflectionImporter.cs: Fix support for DataType in class members.
2480 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
2481 can have other names.
2482 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
2483 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
2484 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2485 Fix support for DataType in class members.
2486 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
2487 Added support for array of primitive types in attributes.
2489 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
2491 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
2492 be overlodaded, so it is not good for this.
2493 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
2495 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
2497 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
2498 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
2499 array if the namespace is not specified in XmlArrayItemAttribute.
2501 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
2503 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
2504 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
2505 is not specified in the xsi attribute.
2506 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
2507 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
2509 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2511 * XmlSerializationReader.cs : Synchronous fix with
2512 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
2513 * added XmlTypeMapMemberNamespace.cs.
2514 * XmlReflectionImporter,
2515 XmlSerializationReaderInterpreter.cs,
2516 XmlSerializationWriterInterpreter.cs,
2517 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
2519 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2521 * XmlSerializationWriter.cs : some QName handling fix.
2523 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2525 * XmlSerializationReader.cs: Fixed error message.
2526 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
2528 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
2530 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2532 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
2533 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
2534 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
2535 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
2537 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2539 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
2540 * SoapReflectionImporter.cs: tiny fix.
2541 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
2542 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
2543 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
2544 * XmlSerializationWriter.cs: implemented WriteSerializable ().
2546 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
2548 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
2549 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
2550 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
2551 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
2552 * XmlSerializationWriter.cs: small fix.
2554 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2556 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
2557 Added support for DefaultValueAttribute.
2558 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
2559 the value of an enum.
2560 * XmlTypeMapMember.cs: Added DefaultValue attribute.
2561 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
2564 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2566 * XmlSerializationReader.cs: Minor fix.
2568 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2570 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
2572 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
2574 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2575 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
2576 * XmlCustomFormatter.cs: small fixes.
2577 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2578 * XmlSerializationWriter.cs: Implemented TopLevelElement().
2579 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
2580 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
2581 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
2584 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
2586 * SoapReflectionImporter.cs: implemented.
2587 * TypeTranslator.cs: added IsPrimitive() method
2588 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
2589 used by that one. Also added Format property, that can be literal or encoded.
2590 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
2591 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
2592 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
2593 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
2594 * XmlSerializationWriter.cs: added support for encoded format.
2595 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
2596 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
2597 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
2598 and a map is needed for them).
2599 * XmlTypeMapMemberElement.cs: small fixes.
2600 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
2601 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
2603 2003-06-01 Miguel de Icaza <miguel@ximian.com>
2605 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
2606 UnknownElement): Add line number information.
2608 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
2610 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
2611 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2612 * XmlMapping.cs: Added internal property.
2613 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
2614 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
2615 * XmlReflectionMember.cs: XmlAttributes are now created by default
2616 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
2617 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
2618 Implemented support for XmlMembersMapping.
2619 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
2621 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
2623 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
2624 from xml type to clr type.
2625 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2626 * XmlReflectionMember.cs: Added default constructor.
2627 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
2628 * XmlSerializationWriter.cs: Several fixes.
2629 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2630 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
2631 Added support for enums. Added support for XmlElement and XmlNode.
2632 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
2634 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
2636 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
2637 * XmlCustomFormatter.cs: Added formatting methods.
2638 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
2639 * XmlReflectionMember.cs: Added new constructor.
2640 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
2641 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
2642 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
2643 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
2645 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2647 * Added TypeTableEntry.cs.
2648 * TypeTranslator.cs : changed for non-static use.
2649 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
2650 and GetElementName(). Bugfix so that if any XmlElementAttribute
2651 exists after non-typed XmlElementAttribute then it might be ignored.
2652 Added GetElementIsNullable().
2653 * XmlSerializer.cs :
2654 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
2655 Object memberObj[4].
2656 Deserialize() now uses XmlReader.Depth to check its depth.
2657 Serialize() for non-XmlReader arguments now always write xmldecl.
2658 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
2659 and handles XmlQualifiedName.
2660 Separated SerializeType () from Serialize().
2661 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
2662 IsPropertyTypeSerializable() from SerializeMembers().
2663 SerializeMembers() is now capable of null value and actual type,
2664 which should be included by XmlIncludeAttribute and so on.
2665 Renamed SerializeArray() to SerializeArrayContent(), and added
2666 SerializeCollectionContent().
2667 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
2668 FillTypeTable() is now aware of XmlInclude attributes.
2669 FillEnum() should not have different type table content from others.
2671 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2673 * XmlSerializer.cs : this time, only replaced spaces with tabs.
2675 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2677 * ChangeLog : Added missing ChangeLog of 2003-04-25.
2678 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
2679 separators. Added experimental method ToEnum().
2680 * XmlSerializationReader.cs : unconfirmed implementation of
2681 ReadSerializable() and ToEnum().
2682 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
2683 is null then no output will be written.
2684 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
2685 to use custom formatted name.
2687 2003-05-02 Miguel de Icaza <miguel@ximian.com>
2689 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
2690 had a void return value.
2692 2003-04-26 Miguel de Icaza <miguel@ximian.com>
2694 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
2695 `AllowMultiple' flags.
2697 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2699 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
2700 * XmlReflectionImporter.cs : patch by Erik LeBel.
2701 Now uses XmlRootAttribute to determine element name.
2703 2003-03-17 Miguel de Icaza <miguel@ximian.com>
2705 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
2708 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2710 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
2711 XmlWriter argument should call WriteEndDocument.
2713 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2715 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
2716 not WriteState.Start, and never call WriteEndDocument().
2718 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
2720 * XmlCustomFormatter.cs: Correct signature, Implement
2723 * XmlSerializationWriter.cs: Fix prototype.
2725 * XmlSerializer.cs: Implements Deserialize().
2727 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2729 * XmlSerializer.cs : serializing now works for interface member.
2731 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2733 * XmlSerializer.cs : some fix handling xml node object more correct.
2735 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
2736 * XmlSerializer.cs: Array serialization for 1D arrays works
2737 * TypeTranslator: Added for translations`
2739 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2741 * XmlCustomFormatter.cs: finished.
2742 * XmlSerializationReader.cs: implemented some more methods.
2744 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2746 * XmlSerializationReader.cs: implemented a few methods.
2748 * XmlAnyElementAttribute.cs:
2749 * XmlArrayAttribute.cs:
2750 * XmlChoiceIdentifierAttribute.cs:
2751 * XmlElementAttribute.cs:
2752 * XmlMemberMapping.cs:
2753 * XmlMembersMapping.cs: class status based fixes.
2755 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2757 * CodeIdentifiers.cs:
2758 * XmlSchemaExporter.cs:
2759 * XmlSchemaImporter.cs:
2761 * XmlSerializationWriteCallback.cs:
2762 * XmlSerializationWriter.cs:
2764 * XmlSerializerNamespaces.cs: some class status based fixed and
2765 implemented a couple of methods.
2767 * SoapSchemaExporter.cs: stubbed out.
2769 2002-08-24 Tim Coleman <tim@timcoleman.com>
2770 * SoapCodeExporter.cs:
2771 Fix return value of ExportTypeMapping.
2772 * XmlCustomFormatter.cs:
2773 Change methods to be internal instead of public.
2774 * XmlSerializationWriter.cs:
2775 Modify GetPrimitiveTypeName to build on linux.
2776 Modify GetQualifiedName to return an incrementing prefix
2777 instead of the same one all the time (still need to manage
2779 Modify WriteElementString to only do special stuff is XsiType
2781 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2782 an XmlQualifiedName.
2784 2002-08-22 Tim Coleman <tim@timcoleman.com>
2785 * XmlSerializationReader.cs:
2787 * XmlSerializationWriter.cs:
2789 * XmlCustomFormatter.cs:
2790 Implemented this class.
2792 2002-08-20 Tim Coleman <tim@timcoleman.com>
2793 * XmlSerializationWriter.cs:
2794 Some implementation.
2796 2002-08-19 Tim Coleman <tim@timcoleman.com>
2799 * XmlSerializationWriter.cs:
2802 2002-08-14 Tim Coleman <tim@timcoleman.com>
2804 More reformatting of source code so I can
2805 better understand what it does.
2807 2002-08-06 Tim Coleman <tim@timcoleman.com>
2809 Some reformatting of code for readability.
2810 Modify to correctly serialize ICollection objects
2811 such as the BindingCollection of a ServiceDescription
2814 2002-08-03 Tim Coleman <tim@timcoleman.com>
2816 Changed Implements() to check based on name rather
2817 than FullName. FullName was never working correctly.
2819 2002-07-26 Tim Coleman <tim@timcoleman.com>
2821 The constructor now looks for an XmlRootAttribute attribute
2822 if one is not passed in. Various changes to make it emit
2823 proper XML, such as handling an element without a namespace
2824 prefix, and using WriteEndDocument where it should be.
2826 2002-07-24 Tim Coleman <tim@timcoleman.com>
2827 * CodeIdentifier.cs:
2828 * IXmlSerializable.cs:
2829 * XmlSerializationCollectionFixupCallback.cs:
2830 * XmlSerializationFixupCallback.cs:
2831 * XmlSerializationReadCallback.cs:
2832 * XmlSerializationReader.cs:
2833 * XmlSerializationWriteCallback.cs:
2836 * CodeIdentifiers.cs:
2837 Implement some of these classes
2838 * XmlCodeExporter.cs:
2839 Fix return type of a function
2841 2002-07-24 Tim Coleman <tim@timcoleman.com>
2842 * SoapReflectionImporter.cs:
2843 New class added to build
2844 System.Web.Services.Description.ServiceDescription.cs
2846 2002-07-22 Tim Coleman <tim@timcoleman.com>
2847 * CodeIdentifiers.cs:
2848 * SoapCodeExporter.cs:
2849 * SoapSchemaExporter.cs:
2850 * XmlCodeExporter.cs:
2851 * XmlMemberMapping.cs:
2852 * XmlMembersMapping.cs:
2853 * XmlReflectionImporter.cs:
2854 * XmlReflectionMember.cs:
2855 * XmlSchemaExporter.cs:
2856 * XmlSchemaImporter.cs:
2858 New stubbs added to aid in the linux build of
2859 System.Web.Services.
2861 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
2863 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2865 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2867 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
2869 * XmlSeriailizer: Updated Serialize() method.
2871 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2872 * XmlSerializer: Serialize() method Partially Implemented.
2874 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2876 * Soap & XmlOverrides: Implemented using TypeMember as key with
2877 suggestions from Rafael.