1 2010-03-08 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlSerializationWriter.cs : namespaces argument could be null.
4 MS generated serializers often pass null here.
6 2010-01-28 Atsushi Enomoto <atsushi@ximian.com>
8 * SerializationCodeGenerator.cs : generate valid code for non-
9 identifier names. This should fix bug #488293.
11 2010-01-26 Atsushi Enomoto <atsushi@ximian.com>
13 * XmlReflectionImporter.cs, SerializationCodeGenerator.cs,
14 XmlSerializationWriterInterpreter.cs: XmlAnyElementAttribute can be
15 still used for non-XmlNode (object) array. It only fails when it
16 tries to serialize non-XmlNode object at run-time.
19 2010-01-06 Atsushi Enomoto <atsushi@ximian.com>
21 * SerializationCodeGenerator.cs : enum value identifiers should be
22 escaped with '@'. Fixed bug #566370.
24 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
26 * XmlRootAttribute.cs : it is also expected to have
27 internal property for SL2.
29 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
31 * XmlArrayItemAttribute.cs, XmlElementAttribute.cs,
32 XmlAnyElementAttribute.cs : added more 2.1 obstacles.
34 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
36 * XmlChoiceIdentifierAttribute.cs : added internal MemberInfo
39 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
41 * SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
42 SerializationSource as the class is going to be used in 2.1 too.
43 * XmlRootAttribute.cs : use KeyHelper above to add internal Key
44 property that is used in SL2 System.Xml.Serialization.dll.
46 2009-02-19 Geoff Norton <gnorton@novell.com>
48 * SerializationSource.cs: KeyHelper is needed by
51 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
53 * XmlSchemaImporter.cs : hack ImportSchemaType().
55 2008-12-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
57 * XmlSerializer.cs: updated to work with shadowcopy fixes.
59 2008-11-05 Atsushi Enomoto <atsushi@ximian.com>
61 * TypeData.cs : do not reject ICollection<T> for not implementing
62 Item[T]. Fixed bug #430759.
64 2008-09-19 Atsushi Enomoto <atsushi@ximian.com>
66 * XmlSerializer.cs : revert previous change and fix sys.data tests.
68 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
70 * XmlSerializer.cs : in 2.0 profile it seems to create XmlReader
71 for stream and textreader, that skips whitespaces.
73 2008-09-02 Atsushi Enomoto <atsushi@ximian.com>
75 * SerializationCodeGenerator.cs
76 XmlSerializationWriterInterpreter.cs : fixed bug #419973.
77 Sometimes implicit operators could involve and it affects on
78 typecasting. It's simple for code generator, but very bad for
81 2008-08-19 Jb Evain <jbevain@novell.com>
83 * XmlRootAttribute.cs: ifdef out parts to compile on net_2_1.
85 2008-07-10 Atsushi Enomoto <atsushi@ximian.com>
87 * XmlSerializationWriter.cs : more helpful error message.
89 2008-07-09 Atsushi Enomoto <atsushi@ximian.com>
91 * MapCodeGenerator.cs : use explicit element name for explicitly added
92 XmlElementAttribute. (exposed by some product from some company.)
94 2008-06-05 Atsushi Enomoto <atsushi@ximian.com>
96 * XmlSerializationReaderInterpreter.cs, MapCodeGenerator.cs,
97 SerializationCodeGenerator.cs : fixed bug #378696.
98 Default value should not be filled during deserialization, and
99 default values for DateTime/TimeSpan/DateTimeOffset should not be
100 output as raw string in generated code.
102 2008-06-04 Atsushi Enomoto <atsushi@ximian.com>
104 * XmlSerializationReader.cs : in ReadXmlDocument(), MoveToContent()
105 is required after ReadStartElement(). Fixed bug #393406 (without
106 unit test; no simple way to do that :( ).
108 2008-04-11 Atsushi Enomoto <atsushi@ximian.com>
110 * XmlTypeMapping.cs : .NET 2.0 has a weird behavior that swallows
111 exception from IXmlSerializable.GetSchema().
113 2008-04-01 Lluis Sanchez Gual <lluis@novell.com>
115 * TypeData.cs: Prefix with a '@' type names that are equal to keywords.
116 * XmlSerializationReaderInterpreter.cs,
117 XmlSerializationWriterInterpreter.cs: Properly handle nullable enum
119 * SerializationCodeGenerator.cs: Properly handle nullable enum values.
120 Don't generate read flags for text collectors (avoid var not used
122 * XmlReflectionImporter.cs: Assign the MappedType to text collector
123 members. It is needed when the member is an enum.
125 2008-03-30 Gert Driesen <drieseng@users.sourceforge.net>
127 * MapCodeGenerator.cs: Ensure fields that back properties are unique.
129 2008-03-26 Lluis Sanchez Gual <lluis@novell.com>
131 * MapCodeGenerator.cs, XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs:
132 If a value type field has the IsNullable property set to true,
133 generate it as System.Nullable<T>.
135 2008-03-26 Lluis Sanchez Gual <lluis@novell.com>
137 * XmlSchemaImporter.cs: Fix problem with primitive types with a forced
138 base class. It happens for example when a web service declares a
139 soap header of type bool. The schema exporter needs to generate a
140 subclass of SoapHeader for that header type. But if bool is used in
141 the parameters, it must use System.Boolean, not the SoapHeader
142 subclass. The solution is to store primitive types with a forced
143 base class in a different table. In this way it is possible to have
144 two maps for primitive types: one with the forced base class
145 (returned by ImportDerivedTypeMapping) and one with the regular
146 primitive map. Fixes bug #336739.
148 2008-03-21 Atsushi Enomoto <atsushi@ximian.com>
150 * XmlReflectionImporter.cs : set key for imported type mapping so
151 that generated serializer does not result in duplicate key error.
154 2008-02-03 Arina Itkes <arinai@mainsoft.com>
156 * XmlSchemaExporter.cs : Generated typed DataTable and typed DataSet
157 have an identical schema and an identical TargetNamespace.
158 This fix is a workaround for this specific case.
160 2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
162 * TypeData.cs : fixed setter which did not actually see the argument.
163 * XmlTypeMapElementInfo.cs : some cosmetic fixes for gendarme-
166 2007-11-09 Atsushi Enomoto <atsushi@ximian.com>
168 * XmlTypeMapping.cs : to get schema provider method, check base
169 types as well (i.e. FlattenHierarchy). Otherwise typed DataSet
170 cannot be reflected in 2.0.
172 2007-11-02 Atsushi Enomoto <atsushi@ximian.com>
174 * TypeTranslator.cs : for duration, rather use primitiveTypes than
175 nameCache, and hence TimeSpan could be serialized just as custom
176 type. Fixed bug #338705.
178 2007-11-01 Atsushi Enomoto <atsushi@ximian.com>
180 * XmlSchemaImporter.cs : simpleType is allowed to be imported.
181 (Part of #336739 fix.)
183 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
185 * XmlCustomFormatter.cs : use RoundtripKind when converting to and
188 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
190 * MapCodeGenerator.cs : found the true culprit for the previous
193 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
195 * MapCodeGenerator.cs, XmlSchemaImporter.cs: revert the previous
196 change; the type is included in the output, but it should not be
199 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
201 * MapCodeGenerator.cs, XmlSchemaImporter.cs: when a complexType has
202 simple content extension/restriction and the simple base type is
203 schema-defined, it must be written in exported code. Fixed (part
206 2007-10-26 Atsushi Enomoto <atsushi@ximian.com>
208 * TypeTranslator.cs, XmlCustomFormatter.cs : looks like duration is
209 serialized to System.String, not TimeSpan. Fixed bug #336625.
211 2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
213 * XmlMapping.cs : added XsdElementName.
214 * XmlSerializationWriter.cs : some more implementation.
216 2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
218 * XmlTypeMapping.cs : Namespace and XmlTypeNamespace could be
219 different when an explicit namespace is specified (e.g. at
220 XmlReflectionImporter.ctor).
221 * SerializationCodeGenerator.cs,
222 XmlSerializationWriterInterpreter.cs :
223 revert XmlTypeMapping.XmlTypeNamsepace usage. Now with the fix
224 above, original code should work fine.
226 2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
228 * XmlTypeMapping.cs, XmlSerializationWriterInterpreter.cs,
229 SerializationCodeGenerator.cs :
230 More XmlSchemaProviderAttribute method check. Use QName returned
231 by the method for the output root name.
233 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
235 * XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
236 byte[] (processed as primitive SchemaType). Fixed bug #81880.
238 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
240 * XmlSchemaProviderAttribute.cs : added IsAny.
242 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
244 * XmlSerializationReader.cs :
245 implemented ReaderCount and CheckReaderCount().
247 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
249 * MapCodeGenerator.cs : avoid possible duplicates in generated field
250 names. Fixed bug #82078.
252 2007-08-10 Atsushi Enomoto <atsushi@ximian.com>
254 * XmlSerializer.cs : use WhitespaceHandling.Significant when creating
255 XmlTextReader. Fixed bug #82372. No tests should be added for it.
257 2007-07-29 Konstantin Triger <kostat@mainsoft.com>
259 * XmlSerializationWriter.cs: do not output xml declaration while
260 serializing XmlDocument.
262 2007-07-26 Atsushi Enomoto <atsushi@ximian.com>
264 * XmlSerializationWriterInterpreter.cs : looks like XmlNode[]
265 serialization is a complicated mess. bug #81539.
267 2007-07-23 Vladimir Krasnov <vladimirk@mainsoft.com>
269 * XmlTypeMapping.cs: fixed XmlSerializableMapping ctor, corrected when
270 qualified name is empty
271 * XmlSchemaExporter.cs: fixed SetSchemaXmlSerializableType when schema
272 provider method returns null schema
274 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
276 * CodeIdentifier.cs: Default ctor is public on 1.0 profile too.
277 * CodeIdentifiers.cs: Ctor taking bool is 2.0 only.
279 2007-06-27 Konstantin Triger <kostat@mainsoft.com>
281 * XmlTypeMapping.cs, XmlSchemaExporter.cs: add partial support for
282 XmlSchemaProviderAttribute.
284 2007-05-27 Konstantin Triger <kostat@mainsoft.com>
287 1. Fix the construction of TypeData for nullable types: it should not
288 be primitive since the primitive were loaded in static ctor.
289 2. Rename primitiveNullableTypes -> nullableTypes to reflect
290 correctly the field purpose.
291 3. Unify synchronization with synchronized hashtable.
293 2007-05-24 Konstantin Triger <kostat@mainsoft.com>
295 * TypeTranslator.cs: fix typo: set IsNullable flag for primitiveNullableTypes.
297 2007-05-14 Adar Wesley <adarw@mainsoft.com>
299 * XmlSchemaExporter.cs: added missing overload for method ExportAnyType.
301 * XmlSchemas.cs: added missing methods Add, AddReference, Contains,
304 * XmlSerializationReader.cs: added missing method AddReaderCount.
306 * XmlSerializationWriter.cs: added missing overload WriteStartElement.
308 * XmlSerializer.cs: added missing overload Serialize.
310 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
312 * XmlCustomFormatter.cs : fix GenerateToXmlString() as well.
314 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
316 * XmlCustomFormatter.cs :
317 in 2.0, use F instead of f for dateTime formatting.
319 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
321 * XmlSchemas.cs : 1.1-only duplicate check does not seem to be
322 required. This is also a workaround for 1.x ws proxy generation.
324 2007-04-24 Atsushi Enomoto <atsushi@ximian.com>
326 * XmlCustomFormatter.cs : ditto for reader method generation.
327 * SerializationCodeGenerator.cs : for generic nullable values it
328 needs to store ReadNullableString() result to a temporary variable.
330 2007-04-23 Atsushi Enomoto <atsushi@ximian.com>
332 * TypeData.cs, XmlCustomFormatter.cs : generic nullable values did
333 not fit with non-nullable formatting. Fixed #80759 regression.
335 2007-04-20 Atsushi Enomoto <atsushi@ximian.com>
337 * XmlTypeMapping.cs, ReflectionHelper.cs,
338 XmlSerializationReaderInterpreter.cs, SerializationCodeGenerator.cs:
339 support instantiation by private constructor.
341 2007-04-19 Konstantin Triger <kostat@mainsoft.com>
343 * XmlSchemaExporter.cs: do not export twice simple types.
345 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
347 * TypeData.cs : forgot NET_2_0.
349 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
351 * TypeData.cs : in get_ListItemTypeData(), check generic ICollection
352 as well as non-generic one. Fixed bug #81341. Though the type check
353 looks like an aggregation of bugfix hacks and there should be some
354 kind of sane refactoring, to throw best-suited errors.
356 2007-02-28 Atsushi Enomoto <atsushi@ximian.com>
358 * SerializationCodeGenerator.cs : fix wrong name comparison:
359 Name->LocalName. Add hacky TARGET_JVM support (hope it is harmless).
361 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
363 * SerializationCodeGenerator.cs,
364 XmlSerializationReaderInterpreter.cs :
365 Handle attributes on non-empty elements as well. Fixed bug #80131.
367 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
369 * SerializationCodeGenerator.cs,
370 XmlSerializationReaderInterpreter.cs :
371 Handle empty root element.
372 Read out attribute parameters. To do that, split attribute
373 reader part from ReadMembers(), as it isn't invoked when the
376 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
378 * XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
380 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
382 * XmlReflectionImporter.cs : CanBeNull() should return true when the
383 argument is generic nullable value type.
385 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
387 * TypeData.cs, MapCodeGenerator.cs, XmlMemberMapping.cs,
388 TypeTranslator.cs : removed IsGenericNullable and added
389 set_IsNullable so that it could be simpler.
391 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
393 * SerializationCodeGenerator.cs, XmlMappingAccess.cs,
394 SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
397 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
399 * SerializationCodeGenerator.cs : hooks won't work unless they are
400 set. For WriteStartElement() it could simply embed the names.
402 2007-02-14 Atsushi Enomoto <atsushi@ximian.com>
404 * XmlTypeMapMember.cs : don't use readonly [Foo]Specified property
405 as nil-condition member. Fixed bug #80759.
407 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
409 * SoapReflectionImporter.cs : for primitive types, set predefined
410 namespaces, regardless of the actual specification.
412 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
414 * XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
416 * XmlSerializationWriterInterpreter.cs,
417 SerializationCodeGenerator.cs : so they have to be handled here.
419 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
421 * XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
422 when the name is null (almost no need to do this, but it is easier
423 to remove NotWorking from extraneous tests and let them hush than
426 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
428 * XmlSerializationWriter.cs : callbacks could be kept null.
430 2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
432 * XmlMemberMapping.cs : uhoh, there is a nasty trick to output
435 2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
437 * TypeData.cs : added get_IsGenericNullable.
438 * MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
439 the TypeData.IsGenericNullable.
440 Use GetDomType() instead of CodeTypeReference.ctor() to not lose
442 * XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
443 so that it won't XmlSchemaElement.IsNillable.
444 * TypeTranslator.cs :
445 Fixed wrong TypeData modification against non-nullable stuff.
446 Added another GetTypeData() that takes isNullableRuntimeType so
447 that it won't miss XmlSchemaElement.IsNillable.
448 Added another GetPrimitiveTypeData() that takes nullable.
450 2007-01-15 Atsushi Enomoto <atsushi@ximian.com>
452 * TypeData.cs : reject generic type definitions.
453 * TypeTranslator.cs : Make generic type names in XML compatible with
454 .net: foo_x0060_1 -> fooOfString.
456 2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
458 * SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
459 GenerateToXmlString() needed hexBinary support as well. Since
460 XmlConvert.[To|From]BinHexString() are internal, use reflection.
461 Really fixed bug #79989 and #79990 for generated serializers.
463 2006-12-03 Gert Driesen <drieseng@users.sourceforge.net>
465 * XmlSchemaExporter.cs: Emit xml name of enum-based default values.
466 Set XmlSchemaAttribute.Use to Required if no default value is defined,
467 and member is not an optional value type. Element should have minOccurs
468 1 if value type member has default value. Output flag enum type as
469 xsd list with restriction.
470 * XmlReflectionImporter.cs: Removed special casing of enums. Instead
471 of passing namespace of XmlAttribute to ImportTypeMapping, use the
472 default namespace for importing the member type.
474 2006-12-02 Gert Driesen <drieseng@users.sourceforge.net>
476 * SerializationCodeGenerator.cs: Initialize out parameters if they
477 are value types. Fixed bug #79988.
478 * XmlSerializationReaderInterpreter.cs: Same.
480 2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
482 * XmlReflectionImporter.cs : implemented several missing check and
483 support for XmlArrayAttribute. Fixed bug #78042.
485 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
487 * XmlCustomFormatter.cs : handle hexBinary type. Fixed bug #79989
490 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
493 * TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
494 "nullable" information. Introduced new primitiveNullableTypes pool
495 whose TypeData has 'true' for new IsNullable property. This
496 property is also used for non-primitive types.
497 * XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
498 of IsValueType, to handle nullable types.
500 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
502 * TypeTranslator.cs : Hari knew better way to do it.
504 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
506 * TypeTranslator.cs : #if NET_2_0 for generic thingy.
508 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
510 * TypeTranslator.cs : (GetTypeData) when the argument type is
511 Nullable<T>, use T instead. At run time (on both interpreter and
512 generated code) it is converted to T. Fixed bug #79803.
514 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
516 * SerializationCodeGenerator.cs, TypeData.cs :
517 Now we differentiate TypeName, FullTypeName C# type names. It is
518 to create valid C# sources especially for generic types.
521 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
523 * XmlSerializationReader.cs : (ReadReferencedElement)
524 Sometimes there are array types in WSDL, which are not reflected
525 in client proxies. In SOAP messages, they are marked
526 soap-env:arrayType, so use it (this could coexist with xsi:type,
527 which indicates the type in WSDL). Fixed bug #79057.
529 2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
531 * XmlSerializationReader.cs : implement ToByteArray[Base64|Hex]().
532 removed extra ReadSerializable().
533 * XmlTypeMapping.cs : added XsdTypeName and XsdTypeNamespace.
535 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
537 * SerializationCodeGenerator.cs,
538 SerializationCodeGeneratorConfiguration.cs :
539 make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
540 (or it is impossible to use genxs more than twice in an assembly.)
542 2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
545 * XmlReflectionImporter.cs : Compute nullable correctly. Elements are
546 nillable when its type is a reference type.
547 * XmlSchemaExporter.cs :
548 Set XmlTypeMapElementInfo.IsNullable from XmlTypeMapping.
549 Set XmlSchemaElement.IsNillable from XmlTypeMapElementInfo.
551 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
553 * XmlSchemaImporter.cs : top-level element might also have no type
554 name specification, so just compare ElementType with anyType.
556 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
558 * XmlSchemaImporter.cs : attributes might overlap by extending
559 base content models. Since invalid content models are rejected by
560 Compile(), simply ignore duplicating attributes. Note that it is
561 basically hack, which should not skip derived ones but use them (but
562 it is mostly harmless since the result is very unlikely to differ).
564 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
566 * XmlSchemaImporter.cs : when top-level element is xs:anyType, all
567 complexTypes must be also imported.
569 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
571 * XmlSchemaImporter.cs : ImportTypeMapping() raises exception when
572 the argument name is not bound to any elements.
574 2006-11-07 Atsushi Enomoto <atsushi@ximian.com>
576 * XmlCustomFormatter.cs : consider null base64 byte array value.
579 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
581 * CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
582 explicitly say Obsolete instantiation.
583 * CodeIdentifiers.cs : implemented case-insensitive mode.
584 * XmlSerializerAssemblyAttribute.cs : added missing .ctor().
585 * SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
586 in 2.0 profile it could also be applied to an interface.
587 * SoapReflectionImporter.cs,
588 XmlReflectionImporter.cs,
589 XmlMappingAccess.cs :
590 added missing ImportMembersMapping overload and moved actual
591 implementation to most lengthy-arglist one. To make it possible,
592 XmlMappingAccess is included in 1.x as internal enum.
594 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
596 * XmlSchemaImporter.cs : initialize extensions from configuration.
598 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
600 * SchemaImporterExtension.cs,
601 SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
603 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
605 * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
606 * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
607 became a class, it needs explicit "override".
608 Since InternalSyncObject is gone, it needs another lock target.
609 * IXmlSerializerImplementation.cs : removed.
610 * XmlSerializerImplementation.cs : added.
611 * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
612 IXmlSerializerImplementation -> XmlSerializerImplementation.
613 * XmlSchemas.cs : removed Schemas. hacked Compile().
614 Now it implements IEnumerable<XmlSchema>.
615 * XmlSchemaEnumerator.cs : added missing type.
617 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
619 * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
620 is not considered in XmlSerializationReader yet.
621 * XmlElementEventArgs.cs : added ExpectedElements. Note that it
622 is not considered in XmlSerializationReader yet.
623 * XmlSerializationReader.cs : added some overloads for
624 UnknownElement()/-Attribute()/-Node().
626 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
628 * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
630 * XmlSerializationCollectionFixupCallback.cs,
631 XmlNodeEventHandler.cs,
632 XmlSerializationReadCallback.cs,
633 UnreferencedObjectEventHandler.cs,
634 XmlSerializationWriteCallback.cs,
635 XmlAttributeEventHandler.cs,
636 XmlElementEventHandler.cs,
637 XmlSerializationFixupCallback.cs :
638 exclude [Serializable] in NET_2_0.
639 * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
640 * XmlSerializerVersionAttribute.cs : removed [Obsolete].
641 * XmlMappingAccess.cs : it is [Flags].
642 * SchemaImporter.cs : implement Extensions.
643 * XmlAnyElementAttribute.cs,
644 XmlArrayAttribute.cs : added Order.
645 Note that it is not considered in XmlSerializer yet.
647 2006-10-25 Ankit Jain <jankit@novell.com>
649 * SerializationCodeGenerator.cs (GenerateContract): Handle
650 'generateAsInternal' config option.
652 2006-10-10 Gert Driesen <drieseng@users.sourceforge.net>
654 * XmlSerializer.cs: Output namespace declarations in same order as
657 2006-10-08 Gert Driesen <drieseng@users.sourceforge.net>
659 * XmlSerializer.cs: Corrected exception message when deserialization
661 * SerializationCodeGenerator.cs: Added support for flag enums.
662 * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
663 all exceptions that occur while reflecting member. Validate default
665 * SoapReflectionImporter.cs: Revert small part of previous patch as
666 XmlSerializer expects enum value.
668 2006-10-01 Gert Driesen <drieseng@users.sourceforge.net>
670 * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
671 thrown during creation of map member bubble up. Only allow
672 SoapAttribute on primitive types and enums. Obtain default value for
675 2006-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
677 * XmlTypeAttribute.cs: added property AnonymousType for 2.0
679 2006-09-12 Lluis Sanchez Gual <lluis@novell.com>
681 * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
683 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
685 * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
688 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
690 * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
691 to strings. Make sure maps returned by ImportClassSimpleType are always
692 simple type maps. All this fixes bug #77585.
694 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
696 * XmlSchemaImporter.cs: Always import simple type unions
697 as string (like MS.NET does). Fixes bug #79234.
699 2006-08-25 Kornél Pál <kornelpal@gmail.com>
701 * MapCodeGenerator.cs: Use assembly file version constants.
703 2006-07-24 Atsushi Enomoto <atsushi@ximian.com>
705 * XmlMappingAccess.cs : new type in 2.0 RTM.
706 * XmlCodeExporter.cs, SoapCodeExporter.cs,
708 XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
709 SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
710 XmlMemberMapping.cs, XmlSerializationReader.cs :
711 several 2.0 API fixes from betas to RTM.
713 2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
715 * XmlTypeMapMember.cs: Added GlobalIndex property.
716 * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
718 * SerializationCodeGenerator.cs:
719 * XmlSerializationWriterInterpreter.cs:
720 * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
721 Index to get/set the values from the input array, since some Index
722 values are shared between attribute and element members. Fixes
725 2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
727 * SerializationCodeGenerator.cs,
728 XmlSerializerReaderInterpreter.cs : handle CDATA section as text
729 node. Fixed bug #78536.
731 2006-05-15 Gert Driesen <drieseng@users.sourceforge.net>
733 * XmlCodeExporter.cs: Added bool argument to GenerateClass and
734 GenerateEnum methods that specifies whether we're dealing with a type
735 for a top-level element. In GenerateClass, do not always add Namespace
736 argument for XmlRootAttribute if isTopLevel is false, and do not
737 emit XmlRootAttribute if isTopLevel is false and no arguments have been
739 * SoapCodeExporter.cs: Added bool argument to GenerateClass and
740 GenerateEnum methods.
741 * MapCodeGenerator.cs: Added bool argument to GenerateClass and
742 GenerateEnum methods.
744 2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
746 * SerializationCodeGenerator.cs: Allow generating serializer for
747 reading an XmlElement or XmlDocument as root element.
748 Properly generate jagged array creation.
750 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
752 * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
754 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
756 * SerializationCodeGenerator.cs: For flag enums, we should split on all
757 whitespace chars instead of only on blanks.
758 * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
759 constant name(s) to integral enum value.
761 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
763 * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
764 as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
766 2006-04-24 Gert Driesen <drieseng@users.sourceforge.net>
768 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
769 allow XML Schema items to be added to its parent in the same order
770 as MS.NET (schema elements before complex types, ...).
772 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
774 * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
775 GenerateProperties. Use full type name for XML serialization attributes
776 instead of shortcut (without Attribute suffix). Always add Namespace
777 argument for XmlRootAttribute on classes. Added IsNullable argument for
778 XmlRootRootAttribute on classes. For attribute members, only output
779 Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
780 ctor that takes CodeGenerationOptions.
781 * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
782 CodeGenerationOptions.
783 * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
784 profile, emit GeneratedCodeAttribute, SerializableAttribute,
785 DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
786 To match MS.NET, emit attribute members before element members.
787 * XmlReflectionImporter.cs: Enums are never nullable.
788 * XmlSchemaImporter.cs: Set IsNullable on map using value of
789 XmlSchemaElement.IsNillable. Added LocateElement overload that takes
792 2006-04-15 Gert Driesen <drieseng@users.sourceforge.net>
794 * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
795 to XmlReflectionImporter and SoapReflectionImporter to keep from
796 always ending up with the XSD type that directly maps to the CLR type.
797 * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
798 Type. This improves performance by avoiding the use of
799 TypeTranslator.GetTypeData for types imported from a schema and fixes
801 * SoapReflectionImporter.cs: Same.
803 2006-04-11 Lluis Sanchez Gual <lluis@novell.com>
805 * XmlSchemas.cs: In 1.1, don't allow adding two schemas
806 with the same namespaces. This is allowed in 2.0. Fixed
807 the Find() method to cope with this case. Based on a patch
810 2006-03-22 Gert Driesen <drieseng@users.sourceforge.net>
812 * XmlReflectionImporter.cs: Throw NotSupportException instead of
813 InvalidOperationException (IOE) if void is specified as type in
814 ImportTypeMapping. To match MS.NET, surround importing of type in
815 try/catch block, and wrap any IOE in another IOE adding information
816 on the type that was being reflected. In CreateTypeMapping, surround
817 creating of map member in try/catch block, and wrap any IOE in another
818 IOE adding information on the member that was being reflected.
819 Modified exception message for missing enumeration value to match
820 MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
821 XmlTextAttribute, and it differs from type of reflected member when
822 schema type of member is primitive or enum. Fixed bug #77591.
824 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
826 * XmlSchemaExporter.cs: Import namespace of schema generated for
827 non-xsd primitive. Do not set zero-length TargetNamespace to avoid
828 emitting empty targetNamespace attribute in generated schema.
829 * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
832 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
834 * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
835 Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
836 serialization of integral value to enum constant name, and made sure
837 the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
838 throw InvalidOperationException if no matching enum constant exists.
839 In EnumMap ctor, initialize arrays holding XML names, enum names and
841 * XmlSerializationReaderInterpreter.cs: Pass full type name to
842 EnumMapping.GetEnumName for construction of exception message.
843 * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
844 and InvalidCastException in another InvalidOperationException to match
845 MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
846 and the inner exception for a TargetInvocationException in an
847 InvalidOperationException to match MSFT.
848 * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
849 XmlCustomFormatter.FromEnum in order to also support serialization
850 integral value to enum constant name. In 2.0 profile, throw
851 InvalidOperationException if numeric value cannot be serialized into
852 an enum constant value. In GenerateSingleEnumValue, no longer attempt
853 to parse unknown constant value but instead report it as
854 InvalidOperationException. Use string.Length instead of "" comparison
855 to check whether a string is empty. Fixed compiler warnings in
856 generated code (possible empty statement).
857 * XmlSerializationWriterInterpreter.cs: Pass full type name to
859 * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
860 to allow it to be used in exception messages.
861 * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
862 enum fields. Use IsDefined instead of GetCustomAttributes for checking
863 if a certain attribute is defined. Use integral value of enum constant
864 in EnumMapMember ctor.
865 * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
866 enum fields. Use IsDefined instead of GetCustomAttributes for checking
867 if a certain attribute is defined. Use integral value of enum constant
868 in EnumMapMember ctor.
870 2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
872 * XmlReflectionImporter.cs: Ignore the element namespace if
873 the schema form is set to Unqualified. Fixes bug #75019.
875 2006-02-22 Gert Driesen <drieseng@users.sourceforge.net>
877 * SerializationCodeGenerator.cs: Omit return statement in ReadObject
878 method if GenerateReadListElement returns null. Fixes bug #77588.
880 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
882 * XmlSerializer.cs: Fix the previous fix.
884 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
886 * XmlSerializer.cs: Added option to avoid falling back to the
887 interpreted serializer if the code generator fails. To be used
890 2006-02-16 Gert Driesen <drieseng@users.sourceforge.net>
892 * TypeData.cs: Fixed the following issues when dealing with Array
894 - if a type implements IDictionary, throw a NotSupportedException
895 - if a type implements ICollection, then an Add method must exist
896 which takes a single argument of a type to which the listitem type
897 is assignable (meaning a base type or an interface that it
898 implements). If such a method does not exist, then throw an
899 InvalidOperationException.
900 - if a type implements IEnumerable, then the listitem type is
901 determined by the type of the Current property of the (IEnumerator)
902 type returned by the GetEnumerator() method or the private
903 implementation of IEnumerable.GetEnumerator(). If there's no
904 public Current property on the IEnumerator, then System.Object
905 is assumed as listitem type. Similar as for types implementing
906 ICollection, an Add method must exist which takes a single argument
907 of a type to which the listitem type is assignable (meaning a base
908 type or an interface that it implements). If such a method does not
909 exist, then throw an InvalidOperationException.
911 2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
913 * XmlSchemaImporter.cs: Support importing complex types with
914 simple content based on enums. Fixes bug #76848.
916 2006-02-11 Gert Driesen <drieseng@users.sourceforge.net>
918 * SoapAttributeAttribute.cs: Set eol-style to CRLF.
919 * SoapElementAttribute.cs: Same.
920 * SoapEnumAttribute.cs: Same.
921 * SoapIncludeAttribute.cs: Same.
922 * SoapSchemaMember.cs: Same.
923 * SoapTypeAttribute.cs: Same.
924 * XmlArrayAttribute.cs: Same.
925 * XmlAttributeAttribute.cs: Same.
926 * XmlChoiceIdentifierAttribute.cs: Same.
927 * XmlElementAttribute.cs: Same.
928 * XmlEnumAttribute.cs: Same.
929 * XmlRootAttribute.cs: Same.
930 * XmlSchemaImporter.cs: Same.
931 * XmlTextAttribute.cs: Same.
932 * XmlTypeAttribute.cs: Same.
933 * XmlTypeMapping.cs: Same.
934 * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
935 * CodeIdentifiers.cs: Same.
936 * SoapCodeExporter.cs: Same.
937 * SoapAttributes.cs: Same.
938 * SoapIgnoreAttribute.cs: Same.
939 * SoapSchemaImporter.cs: Same.
940 * TypeMember.cs: Same.
941 * UnreferencedObjectEventArgs.cs: Same.
942 * XmlAnyAttributeAttribute.cs: Same.
943 * XmlAnyElementAttributes.cs: Same.
944 * XmlArrayItemAttributes.cs: Same.
945 * XmlAttributeEventArgs.cs: Same.
946 * XmlCodeExporter.cs: Same.
947 * XmlElementAttributes.cs: Same.
948 * XmlElementEventArgs.cs: Same.
949 * XmlIgnoreAttribute.cs: Same.
950 * XmlNamespaceDeclarationsAttribute.cs: Same.
951 * XmlNodeEventArgs.cs: Same.
952 * XmlReflectionMember.cs: Same.
953 * XmlSchemas.cs: Same.
954 * XmlSerializerNamespaces.cs: Same.
955 * XmlTypeMapMemberElement.cs: Set eol-style to native.
957 2006-02-10 Gert Driesen <drieseng@users.sourceforge.net>
959 * CodeExporter.cs: Set eol-style to native.
960 * CodeGenerationOptions.cs: Same.
961 * CodeIdentifier.cs: Same.
962 * ImportContext.cs: Same.
963 * IXmlSerializable.cs: Same.
964 * IXmlSerializerImplementation.cs: Same.
965 * IXmlTextParser.cs: Same.
966 * MapCodeGenerator.cs: Same.
967 * ReflectionHelper.cs: Same. Fixed line endings.
968 * SchemaImporter.cs: Same.
969 * SchemaImporterExtensionCollection.cs: Same.
970 * SchemaImporterExtension.cs: Same.
971 * SchemaTypes.cs: Same.
972 * SerializationCodeGeneratorConfiguration.cs: Same.
973 * SerializationCodeGenerator.cs: Same.
974 * SerializationSource.cs: Same.
975 * SoapReflectionImporter.cs: Same.
976 * SoapSchemaExporter.cs: Same.
978 * TypeTranslator.cs: Same.
979 * UnreferencedObjectEventHandler.cs: Same.
980 * XmlAnyElementAttribute.cs: Same.
981 * XmlArrayItemAttribute.cs: Same.
982 * XmlAttributeEventHandler.cs: Same.
983 * XmlAttributeOverrides.cs: Same.
984 * XmlAttributes.cs: Same.
985 * XmlDeserializationEvents.cs: Same.
986 * XmlElementEventHandler.cs: Same.
987 * XmlIncludeAttribute.cs: Same.
988 * XmlMapping.cs: Same.
989 * XmlMemberMapping.cs: Same.
990 * XmlMembersMapping.cs: Same.
991 * XmlNodeEventHandler.cs: Same.
992 * XmlReflectionImporter.cs: Same.
993 * XmlSchemaExporter.cs: Same.
994 * XmlSchemaProviderAttribute.cs: Same.
995 * XmlSerializationCollectionFixupCallback.cs: Same.
996 * XmlSerialiationFixupCallback.cs: Same.
997 * XmlSerializationGeneratedCode.cs: Same.
998 * XmlSerializationReadCallback.cs: Same.
999 * XmlSerializationReader.cs: Same.
1000 * XmlSerializationReaderInterpreter.cs: Same.
1001 * XmlSerializationWriteCallback.cs: Same.
1002 * XmlSerializationWriterInterpreter.cs: Same.
1003 * XmlSerializerAssemblyAttribute.cs: Same.
1004 * XmlSerializer.cs: Same.
1005 * XmlSerializerFactory.cs: Same.
1006 * XmlSerializerVersionAttribute.cs: Same.
1007 * XmlTypeMapElementInfo.cs: Same.
1008 * XmlTypeMapMemberAttribute.cs: Same.
1009 * XmlTypeMapMember.cs: Same.
1010 * XmlTypeMapMemberNamespaces.cs: Same.
1012 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1014 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
1015 if map represents enum. Fixes bug #77501.
1017 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1019 * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
1020 CreateInvalidEnumValueException. Set eol-style to native.
1021 * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
1022 enum for which string value must be created. Set eol-style to native.
1023 Modified FromEnum to behave more like MSFT's implementation:
1024 - treat value as bit field.
1025 - no longer return empty string if the value matches an id for which there's no corresponding
1027 - if one of the ids has value 0 and there's a match for the enum value
1028 (with a zero length XML name) or the enum value is 0, then return the
1029 corresponding XML for the id with value 0.
1030 - in 2.0 profile, throw InvalidOperationException if no match is found
1031 for (part of) the enum value.
1032 Modifies ToEnum to match the MSFT implementation (as described in
1034 - Expect hashtable containing enum names as key, and corresponding
1035 integral numbers as value.
1036 - Do not report exception for whitespace-only value.
1037 - Support space (MS docs are not clear about this) delimited list
1039 - typeName is only used to construct exception message.
1041 2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
1043 * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
1044 looking for the correct element definition for a member,
1045 based on the value type, take into account subypes of the
1046 declared types. Fixes bug #77447.
1048 2006-02-07 Konstantin Triger <kostat@mainsoft.com>
1050 * XmlReflectionImporter.cs: remove local name encoding for enums.
1052 2006-01-08 Gert Driesen <drieseng@users.sourceforge.net>
1054 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
1056 2006-01-07 Gert Driesen <drieseng@users.sourceforge.net>
1058 * XmlTypeMapping.cs: Fixed line endings.
1059 * TypeTranslator.cs: Fixed line endings.
1061 2005-12-07 Lluis Sanchez Gual <lluis@novell.com>
1063 * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
1064 collection, don't create a new collection if the property already has a
1065 collection instance.
1066 * SerializationCodeGenerator.cs: same as above. Also return an empty
1067 string for flag enum default values.
1069 2005-12-06 Konstantin Triger <kostat@mainsoft.com>
1071 * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
1073 2005-12-05 Lluis Sanchez Gual <lluis@novell.com>
1075 * XmlSerializationReaderInterpreter.cs:
1076 * SerializationCodeGenerator.cs: When deserializing a collection,
1077 don't create a new collection if the property already has a
1078 collection instance. This does not apply to arrays. Changed how nullabe
1079 array properties are set. Setting IsNullable=false to the property means
1080 that it won't be set if the read array is null (so, if the property
1081 already has a value, it will be kept).
1082 Another change is that can't never be null (only arrays can).
1084 2005-12-01 Lluis Sanchez Gual <lluis@novell.com>
1086 * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
1087 a cli array type, consider it refering to the type of array elements.
1088 This fixes bug #76860. Also added some locking.
1090 2005-11-27 Konstantin Triger <kostat@mainsoft.com>
1092 * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
1093 export non-xsd primitive types.
1095 2005-11-24 Vladimir Krasnov <vladimirk@mainsoft.com>
1097 * XmlTypeMapping.cs: fixed GetXmlName method, added difference
1098 of value serialization of flags and non-flags enums
1100 2005-11-23 Konstantin Triger <kostat@mainsoft.com>
1102 * XmlSchemaExporter.cs: do not import empty namespaces.
1104 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1106 * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
1107 method, ReadEndElement should check XmlNodeType.
1108 * XmlTypeMapping.cs: fixed GetXmlName method, it should not
1109 write zero as default enum value.
1111 2005-11-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1113 * XmlReflectionImporter.cs: fixed field order returned by
1114 reflection in method GetReflectionMembers. TARGET_JVM only.
1116 2005-11-07 Lluis Sanchez Gual <lluis@novell.com>
1118 * XmlSchemaImporter.cs: Added support for restrictions with
1119 embedded simple type definitions.
1121 2005-11-04 Atsushi Enomoto <atsushi@ximian.com>
1123 * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
1124 sys.xml.schema corcompare diffs.
1126 2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
1128 * SerializationCodeGenerator.cs:
1129 * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
1130 need to be all XmlElments. Fix by Atsushi for bug #76288.
1132 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1134 * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
1135 In ListMap.FindElement, take into account the ChoiceMember
1137 * SerializationCodeGenerator.cs:
1138 * XmlSerializationReaderInterpreter.cs: For lists with a choice
1139 member, fill the member with the corresponding enum values.
1140 * XmlReflectionImporter.cs: Properly reflect the choice member
1141 when applied to a list.
1142 * XmlSerializationWriterInterpreter.cs: Track class changes.
1143 * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
1144 All this fixes bug #76203.
1146 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1148 * SoapReflectionImporter.cs: Check the correct defaults
1151 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1153 * SerializationSource.cs: Fix nullref.
1154 * XmlReflectionImporter.cs: When registering a type using
1155 IncludeType(), make sure it is added as a subtype and the
1156 map for typeof(object) if it has already been imported.
1159 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1161 * XmlSerializationWriter.cs: Also internally serialize
1162 arrays of object (see previous change).
1164 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
1166 * XmlSerializationWriter.cs: Properly serialize arrays
1167 of primitive types when not explicitely specified in
1168 a container class. Based on a patch by Konstantin Triger.
1171 2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
1173 * TypeData.cs: Reset the hasPublicConstructor flag when the
1174 type is an interface.
1175 * XmlSerializationWriterInterpreter.cs: Get the Count property
1176 from the object type instead of the property type (it didn't
1178 * ReflectionHelper.cs: In CheckSerializableType, don't trow
1179 if the type is a collection interface. All this fixes
1182 2005-08-06 Lluis Sanchez Gual <lluis@novell.com>
1184 * XmlTypeMapping.cs: Added null check.
1186 2005-08-05 Lluis Sanchez Gual <lluis@novell.com>
1188 * XmlTypeMapping.cs: Added ListMembers property that returns
1189 members which are collections.
1190 * SerializationCodeGenerator.cs:
1191 * XmlSerializationReaderInterpreter.cs: Initialize collection
1192 members to an empty collection by default. Fixes bug #75662.
1194 2005-08-01 Gert Driesen <drieseng@users.sourceforge.net>
1196 * XmlMapping.cs: API compatibility fixes. Ctor is not protected
1197 in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
1199 2005-07-31 Gert Driesen <drieseng@users.sourceforge.net>
1201 * SoapAttributeAttribute.cs: Return zero-length string if
1202 AttributeName or DataType are null.
1203 * SoapEnumAttribute.cs: Return zero-length string if Name is null.
1204 * SoapIncludeAttribute.cs: Avoid using property in ctor.
1205 * SoapSchemaMember.cs: Return zero-length string if MemberName is
1206 null. MemberType should be XmlQualifiedName.Empty by default.
1207 * SoapTypeAttribute.cs: Return zero-length string if TypeName is
1208 null. Avoid using property in ctor.
1209 * XmlArrayAttribute.cs: Return zero-length string if ElementName is
1210 null. Avoid using property in ctor.
1211 * XmlArrayItemAttribute.cs: IsNullable must be false by default.
1212 Return zero-length string if DataType or ElementName are null. Avoid
1213 using property in ctor.
1214 * SoapElementAttribute.cs: Return zero-length string when DataType
1215 or ElementName are null. Avoid using property in ctor.
1216 * XmlAnyElementAttribute.cs: Return zero-length string when Name is
1217 null. Avoid using property in ctor.
1218 * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
1219 zero-length string if AttributeName or DataType are null.
1220 * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
1222 * XmlElementAttribute.cs: Return zero-length string when DataType or
1223 ElementName are null. Avoid using property in ctor.
1224 * XmlEnumAttribute.cs: Avoid using property in ctor.
1225 * XmlIncludeAttribute.cs: Avoid using property in ctor.
1226 * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
1227 can no longer be null. Use check for zero-length string to determine
1228 whether they are set. Corrected exception message when DataType is
1229 set for complex type.
1230 * XmlRootAttribute.cs: Return zero-length string if DataType or
1231 ElementName are null. Avoid using property in ctor.
1232 * XmlTextAttribute.cs: Return zero-length string if DataType is null.
1233 * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
1235 2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
1237 * SerializationCodeGenerator.cs: In the generated serializer always
1238 use the Object equality operator when comparing objects to serialize
1239 to null, since those objects may have the equality operator
1240 overloaded. This fixes bug #75543.
1242 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1244 * XmlCustomFormatter.cs: Properly read/write duration values.
1246 2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
1248 * XmlSerializer.cs: Fix race between XmlSerializer and the
1249 serializer generator.
1251 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
1253 * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
1254 getting the real xml type name of a member.
1255 * XmlSerializationWriterInterpreter.cs: Use that new property
1256 to get the type name of primitive types. This should fix bug #75180.
1258 2005-06-07 Lluis Sanchez Gual <lluis@novell.com>
1260 * SerializationCodeGenerator.cs: When reading members by order,
1261 call a MoveToContext after each member read. In the fixup method
1262 don't cast returned values if it is reading an object array.
1264 * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
1265 being imported is a primitive type, create a wrapper class that
1266 inherits from the provided one. This fixes bug #68809.
1268 * XmlSerializationReader.cs: Properly report unreferenced objects.
1269 Created an overload of ReadTypedPrimitive that reports elements of
1270 unknown type. Implemented Referenced().
1272 2005-05-30 Lluis Sanchez Gual <lluis@novell.com>
1274 * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
1275 set to the default namespace. This fixes bug #73035.
1277 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
1279 * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
1280 types indirectly imported by this method use the same namespace.
1282 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1284 * TypeTableEntry.cs : removed obsolete code.
1286 2005-04-26 Lluis Sanchez Gual <lluis@novell.com>
1288 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
1289 properties which are read only. Fixes bug #74723.
1291 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
1293 * XmlReflectionImporter.cs:
1294 * SoapReflectionImporter.cs:
1295 * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
1296 where needed. Based on a patch by Konstantin Triger.
1298 2005-04-12 Lluis Sanchez Gual <lluis@novell.com>
1300 * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
1301 * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
1302 export the schema that it defines. In ImportNamespace, removed
1303 check for default namespace, since it may be included from a non
1305 * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
1306 types. All this based on a patch by Konstantin Triger.
1308 * SerializationCodeGenerator.cs:
1310 * XmlSerializationReaderInterpreter.cs:
1311 * SoapCodeExporter.cs:
1312 * XmlTypeMapMemberAttribute.cs:
1313 * XmlSerializationReader.cs:
1314 * XmlCodeExporter.cs: Fixed some warnings.
1316 2005-04-10 Andrew Skiba <andrews@mainsoft.com>
1318 * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
1320 2005-04-03 Andrew Skiba <andrews@mainsoft.com>
1322 * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
1325 2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
1327 * SerializationCodeGenerator.cs:
1328 * XmlSerializationReaderInterpreter.cs: If the element being read is
1329 bound to a choice member, set the corresponding value.
1330 * XmlTypeMapMember.cs: Added helper SetValue method.
1331 * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
1332 since now stores the enum value.
1333 * XmlReflectionImporter.cs: Properly import choice values.
1334 * XmlTypeMapMemberElement.cs: Added setter for the choice.
1336 2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
1338 * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
1339 This fixes bug #73901 and should fix #70384.
1340 * XmlSerializationReader.cs: When reading an object element, return
1341 an Object instance if the element has no children. This fixes bug #73974.
1342 * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
1343 type (it is written as an element with those nodes as children).
1345 2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
1347 * XmlSchemaImporter.cs: Support importing schemas that define
1348 extra types in the standard xml schema namespace. When using encoded
1349 format, support the primitive types defined by the SOAP encoding
1352 2005-03-04 Lluis Sanchez Gual <lluis@novell.com>
1354 * ReflectionHelper.cs: Avoid endless loop.
1355 * XmlSchemas.cs: Added null check. Patches from MainSoft.
1357 2005-02-07 Lluis Sanchez Gual <lluis@novell.com>
1359 * XmlSerializationReader.cs: After reading an href element, skip the
1360 whole element (it may not be an empty element). This fixes bug #72265.
1362 2005-01-25 Lluis Sanchez Gual <lluis@novell.com>
1364 * XmlSchemaImporter.cs: When importing a default value of type enum,
1365 translate it from the schema value to the clr value.
1367 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1369 * XmlSerializer.cs: only print the results if there's an error
1372 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1374 * SerializationCodeGenerator.cs: don't use _config if it has not been
1377 2005-01-18 Lluis Sanchez Gual <lluis@novell.com>
1379 * XmlReflectionImporter.cs: Don't check the property type if it has
1380 an [XmlIgnore] attribute. This fixes bug #71332.
1382 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
1384 * SerializationCodeGenerator.cs,
1385 XmlSerializationWriterInterpreter.cs : exchanged attribute
1386 serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
1387 xmlns attributes in XmlAnyAttribute are not written.
1389 2005-01-12 Atsushi Enomoto <atsushi@ximian.com>
1391 * SerializationCodeGeneratorConfiguration.cs,
1392 SerializationCodeGenerator.cs : Added some generation configuration:
1393 <generateAsInternal>
1394 write custom reader/writer as internal classes.
1395 <noreader>, <nowriter>
1396 They make generation of reader and/or writer optional.
1397 * XmlSerializerNamespaces.cs :
1398 Now it uses ListDictionary instead of Hashtable.
1399 * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
1400 written unless there is already the same prefix-ns mapping.
1402 2005-01-12 Lluis Sanchez Gual <lluis@novell.com>
1404 * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
1405 * XmlSchemaImporter.cs: When importing a base type of a complex type,
1406 make sure that the base class is always imported as a class and not
1407 as an array. If it has been imported as array, import it again.
1408 This fixes bug #70839. Other minor fixes as well.
1409 * XmlSerializationWriter.cs: Fixed warning.
1411 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1413 * SerializationCodeGenerator.cs: Yet another generation fix.
1415 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1417 * SerializationCodeGenerator.cs: Fixed generation of enum literals.
1419 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1421 * XmlReflectionMember.cs: Added DeclaringType member.
1422 * XmlReflectionImporter.cs: When importing fields that belong to a
1423 base class, use the xml namespace of the base map for the member.
1424 This fixes bug #70309.
1426 2004-11-30 Lluis Sanchez Gual <lluis@novell.com>
1428 * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
1429 compilation warnings.
1431 2004-11-24 Lluis Sanchez Gual <lluis@novell.com>
1433 * SerializationSource.cs: Made SerializationSource abstract, and
1434 renamed Equals to BaseEquals to avoid missing GetHashCode warning
1435 (it does not really make sense in this case).
1436 * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
1437 XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1438 XmlSerializationReader.cs: Fixed warnings.
1440 2004-10-19 Atsushi Enomoto <atsushi@ximian.com>
1442 * XmlSerializationWriter.cs : When namespace is an empty string,
1443 XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
1446 2004-10-01 Lluis Sanchez Gual <lluis@novell.com>
1448 * MapCodeGenerator.cs: When the Object type is exported, export all
1449 derived maps. This was done in IncludeMetadata, but this method is
1450 not called by the xsd tool.
1451 * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
1452 attribute for primitive types and arrays.
1453 * XmlSchemaImporter.cs: Only export all object-derived maps if the
1454 Object type is explicitly referenced by an element.
1455 * XmlSerializationWriter.cs: Minor fix.
1457 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
1459 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
1460 This fixes bug #66877.
1462 2004-09-21 Lluis Sanchez Gual <lluis@novell.com>
1464 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1465 when reading a primitive value in encoded format using
1466 ReadReferencingElement, provide the type name and namespace
1467 since the xsi type may not be present in the xml element. This
1470 2004-09-15 Lluis Sanchez Gual <lluis@novell.com>
1472 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
1473 ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
1474 * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
1475 ImportIncludedTypes to the end, to make sure that the current map has all
1476 needed data before derived maps are constructed.
1477 * XmlSchemaExporter.cs: Generate the base class of simple types that are
1478 not primitive types. Set the correct value for IsMixed in extended types.
1479 * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
1480 the base class of a simple type doesn't need to be a xsd type.
1481 All those patches fix bug #65654.
1483 2004-09-03 Lluis Sanchez Gual <lluis@novell.com>
1485 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
1486 Normalization==true by default.
1488 2004-09-02 Lluis Sanchez Gual <lluis@novell.com>
1490 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
1491 In CheckSerializableType, add the option of ignoring types with private
1492 constructors. Some kind of lists can be deserialized
1493 even if the constructor is private. See bug #61464.
1494 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1495 Before creating a list, check that it has a public constructor.
1496 * TypeData.cs: Added HasPublicConstructor property.
1498 2004-09-01 Lluis Sanchez Gual <lluis@novell.com>
1500 * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
1501 value list serialization.
1502 * XmlSchemaImporter.cs: Added some null checks.
1504 2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
1506 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1507 When deserializing an encoded method response, assign to the return value
1508 the first element of the message, whatever it is. The return type doesn't
1509 need to be Object, it seems to be true for all return types.
1511 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
1513 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
1514 no need to add it after the call.
1515 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
1517 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
1519 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
1520 * ImportContext.cs: Implemented.
1521 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
1522 options for 2.0. Implemented support for generating properties instead of
1524 * XmlSchemaImporter.cs: Added support for sharing types.
1526 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
1528 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
1529 xsd type is not part of the last schema specification, but the google api
1530 uses it and ms.net accepts it.
1532 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
1534 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
1535 Thanks to Juan C. Olivares.
1537 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
1539 * CodeExporter.cs: Added private constructor.
1540 * CodeGenerationOptions.cs: Set the correct enum values.
1541 * CodeIdentifier.cs: Added private constructor.
1542 * SchemaImporter.cs: Added internal constructor.
1543 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
1544 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
1545 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
1546 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
1547 * XmlSerializationReader.cs: Added missing setter for DecodeName.
1549 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1551 * XmlSerializer.cs: Fix fix.
1553 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1555 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
1556 * ReflectionHelper.cs: New method for generating map keys.
1557 * SerializationCodeGenerator.cs: Added support for generating the serializer
1558 contract class, needed for 2.0.
1559 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
1561 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
1562 as Type[]. Added check that makes sure that enums being serialized are
1564 * XmlMapping.cs: Added internal GetKey method.
1565 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
1566 Added first bits to support loading of serializers from pre-generated
1568 * XmlSerializerFactory.cs: Mostly implemeted.
1570 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1572 * CodeIdentifier.cs: Removed constructor for NET_2_0.
1573 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
1574 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
1575 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
1576 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
1577 XmlSerializerNamespaces.cs: Added 2.0 stubs.
1578 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
1579 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
1580 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
1581 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
1582 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
1583 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
1584 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
1586 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1588 * SerializationCodeGenerator.cs: Generate check that the object being
1589 serialized has a known type. Little cast fix.
1590 * XmlCustomFormatter.cs: Little fix in Single conversion.
1592 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
1594 * TypeData.cs: In the constructor, set the correct xml type name if the
1595 type is an array (for example, instead of StringCollection, use
1598 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
1600 * ReflectionHelper.cs: Correctly detect private types.
1601 * XmlCodeExporter.cs: Implemented missing method.
1602 * XmlSchemaImporter.cs: Allow import of root primitive types.
1604 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
1606 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
1607 SerializationCodeGenerator.cs, SerializationSource.cs,
1608 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
1609 XmlSerializationReader.cs, XmlSerializationWriter.cs,
1610 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
1611 : Globalization fixes.
1612 In XmlCustomFormatter.GenerateToXmlString() time was not
1613 generated correctly.
1614 Replaced all CRLF XmlAttributeOverrides.cs into LF.
1616 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
1618 * XmlSerializationWriter.cs: changed signature of protected method
1619 FromByteArrayBase64 to match MS.NET
1621 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1623 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
1624 attributes that MS.NET generates.
1625 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
1627 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
1628 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
1629 MS.NET member ordering. Patch by David Taylor.
1630 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
1631 flag. The generated enum must also not be included in the schema.
1632 * XmlTypeMapMember.cs: Added ignore flag.
1633 * XmlTypeMapping.cs: The AttributeMembers property now returns the
1634 attributes in the correct order.
1636 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
1638 * XmlSerializationReader.cs: added missing protected members
1639 to fix API compatibility with MS.NET
1640 * XmlSerializationWriter.cs: added missing protected members
1641 to fix API compatibility with MS.NET
1643 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
1645 * XmlSerializationReader.cs: Support schamea instance namespaces other than
1646 the 2001 one when reading the xsi type.
1647 * MapCodeGenerator.cs: Take into account that the root namespace and element
1648 name may have changed from one export to another of the same type. In
1649 this case the class attributes need to be regenerated.
1650 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
1651 not ElementName. Idem for namespace.
1652 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
1653 * XmlRootAttribute.cs: Default value for nullable is true.
1654 * XmlSchemaImporter.cs: The root name for a class may change in some
1655 scenarios (for example, when the type is initially exported as part of
1656 another type and later exported as a root type).
1657 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
1658 found using the standard namespace, try getting the type using
1659 the 2000/10 and 1999 namespaces.
1660 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
1662 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1664 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1665 In encoded format, primitive types can be null. Read them using
1666 ReadReferencingElement, that already checks for the null tag.
1668 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
1670 * XmlSerializationReader.cs: Check for empty element when reading an array
1671 element. This fixes bug #59003. Thanks Atsushi!
1673 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1675 * XmlSerializationWriter.cs: Implemented some missing methods.
1676 In .NET 1.0, encoded null elements use the attribute null="1", while in
1677 1.1 the attribute is nil="true".
1678 * XmlTypeMapping.cs: Little fix for nested classes.
1680 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1682 * XmlReflectionImporter.cs: Don't reset the internal tables at every
1683 ImportMembersMapping call. This fixes bug #58112. The problem is that
1684 it imported two different arrays (only different in the array item
1685 namespace) with the same name. Not sure what was this Reset needed for,
1686 everyting seems to work without it.
1688 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1690 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1691 When deserializing an encoded method response, if the return type of the
1692 method is Object, assign to it the first element of the message, whatever
1694 * XmlSerializationReader.cs:
1695 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
1696 the imported member.
1697 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
1698 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
1699 a given xsi type is not found. Just read it as primitive type.
1700 * XmlTypeMapMember.cs: Added IsReturnValue property.
1701 * XmlTypeMapping.cs: Added ReturnMember property.
1702 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
1704 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1706 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1707 When reading an object using the typeof(object) map, an emty xsi:type
1708 means that it has to read the contents into an XmlNode[].
1709 * TypeData.cs: Return the correct full name for inner classes.
1710 * XmlSchemaImporter.cs: Improved detection of types that represent
1711 "anyType", and must be mapped to XmlElement, XmlNode or Object.
1712 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1713 the correct namespace.
1714 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1717 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1719 * XmlSerializationWriter.cs : It do not have to handle schema
1720 namespace as special one.
1722 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1724 * XmlSerializationReaderInterpreter.cs: Removed the check for null
1725 AttributeMembers collection. Even if there are no attribute members,
1726 attributes need to be read.
1728 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1730 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1731 the IXmlSerializable object may not read all the EndElement it read.
1732 This fixes bug #57413.
1734 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1736 * XmlSerializer.cs: Enable serializer generation by default.
1738 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
1740 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1741 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1742 turns out that it is an array, import it again as array. This fixes
1745 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1747 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1748 don't use type name for array types, since we can have different classes
1749 that represent the same array type (for example StringCollection and
1752 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
1754 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1755 not present in MS.NET.
1756 * XmlSerializationWriter.cs: Improved error message.
1758 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1760 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
1761 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1762 Support deserialization of members of type XmlDocument. This fixes #56169.
1764 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1766 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1767 Use a special method to generate default values, since default enum values
1768 will come as integers, so a special cast is needed.
1769 * XmlSerializationReaderInterpreter.cs,
1770 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1771 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
1772 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1773 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
1774 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1775 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1776 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1777 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1778 of SerializationSource. It can't keep and use the XmlAttributeOverride
1779 instances as key values, since those instances can be modified after the
1780 xml map has been generated. Now, SerializationSource generates a unique
1781 string hash from XmlAttributeOverride and uses it for comparisons.
1783 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
1785 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
1786 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1787 the adequate type. Set the default value of members that do have a default
1788 value. Other minor fixes.
1789 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1790 from typeof(object) map, even those that have another base class.
1791 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1792 It must serialize the char as number, not as character.
1793 * XmlSerializationReaderInterpreter.cs: Set the default value of members
1794 that do have a default value.
1795 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1796 of members that have a default value.
1798 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
1800 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1801 This fixes bug #55547.
1803 2004-03-13 David Sheldon <dave-mono@earth.li>
1805 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1808 2004-03-13 David Sheldon <dave-mono@earth.li>
1810 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
1811 fixes test case that tests for this directly.
1812 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1813 it. Treat it as null.
1815 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
1817 * CodeIdentifier.cs: Limit the length of identifiers.
1818 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1819 Generate types using GetDomType, so if the type is an array, it creates
1820 the correct combination of types.
1821 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1822 an enum, if the string is empty and the enum has [Flags], then return 0
1823 as value. This fixes bug #55509.
1824 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1825 are not supported. Another check: a simple type cannot be enum if it does
1826 not have any enum facet.
1827 And another fix: use string as default type for attribtues.
1828 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
1829 other schemas. An imported schema would not be in the table, but its
1830 elements (although from another namespace) would be in the schema that
1831 imported it. So, we need know to check for every schema in the table.
1832 * XmlSerializer.cs: Added environment variable to help debugging code
1835 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
1837 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1838 of XmlInclude attributes needed for the service class.
1839 IsMapExported: Removed check for object type, since it can now be exported.
1840 SetMapExported: Use the type name as key, since different importers may
1841 be used to create a map for the same type.
1842 GenerateClassInclude: Updated signature.
1843 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1844 GenerateClassInclude(): Updated signature.
1845 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1846 Implemented IncludeTypes.
1847 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1848 GenerateClassInclude(): Updated signature.
1849 * XmlMemberMapping.cs: Added missing property.
1850 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1851 Implemented IncludeTypes().
1852 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1853 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1854 Now, it does a regular import and then assign the required base class to
1855 the imported map. In this way it is possible to assign a base type for a
1856 map that was previously imported without a base type.
1857 * XmlTypeMapping.cs: Added internal method SetRoot().
1859 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
1861 * SerializationCodeGenerator.cs: Added support for generation of readers
1862 and writers for several maps in a single class. Added support for
1863 XmlMemberMapping. Fixed generation of serializers that use encoded format.
1864 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1865 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
1866 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1867 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1868 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1869 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1870 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1871 Added InternalEquals method.
1872 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1873 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1874 * XmlCustomFormatter.cs: Fixed little bug.
1875 * XmlMapping.cs: Added Source property. This a global identifier of the map.
1876 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1877 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1879 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1880 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1882 * XmlSerializer.cs: Added support for generation of serializers.
1884 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
1886 * SerializationCodeGenerator.cs,
1887 SerializationCodeGeneratorConfiguration.cs:
1888 Added <namespaceImports> feature ("using XXX;" generation) support.
1890 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
1892 * XmlSerializationWriter.cs: When writing the root element, use a prefix
1893 if the namespace of the element is defined in the list of namespaces
1894 provided to the XmlSerializer. This fixes bug #54427.
1896 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
1898 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1899 Those are basically methods to add custom attributes to element and
1901 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1902 * XmlCodeExporter.cs: Better support for custom attribute generation for
1904 * XmlCustomFormatter.cs: Added null check.
1905 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
1906 attributes that are required.
1907 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1910 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
1912 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1913 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1914 string, not string[].
1915 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1916 for array parameters. In general, improved generation of schema Form
1918 * XmlMemberMapping.cs: Added Form property.
1919 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1920 simple types. Added a check for this.
1921 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1922 Form. The key used to determine if a map has been already generated must
1923 include the XmlType, since there can be two xml types with the same CLR
1924 type and namespace (for example, they may differ in the Form property).
1925 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1926 also return the corresponding map. There can be two maps that have the
1927 same TypeData, so given a TypeData is not always possible to get the
1928 correct corresponding map (for example two arrays that only differ in the
1930 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1933 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1935 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1936 normalizedString schema type.
1938 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1940 * XmlReflectionImporter.cs: Get the class members using the right order.
1941 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1942 A member with the Any attribute can also contain text. Support this.
1943 * XmlTypeMapMemberElement.cs: Added CanBeText property.
1945 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1947 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1950 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1952 * MapCodeGenerator.cs: Added helper method for generating an attribute
1953 parameter of type enum.
1954 * XmlAttributeAttribute.cs: little fix.
1955 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1956 for method parameters.
1957 * XmlMemberMapping.cs: Improved support for members of type "any".
1958 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1959 If the namespace is explicitly specified, then the form should be
1960 qualified. Also fixed issues with the namespace assigned to attributes.
1961 This should fix bug #53384.
1962 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1963 methods that return values of type "any". Changed the methods
1964 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1965 element, return it, and the caller must add it to the collection.
1966 Other fixes in attribute generation.
1967 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1968 generate the AnyType mapping from the type described in the schema.
1969 Small fixes regarding IsMixed property of complex types (it means that
1970 the type can contain text, so the XmlTextAttribute must be generated).
1971 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1972 be only used in the bare+encoded format.
1974 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1976 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1977 to be derived types of the one that has the attribute.
1978 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1979 map to the parent map. This fixes #53246.
1980 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1982 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
1984 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
1985 do not check the root element name, since it can be any name. This fixes
1988 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1990 * XmlReflectionImporter.cs: Throw exception if a value type member has the
1991 IsNullable=true flag. This fixes bug #52906.
1993 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1995 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
1996 so a 'specified' member has always to be generated.
1997 * TypeData.cs: Fixed check for value type.
1999 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
2001 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
2002 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
2003 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
2004 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
2005 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
2006 Added support for value specifiers members. This fixes bug #53024.
2008 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
2010 * XmlSchemaExporter.cs: Don't create referenced element if it has already
2011 been created (two types could be referencing the same schema element).
2013 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
2015 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
2016 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
2017 arrays. This fixes bug #53018.
2019 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
2021 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
2022 default namespace for members.
2023 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
2024 * XmlReflectionImporter.cs: Fixed the assignment of root and type
2026 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
2027 default namespace for members. In AddSchemaElement, if the element is
2028 a root element never use a "ref" attribute.
2029 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
2031 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
2033 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2034 XmlTypeMapping.cs: more namespace fixes.
2036 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
2038 * XmlReflectionImporter.cs: type namespace must never be used as root
2039 namespace. This fixes bug #52772.
2041 2004-01-08 Nick Drochak <ndrochak@ieee.org>
2043 * XmlSchemaImporter.cs: Removed unused variable.
2045 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
2047 * XmlReflectionImporter.cs: Ignore Namespace property when applying
2048 the [XmlType] attribute to an enum. This fixes bug #52607.
2050 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
2052 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
2053 option that allow serialization of private types.
2055 2003-12-18 Eran Domb <erand@mainsoft.com>
2057 * TypeTranslator.cs : Change primtive types map.
2059 2003-12-18 Eran Domb <erand@mainsoft.com>
2061 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
2064 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2066 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
2067 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
2068 primitive types are not the same as XML primitive types. Patch proposed
2069 by Mordechai Taitelman. This fixes bug #52228.
2070 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
2072 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2074 * XmlReflectionImporter.cs: Little fix.
2076 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
2078 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
2079 need to be derived types of the includer. This fixes bug #52152.
2080 Added null check for Name property of XmlEnumAttribute. This fixes
2082 * XmlSerializationReader.cs: Fixed some error messages.
2083 * XmlSerializationReaderInterpreter.cs: Check that the root element has
2084 the correct local name and namespace. This fixes bug #52038.
2085 Throw exception if enum value can't be parsed.
2086 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
2089 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
2091 * MapCodeGenerator.cs: Added support for [Flags] enum.
2092 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
2093 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
2094 encoded array type. Added support for enums with [Flags].
2095 In encoded format, unqualified types are schema types by default.
2097 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
2099 * XmlCodeExporter.cs: Little fix.
2100 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
2101 same name have the same type.
2102 * XmlSchemaImporter.cs: Support xml:lang.
2103 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
2104 fixed wrong namespace for the arrayType attribute.
2106 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
2108 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
2109 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2110 When using rpc format on a web service, members don't need to have any
2111 specific namespace. Added a flag for turning namespace check on/off.
2113 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
2115 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
2116 delayedListFixups.Count cannot be used because elementes from
2117 delayedListFixups are deleted sometimes.
2119 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
2121 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
2122 This fixes bug #51060.
2124 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
2126 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
2127 If type is Enum the code use type.GetElememtType() instead of
2128 Enum.GetUnderlyingType().
2130 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
2132 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
2133 Removed several TODOs already done.
2135 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
2137 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
2140 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
2142 * ReflectionHelper.cs: In CheckSerializableType() check that the type
2144 * XmlSerializationWriter.cs: Added check for circular references.
2145 This fixes bug #49879.
2147 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
2149 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
2150 can't be serialized. This fixes bug #49878.
2151 * TypeData.cs: In ListItemType check that the collection has a valid
2152 Add method and report an error if not.
2153 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
2154 reflecting a collection.
2156 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
2158 * SoapReflectionImporter.cs: Support element references for enum values in
2159 encoding format. This fixes bug #49568.
2160 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
2161 the name and namespace of the wrapper element. MS.NET doesn't do it.
2162 This fixes bug #49729.
2164 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
2166 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
2168 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
2170 * MapCodeGenerator.cs: New file. Moved here all code that is common
2171 between XmlCodeExporter and SoapCodeExporter.
2172 * SoapCodeExporter.cs: Implemented.
2173 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
2174 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
2175 encoded bare parameter list.
2176 * XmlTypeMapping.cs: Added method for getting member element by index.
2178 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2180 * XmlSchemas.cs : Implemented IsDataSet().
2182 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
2184 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
2185 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
2186 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
2187 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
2188 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
2189 and whether it uses encoded or literal format.
2190 * XmlSchemaExporter.cs: Little fixes.
2192 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
2194 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
2195 need to be of type SOAP-ENC:Array, it can be a restriction of it.
2197 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
2199 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
2200 Read only properties are only serialized if the type is an array.
2202 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
2204 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
2205 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
2206 is not needed for value types.
2208 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
2210 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
2211 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
2213 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
2215 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
2217 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
2219 * XmlSchemaExporter.cs: Keep track of elements being exported.
2220 * XmlSchemas.cs: Removed unneeded catch.
2222 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
2224 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
2225 Fixed handling of members with XmlTextAttribute that are arrays.
2226 * TypeData.cs: IsComplexType now returns true for XmlNode.
2227 * XmlSerializer.cs: Added check for null mapping in FromMappings.
2228 * XmlTypeMapping.cs: Added helper method FindTextElement.
2230 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
2232 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
2233 Added support for IncludeInSchema flag.
2234 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2235 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
2236 methods. Added support for IncludeInSchema flag.
2237 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2238 Added support for IncludeInSchema flag.
2239 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
2240 * XmlTypeMapping.cs: Added IncludeInSchema property.
2242 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
2244 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
2246 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
2248 * XmlCustomFormatter.cs: added support for additional string types in
2249 GenerateToXmlString().
2250 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
2253 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
2255 * SoapSchemaImporter.cs: implemented.
2256 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
2257 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
2258 * XmlSchemaImporter.cs: more support for encoded format.
2260 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
2262 * SerializationCodeGenerator.cs: Minor fixes.
2263 * SoapReflectionImporter.cs: More fixes.
2264 * SoapSchemaExporter.cs: implemented.
2265 * SoapSchemaImporter.cs: Initial implementation.
2266 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
2268 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
2269 * XmlMemberMapping.cs: Minor fixes.
2270 * XmlMembersMapping.cs: added some convenient constructors.
2271 * XmlSchemaExporter.cs: Added support for encoded format.
2272 * XmlSchemaImporter.cs: Added support for encoded format.
2273 * XmlSerializationReader.cs: changed some string literals by constants.
2274 Implemented ParseWsdlArrayType.
2275 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
2277 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
2278 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
2279 WriteAttribute to write custom attributes.
2280 * XmlSerializer.cs: added some namespace constants.
2281 * XmlTypeMapping.cs: added GetSchemaArrayName method.
2283 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
2285 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
2286 * XmlTypeMapMemberElement.cs: Little fix.
2287 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
2288 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
2290 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
2293 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
2295 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2296 * XmlMemberMapping.cs: Changed constructor.
2297 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2298 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
2299 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
2300 * XmlSerializationWriterInterpreter.cs: Changed visibility.
2302 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2304 * XmlSerializer.cs: Fix in Deserialize() method.
2306 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2308 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
2309 * XmlSchemas.cs: Find method: make sure the returned object belongs to
2311 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
2312 Add null checks for eventSource.
2313 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
2314 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
2315 namespece declarations. Virtual method WriteObject not needed any more.
2316 In WriteStartElement, write the provided namespaces.
2317 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
2318 Added GetTypeMap method, that returns the map for a given type. Added some
2319 virtual methods, so writer behavior can be extended at several places by
2321 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
2322 methods CreateReader and CreateWriter are not called unless no type or
2323 type mapping was provided in the constructor.
2325 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2327 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
2328 schema type it is importing is a class or an array. It will always
2331 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2333 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
2334 as text nodes. Support it.
2336 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2338 * CodeIdentifier.cs: Fixed MakeValid method.
2339 * TypeTranslator.cs: Added support for more primitive types. Added
2340 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
2342 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
2343 are different from the type ns and name.
2344 Generate class and field comments.
2345 Fixed default attribute generation. In elements with ref attribute, it has to be
2346 generated in the referred attribute.
2347 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
2348 Added suport for text nodes in members of type "any".
2349 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
2351 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
2352 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
2353 that have already been declared.
2354 WriteStartElement(): elements from schema namespace are always written with ns prefix.
2355 * XmlTypeMapMember.cs: Added documentation property.
2356 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
2357 represents a simple type.
2359 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2361 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
2363 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
2364 * TypeData.cs: Added property that returns a TypeData that represents an array of
2366 * TypeTranslator.cs: Added GetArrayName() method.
2367 Added TypeDatas for missing primitive types.
2368 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
2369 XmlRootAttribute. Added the namespace to all attributes being generated.
2370 Other fixes in the generation of code.
2371 * XmlReflectionImporter: store the namespace of the type in the maps.
2372 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
2373 class can generate text. Do not export inherited attributes of a class.
2374 Use the new root namespace stored in the map when generating the root element.
2375 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
2376 namespace is the default namespace.
2377 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
2378 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
2379 namespace instead of the map namespace (which can be different if the type
2380 has a XmlRoot element).
2381 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
2382 to System.DBNull.Value.
2383 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
2384 the collection if it has not yet been created.
2385 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
2386 of the type. It may be different from the namespace of the map if the type
2387 has a XmlRoot element. Also added IsSimpleType property.
2388 In ClassMap, added AllMembers property.
2390 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
2392 * TypeData.cs: Added new constructor and variables to allow the creation of
2393 a TypeData without a Type. Added ListItemTypeData property.
2394 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
2395 array of arrays. Added also a property to get the nested array map.
2396 * XmlCodeExporter.cs: First implementation of code exporter.
2398 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2400 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
2401 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
2404 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
2406 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
2407 maps with the same name and namespace. To avoid this, maps must be registered
2408 using the real map namespace, not the default namespace (the namespace can
2409 change if the type has a XmlType or SoapType attribute).
2410 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
2411 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
2413 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
2416 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2418 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
2419 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
2420 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
2421 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
2422 * XmlSchemaExporter.cs: Implemented.
2423 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
2424 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
2425 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
2426 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
2427 GetStringValue() returns null if the value is null, instead of empty string.
2428 (attributes with null values are not written).
2429 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
2430 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
2431 DataType value can is now in TypeData.
2432 * XmlTypeMapMemberElement.cs: Small fix.
2433 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
2435 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2437 * AssemblyInfo.cs: Removed
2439 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
2441 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
2442 namespace declarations if they have already been defined.
2444 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
2446 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
2447 for adding elements to a list.
2449 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
2451 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
2452 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
2455 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2457 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
2458 Added support for serialization of enums with the Flags attribute.
2460 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2462 * SoapReflectionImporter.cs: Fix support for DataType in class members.
2463 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
2464 can have other names.
2465 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
2466 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
2467 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2468 Fix support for DataType in class members.
2469 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
2470 Added support for array of primitive types in attributes.
2472 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
2474 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
2475 be overlodaded, so it is not good for this.
2476 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
2478 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
2480 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
2481 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
2482 array if the namespace is not specified in XmlArrayItemAttribute.
2484 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
2486 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
2487 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
2488 is not specified in the xsi attribute.
2489 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
2490 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
2492 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2494 * XmlSerializationReader.cs : Synchronous fix with
2495 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
2496 * added XmlTypeMapMemberNamespace.cs.
2497 * XmlReflectionImporter,
2498 XmlSerializationReaderInterpreter.cs,
2499 XmlSerializationWriterInterpreter.cs,
2500 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
2502 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2504 * XmlSerializationWriter.cs : some QName handling fix.
2506 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2508 * XmlSerializationReader.cs: Fixed error message.
2509 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
2511 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
2513 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2515 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
2516 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
2517 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
2518 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
2520 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2522 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
2523 * SoapReflectionImporter.cs: tiny fix.
2524 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
2525 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
2526 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
2527 * XmlSerializationWriter.cs: implemented WriteSerializable ().
2529 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
2531 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
2532 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
2533 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
2534 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
2535 * XmlSerializationWriter.cs: small fix.
2537 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2539 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
2540 Added support for DefaultValueAttribute.
2541 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
2542 the value of an enum.
2543 * XmlTypeMapMember.cs: Added DefaultValue attribute.
2544 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
2547 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2549 * XmlSerializationReader.cs: Minor fix.
2551 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2553 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
2555 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
2557 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2558 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
2559 * XmlCustomFormatter.cs: small fixes.
2560 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2561 * XmlSerializationWriter.cs: Implemented TopLevelElement().
2562 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
2563 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
2564 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
2567 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
2569 * SoapReflectionImporter.cs: implemented.
2570 * TypeTranslator.cs: added IsPrimitive() method
2571 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
2572 used by that one. Also added Format property, that can be literal or encoded.
2573 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
2574 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
2575 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
2576 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
2577 * XmlSerializationWriter.cs: added support for encoded format.
2578 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
2579 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
2580 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
2581 and a map is needed for them).
2582 * XmlTypeMapMemberElement.cs: small fixes.
2583 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
2584 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
2586 2003-06-01 Miguel de Icaza <miguel@ximian.com>
2588 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
2589 UnknownElement): Add line number information.
2591 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
2593 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
2594 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2595 * XmlMapping.cs: Added internal property.
2596 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
2597 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
2598 * XmlReflectionMember.cs: XmlAttributes are now created by default
2599 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
2600 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
2601 Implemented support for XmlMembersMapping.
2602 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
2604 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
2606 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
2607 from xml type to clr type.
2608 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2609 * XmlReflectionMember.cs: Added default constructor.
2610 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
2611 * XmlSerializationWriter.cs: Several fixes.
2612 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2613 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
2614 Added support for enums. Added support for XmlElement and XmlNode.
2615 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
2617 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
2619 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
2620 * XmlCustomFormatter.cs: Added formatting methods.
2621 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
2622 * XmlReflectionMember.cs: Added new constructor.
2623 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
2624 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
2625 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
2626 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
2628 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2630 * Added TypeTableEntry.cs.
2631 * TypeTranslator.cs : changed for non-static use.
2632 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
2633 and GetElementName(). Bugfix so that if any XmlElementAttribute
2634 exists after non-typed XmlElementAttribute then it might be ignored.
2635 Added GetElementIsNullable().
2636 * XmlSerializer.cs :
2637 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
2638 Object memberObj[4].
2639 Deserialize() now uses XmlReader.Depth to check its depth.
2640 Serialize() for non-XmlReader arguments now always write xmldecl.
2641 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
2642 and handles XmlQualifiedName.
2643 Separated SerializeType () from Serialize().
2644 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
2645 IsPropertyTypeSerializable() from SerializeMembers().
2646 SerializeMembers() is now capable of null value and actual type,
2647 which should be included by XmlIncludeAttribute and so on.
2648 Renamed SerializeArray() to SerializeArrayContent(), and added
2649 SerializeCollectionContent().
2650 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
2651 FillTypeTable() is now aware of XmlInclude attributes.
2652 FillEnum() should not have different type table content from others.
2654 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2656 * XmlSerializer.cs : this time, only replaced spaces with tabs.
2658 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2660 * ChangeLog : Added missing ChangeLog of 2003-04-25.
2661 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
2662 separators. Added experimental method ToEnum().
2663 * XmlSerializationReader.cs : unconfirmed implementation of
2664 ReadSerializable() and ToEnum().
2665 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
2666 is null then no output will be written.
2667 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
2668 to use custom formatted name.
2670 2003-05-02 Miguel de Icaza <miguel@ximian.com>
2672 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
2673 had a void return value.
2675 2003-04-26 Miguel de Icaza <miguel@ximian.com>
2677 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
2678 `AllowMultiple' flags.
2680 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2682 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
2683 * XmlReflectionImporter.cs : patch by Erik LeBel.
2684 Now uses XmlRootAttribute to determine element name.
2686 2003-03-17 Miguel de Icaza <miguel@ximian.com>
2688 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
2691 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2693 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
2694 XmlWriter argument should call WriteEndDocument.
2696 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2698 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
2699 not WriteState.Start, and never call WriteEndDocument().
2701 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
2703 * XmlCustomFormatter.cs: Correct signature, Implement
2706 * XmlSerializationWriter.cs: Fix prototype.
2708 * XmlSerializer.cs: Implements Deserialize().
2710 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2712 * XmlSerializer.cs : serializing now works for interface member.
2714 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2716 * XmlSerializer.cs : some fix handling xml node object more correct.
2718 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
2719 * XmlSerializer.cs: Array serialization for 1D arrays works
2720 * TypeTranslator: Added for translations`
2722 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2724 * XmlCustomFormatter.cs: finished.
2725 * XmlSerializationReader.cs: implemented some more methods.
2727 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2729 * XmlSerializationReader.cs: implemented a few methods.
2731 * XmlAnyElementAttribute.cs:
2732 * XmlArrayAttribute.cs:
2733 * XmlChoiceIdentifierAttribute.cs:
2734 * XmlElementAttribute.cs:
2735 * XmlMemberMapping.cs:
2736 * XmlMembersMapping.cs: class status based fixes.
2738 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2740 * CodeIdentifiers.cs:
2741 * XmlSchemaExporter.cs:
2742 * XmlSchemaImporter.cs:
2744 * XmlSerializationWriteCallback.cs:
2745 * XmlSerializationWriter.cs:
2747 * XmlSerializerNamespaces.cs: some class status based fixed and
2748 implemented a couple of methods.
2750 * SoapSchemaExporter.cs: stubbed out.
2752 2002-08-24 Tim Coleman <tim@timcoleman.com>
2753 * SoapCodeExporter.cs:
2754 Fix return value of ExportTypeMapping.
2755 * XmlCustomFormatter.cs:
2756 Change methods to be internal instead of public.
2757 * XmlSerializationWriter.cs:
2758 Modify GetPrimitiveTypeName to build on linux.
2759 Modify GetQualifiedName to return an incrementing prefix
2760 instead of the same one all the time (still need to manage
2762 Modify WriteElementString to only do special stuff is XsiType
2764 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2765 an XmlQualifiedName.
2767 2002-08-22 Tim Coleman <tim@timcoleman.com>
2768 * XmlSerializationReader.cs:
2770 * XmlSerializationWriter.cs:
2772 * XmlCustomFormatter.cs:
2773 Implemented this class.
2775 2002-08-20 Tim Coleman <tim@timcoleman.com>
2776 * XmlSerializationWriter.cs:
2777 Some implementation.
2779 2002-08-19 Tim Coleman <tim@timcoleman.com>
2782 * XmlSerializationWriter.cs:
2785 2002-08-14 Tim Coleman <tim@timcoleman.com>
2787 More reformatting of source code so I can
2788 better understand what it does.
2790 2002-08-06 Tim Coleman <tim@timcoleman.com>
2792 Some reformatting of code for readability.
2793 Modify to correctly serialize ICollection objects
2794 such as the BindingCollection of a ServiceDescription
2797 2002-08-03 Tim Coleman <tim@timcoleman.com>
2799 Changed Implements() to check based on name rather
2800 than FullName. FullName was never working correctly.
2802 2002-07-26 Tim Coleman <tim@timcoleman.com>
2804 The constructor now looks for an XmlRootAttribute attribute
2805 if one is not passed in. Various changes to make it emit
2806 proper XML, such as handling an element without a namespace
2807 prefix, and using WriteEndDocument where it should be.
2809 2002-07-24 Tim Coleman <tim@timcoleman.com>
2810 * CodeIdentifier.cs:
2811 * IXmlSerializable.cs:
2812 * XmlSerializationCollectionFixupCallback.cs:
2813 * XmlSerializationFixupCallback.cs:
2814 * XmlSerializationReadCallback.cs:
2815 * XmlSerializationReader.cs:
2816 * XmlSerializationWriteCallback.cs:
2819 * CodeIdentifiers.cs:
2820 Implement some of these classes
2821 * XmlCodeExporter.cs:
2822 Fix return type of a function
2824 2002-07-24 Tim Coleman <tim@timcoleman.com>
2825 * SoapReflectionImporter.cs:
2826 New class added to build
2827 System.Web.Services.Description.ServiceDescription.cs
2829 2002-07-22 Tim Coleman <tim@timcoleman.com>
2830 * CodeIdentifiers.cs:
2831 * SoapCodeExporter.cs:
2832 * SoapSchemaExporter.cs:
2833 * XmlCodeExporter.cs:
2834 * XmlMemberMapping.cs:
2835 * XmlMembersMapping.cs:
2836 * XmlReflectionImporter.cs:
2837 * XmlReflectionMember.cs:
2838 * XmlSchemaExporter.cs:
2839 * XmlSchemaImporter.cs:
2841 New stubbs added to aid in the linux build of
2842 System.Web.Services.
2844 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
2846 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2848 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2850 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
2852 * XmlSeriailizer: Updated Serialize() method.
2854 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2855 * XmlSerializer: Serialize() method Partially Implemented.
2857 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2859 * Soap & XmlOverrides: Implemented using TypeMember as key with
2860 suggestions from Rafael.