1 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
4 byte[] (processed as primitive SchemaType). Fixed bug #81880.
6 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlSchemaProviderAttribute.cs : added IsAny.
10 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
12 * XmlSerializationReader.cs :
13 implemented ReaderCount and CheckReaderCount().
15 2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
17 * MapCodeGenerator.cs : avoid possible duplicates in generated field
18 names. Fixed bug #82078.
20 2007-08-10 Atsushi Enomoto <atsushi@ximian.com>
22 * XmlSerializer.cs : use WhitespaceHandling.Significant when creating
23 XmlTextReader. Fixed bug #82372. No tests should be added for it.
25 2007-07-29 Konstantin Triger <kostat@mainsoft.com>
27 * XmlSerializationWriter.cs: do not output xml declaration while
28 serializing XmlDocument.
30 2007-07-26 Atsushi Enomoto <atsushi@ximian.com>
32 * XmlSerializationWriterInterpreter.cs : looks like XmlNode[]
33 serialization is a complicated mess. bug #81539.
35 2007-07-23 Vladimir Krasnov <vladimirk@mainsoft.com>
37 * XmlTypeMapping.cs: fixed XmlSerializableMapping ctor, corrected when
38 qualified name is empty
39 * XmlSchemaExporter.cs: fixed SetSchemaXmlSerializableType when schema
40 provider method returns null schema
42 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
44 * CodeIdentifier.cs: Default ctor is public on 1.0 profile too.
45 * CodeIdentifiers.cs: Ctor taking bool is 2.0 only.
47 2007-06-27 Konstantin Triger <kostat@mainsoft.com>
49 * XmlTypeMapping.cs, XmlSchemaExporter.cs: add partial support for
50 XmlSchemaProviderAttribute.
52 2007-05-27 Konstantin Triger <kostat@mainsoft.com>
55 1. Fix the construction of TypeData for nullable types: it should not
56 be primitive since the primitive were loaded in static ctor.
57 2. Rename primitiveNullableTypes -> nullableTypes to reflect
58 correctly the field purpose.
59 3. Unify synchronization with synchronized hashtable.
61 2007-05-24 Konstantin Triger <kostat@mainsoft.com>
63 * TypeTranslator.cs: fix typo: set IsNullable flag for primitiveNullableTypes.
65 2007-05-14 Adar Wesley <adarw@mainsoft.com>
67 * XmlSchemaExporter.cs: added missing overload for method ExportAnyType.
69 * XmlSchemas.cs: added missing methods Add, AddReference, Contains,
72 * XmlSerializationReader.cs: added missing method AddReaderCount.
74 * XmlSerializationWriter.cs: added missing overload WriteStartElement.
76 * XmlSerializer.cs: added missing overload Serialize.
78 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
80 * XmlCustomFormatter.cs : fix GenerateToXmlString() as well.
82 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
84 * XmlCustomFormatter.cs :
85 in 2.0, use F instead of f for dateTime formatting.
87 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
89 * XmlSchemas.cs : 1.1-only duplicate check does not seem to be
90 required. This is also a workaround for 1.x ws proxy generation.
92 2007-04-24 Atsushi Enomoto <atsushi@ximian.com>
94 * XmlCustomFormatter.cs : ditto for reader method generation.
95 * SerializationCodeGenerator.cs : for generic nullable values it
96 needs to store ReadNullableString() result to a temporary variable.
98 2007-04-23 Atsushi Enomoto <atsushi@ximian.com>
100 * TypeData.cs, XmlCustomFormatter.cs : generic nullable values did
101 not fit with non-nullable formatting. Fixed #80759 regression.
103 2007-04-20 Atsushi Enomoto <atsushi@ximian.com>
105 * XmlTypeMapping.cs, ReflectionHelper.cs,
106 XmlSerializationReaderInterpreter.cs, SerializationCodeGenerator.cs:
107 support instantiation by private constructor.
109 2007-04-19 Konstantin Triger <kostat@mainsoft.com>
111 * XmlSchemaExporter.cs: do not export twice simple types.
113 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
115 * TypeData.cs : forgot NET_2_0.
117 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
119 * TypeData.cs : in get_ListItemTypeData(), check generic ICollection
120 as well as non-generic one. Fixed bug #81341. Though the type check
121 looks like an aggregation of bugfix hacks and there should be some
122 kind of sane refactoring, to throw best-suited errors.
124 2007-02-28 Atsushi Enomoto <atsushi@ximian.com>
126 * SerializationCodeGenerator.cs : fix wrong name comparison:
127 Name->LocalName. Add hacky TARGET_JVM support (hope it is harmless).
129 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
131 * SerializationCodeGenerator.cs,
132 XmlSerializationReaderInterpreter.cs :
133 Handle attributes on non-empty elements as well. Fixed bug #80131.
135 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
137 * SerializationCodeGenerator.cs,
138 XmlSerializationReaderInterpreter.cs :
139 Handle empty root element.
140 Read out attribute parameters. To do that, split attribute
141 reader part from ReadMembers(), as it isn't invoked when the
144 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
146 * XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
148 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
150 * XmlReflectionImporter.cs : CanBeNull() should return true when the
151 argument is generic nullable value type.
153 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
155 * TypeData.cs, MapCodeGenerator.cs, XmlMemberMapping.cs,
156 TypeTranslator.cs : removed IsGenericNullable and added
157 set_IsNullable so that it could be simpler.
159 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
161 * SerializationCodeGenerator.cs, XmlMappingAccess.cs,
162 SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
165 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
167 * SerializationCodeGenerator.cs : hooks won't work unless they are
168 set. For WriteStartElement() it could simply embed the names.
170 2007-02-14 Atsushi Enomoto <atsushi@ximian.com>
172 * XmlTypeMapMember.cs : don't use readonly [Foo]Specified property
173 as nil-condition member. Fixed bug #80759.
175 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
177 * SoapReflectionImporter.cs : for primitive types, set predefined
178 namespaces, regardless of the actual specification.
180 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
182 * XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
184 * XmlSerializationWriterInterpreter.cs,
185 SerializationCodeGenerator.cs : so they have to be handled here.
187 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
189 * XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
190 when the name is null (almost no need to do this, but it is easier
191 to remove NotWorking from extraneous tests and let them hush than
194 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
196 * XmlSerializationWriter.cs : callbacks could be kept null.
198 2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
200 * XmlMemberMapping.cs : uhoh, there is a nasty trick to output
203 2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
205 * TypeData.cs : added get_IsGenericNullable.
206 * MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
207 the TypeData.IsGenericNullable.
208 Use GetDomType() instead of CodeTypeReference.ctor() to not lose
210 * XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
211 so that it won't XmlSchemaElement.IsNillable.
212 * TypeTranslator.cs :
213 Fixed wrong TypeData modification against non-nullable stuff.
214 Added another GetTypeData() that takes isNullableRuntimeType so
215 that it won't miss XmlSchemaElement.IsNillable.
216 Added another GetPrimitiveTypeData() that takes nullable.
218 2007-01-15 Atsushi Enomoto <atsushi@ximian.com>
220 * TypeData.cs : reject generic type definitions.
221 * TypeTranslator.cs : Make generic type names in XML compatible with
222 .net: foo_x0060_1 -> fooOfString.
224 2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
226 * SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
227 GenerateToXmlString() needed hexBinary support as well. Since
228 XmlConvert.[To|From]BinHexString() are internal, use reflection.
229 Really fixed bug #79989 and #79990 for generated serializers.
231 2006-12-03 Gert Driesen <drieseng@users.sourceforge.net>
233 * XmlSchemaExporter.cs: Emit xml name of enum-based default values.
234 Set XmlSchemaAttribute.Use to Required if no default value is defined,
235 and member is not an optional value type. Element should have minOccurs
236 1 if value type member has default value. Output flag enum type as
237 xsd list with restriction.
238 * XmlReflectionImporter.cs: Removed special casing of enums. Instead
239 of passing namespace of XmlAttribute to ImportTypeMapping, use the
240 default namespace for importing the member type.
242 2006-12-02 Gert Driesen <drieseng@users.sourceforge.net>
244 * SerializationCodeGenerator.cs: Initialize out parameters if they
245 are value types. Fixed bug #79988.
246 * XmlSerializationReaderInterpreter.cs: Same.
248 2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
250 * XmlReflectionImporter.cs : implemented several missing check and
251 support for XmlArrayAttribute. Fixed bug #78042.
253 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
255 * XmlCustomFormatter.cs : handle hexBinary type. Fixed bug #79989
258 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
261 * TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
262 "nullable" information. Introduced new primitiveNullableTypes pool
263 whose TypeData has 'true' for new IsNullable property. This
264 property is also used for non-primitive types.
265 * XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
266 of IsValueType, to handle nullable types.
268 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
270 * TypeTranslator.cs : Hari knew better way to do it.
272 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
274 * TypeTranslator.cs : #if NET_2_0 for generic thingy.
276 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
278 * TypeTranslator.cs : (GetTypeData) when the argument type is
279 Nullable<T>, use T instead. At run time (on both interpreter and
280 generated code) it is converted to T. Fixed bug #79803.
282 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
284 * SerializationCodeGenerator.cs, TypeData.cs :
285 Now we differentiate TypeName, FullTypeName C# type names. It is
286 to create valid C# sources especially for generic types.
289 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
291 * XmlSerializationReader.cs : (ReadReferencedElement)
292 Sometimes there are array types in WSDL, which are not reflected
293 in client proxies. In SOAP messages, they are marked
294 soap-env:arrayType, so use it (this could coexist with xsi:type,
295 which indicates the type in WSDL). Fixed bug #79057.
297 2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
299 * XmlSerializationReader.cs : implement ToByteArray[Base64|Hex]().
300 removed extra ReadSerializable().
301 * XmlTypeMapping.cs : added XsdTypeName and XsdTypeNamespace.
303 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
305 * SerializationCodeGenerator.cs,
306 SerializationCodeGeneratorConfiguration.cs :
307 make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
308 (or it is impossible to use genxs more than twice in an assembly.)
310 2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
313 * XmlReflectionImporter.cs : Compute nullable correctly. Elements are
314 nillable when its type is a reference type.
315 * XmlSchemaExporter.cs :
316 Set XmlTypeMapElementInfo.IsNullable from XmlTypeMapping.
317 Set XmlSchemaElement.IsNillable from XmlTypeMapElementInfo.
319 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
321 * XmlSchemaImporter.cs : top-level element might also have no type
322 name specification, so just compare ElementType with anyType.
324 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
326 * XmlSchemaImporter.cs : attributes might overlap by extending
327 base content models. Since invalid content models are rejected by
328 Compile(), simply ignore duplicating attributes. Note that it is
329 basically hack, which should not skip derived ones but use them (but
330 it is mostly harmless since the result is very unlikely to differ).
332 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
334 * XmlSchemaImporter.cs : when top-level element is xs:anyType, all
335 complexTypes must be also imported.
337 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
339 * XmlSchemaImporter.cs : ImportTypeMapping() raises exception when
340 the argument name is not bound to any elements.
342 2006-11-07 Atsushi Enomoto <atsushi@ximian.com>
344 * XmlCustomFormatter.cs : consider null base64 byte array value.
347 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
349 * CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
350 explicitly say Obsolete instantiation.
351 * CodeIdentifiers.cs : implemented case-insensitive mode.
352 * XmlSerializerAssemblyAttribute.cs : added missing .ctor().
353 * SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
354 in 2.0 profile it could also be applied to an interface.
355 * SoapReflectionImporter.cs,
356 XmlReflectionImporter.cs,
357 XmlMappingAccess.cs :
358 added missing ImportMembersMapping overload and moved actual
359 implementation to most lengthy-arglist one. To make it possible,
360 XmlMappingAccess is included in 1.x as internal enum.
362 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
364 * XmlSchemaImporter.cs : initialize extensions from configuration.
366 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
368 * SchemaImporterExtension.cs,
369 SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
371 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
373 * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
374 * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
375 became a class, it needs explicit "override".
376 Since InternalSyncObject is gone, it needs another lock target.
377 * IXmlSerializerImplementation.cs : removed.
378 * XmlSerializerImplementation.cs : added.
379 * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
380 IXmlSerializerImplementation -> XmlSerializerImplementation.
381 * XmlSchemas.cs : removed Schemas. hacked Compile().
382 Now it implements IEnumerable<XmlSchema>.
383 * XmlSchemaEnumerator.cs : added missing type.
385 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
387 * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
388 is not considered in XmlSerializationReader yet.
389 * XmlElementEventArgs.cs : added ExpectedElements. Note that it
390 is not considered in XmlSerializationReader yet.
391 * XmlSerializationReader.cs : added some overloads for
392 UnknownElement()/-Attribute()/-Node().
394 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
396 * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
398 * XmlSerializationCollectionFixupCallback.cs,
399 XmlNodeEventHandler.cs,
400 XmlSerializationReadCallback.cs,
401 UnreferencedObjectEventHandler.cs,
402 XmlSerializationWriteCallback.cs,
403 XmlAttributeEventHandler.cs,
404 XmlElementEventHandler.cs,
405 XmlSerializationFixupCallback.cs :
406 exclude [Serializable] in NET_2_0.
407 * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
408 * XmlSerializerVersionAttribute.cs : removed [Obsolete].
409 * XmlMappingAccess.cs : it is [Flags].
410 * SchemaImporter.cs : implement Extensions.
411 * XmlAnyElementAttribute.cs,
412 XmlArrayAttribute.cs : added Order.
413 Note that it is not considered in XmlSerializer yet.
415 2006-10-25 Ankit Jain <jankit@novell.com>
417 * SerializationCodeGenerator.cs (GenerateContract): Handle
418 'generateAsInternal' config option.
420 2006-10-10 Gert Driesen <drieseng@users.sourceforge.net>
422 * XmlSerializer.cs: Output namespace declarations in same order as
425 2006-10-08 Gert Driesen <drieseng@users.sourceforge.net>
427 * XmlSerializer.cs: Corrected exception message when deserialization
429 * SerializationCodeGenerator.cs: Added support for flag enums.
430 * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
431 all exceptions that occur while reflecting member. Validate default
433 * SoapReflectionImporter.cs: Revert small part of previous patch as
434 XmlSerializer expects enum value.
436 2006-10-01 Gert Driesen <drieseng@users.sourceforge.net>
438 * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
439 thrown during creation of map member bubble up. Only allow
440 SoapAttribute on primitive types and enums. Obtain default value for
443 2006-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
445 * XmlTypeAttribute.cs: added property AnonymousType for 2.0
447 2006-09-12 Lluis Sanchez Gual <lluis@novell.com>
449 * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
451 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
453 * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
456 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
458 * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
459 to strings. Make sure maps returned by ImportClassSimpleType are always
460 simple type maps. All this fixes bug #77585.
462 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
464 * XmlSchemaImporter.cs: Always import simple type unions
465 as string (like MS.NET does). Fixes bug #79234.
467 2006-08-25 Kornél Pál <kornelpal@gmail.com>
469 * MapCodeGenerator.cs: Use assembly file version constants.
471 2006-07-24 Atsushi Enomoto <atsushi@ximian.com>
473 * XmlMappingAccess.cs : new type in 2.0 RTM.
474 * XmlCodeExporter.cs, SoapCodeExporter.cs,
476 XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
477 SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
478 XmlMemberMapping.cs, XmlSerializationReader.cs :
479 several 2.0 API fixes from betas to RTM.
481 2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
483 * XmlTypeMapMember.cs: Added GlobalIndex property.
484 * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
486 * SerializationCodeGenerator.cs:
487 * XmlSerializationWriterInterpreter.cs:
488 * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
489 Index to get/set the values from the input array, since some Index
490 values are shared between attribute and element members. Fixes
493 2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
495 * SerializationCodeGenerator.cs,
496 XmlSerializerReaderInterpreter.cs : handle CDATA section as text
497 node. Fixed bug #78536.
499 2006-05-15 Gert Driesen <drieseng@users.sourceforge.net>
501 * XmlCodeExporter.cs: Added bool argument to GenerateClass and
502 GenerateEnum methods that specifies whether we're dealing with a type
503 for a top-level element. In GenerateClass, do not always add Namespace
504 argument for XmlRootAttribute if isTopLevel is false, and do not
505 emit XmlRootAttribute if isTopLevel is false and no arguments have been
507 * SoapCodeExporter.cs: Added bool argument to GenerateClass and
508 GenerateEnum methods.
509 * MapCodeGenerator.cs: Added bool argument to GenerateClass and
510 GenerateEnum methods.
512 2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
514 * SerializationCodeGenerator.cs: Allow generating serializer for
515 reading an XmlElement or XmlDocument as root element.
516 Properly generate jagged array creation.
518 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
520 * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
522 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
524 * SerializationCodeGenerator.cs: For flag enums, we should split on all
525 whitespace chars instead of only on blanks.
526 * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
527 constant name(s) to integral enum value.
529 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
531 * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
532 as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
534 2006-04-24 Gert Driesen <drieseng@users.sourceforge.net>
536 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
537 allow XML Schema items to be added to its parent in the same order
538 as MS.NET (schema elements before complex types, ...).
540 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
542 * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
543 GenerateProperties. Use full type name for XML serialization attributes
544 instead of shortcut (without Attribute suffix). Always add Namespace
545 argument for XmlRootAttribute on classes. Added IsNullable argument for
546 XmlRootRootAttribute on classes. For attribute members, only output
547 Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
548 ctor that takes CodeGenerationOptions.
549 * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
550 CodeGenerationOptions.
551 * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
552 profile, emit GeneratedCodeAttribute, SerializableAttribute,
553 DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
554 To match MS.NET, emit attribute members before element members.
555 * XmlReflectionImporter.cs: Enums are never nullable.
556 * XmlSchemaImporter.cs: Set IsNullable on map using value of
557 XmlSchemaElement.IsNillable. Added LocateElement overload that takes
560 2006-04-15 Gert Driesen <drieseng@users.sourceforge.net>
562 * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
563 to XmlReflectionImporter and SoapReflectionImporter to keep from
564 always ending up with the XSD type that directly maps to the CLR type.
565 * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
566 Type. This improves performance by avoiding the use of
567 TypeTranslator.GetTypeData for types imported from a schema and fixes
569 * SoapReflectionImporter.cs: Same.
571 2006-04-11 Lluis Sanchez Gual <lluis@novell.com>
573 * XmlSchemas.cs: In 1.1, don't allow adding two schemas
574 with the same namespaces. This is allowed in 2.0. Fixed
575 the Find() method to cope with this case. Based on a patch
578 2006-03-22 Gert Driesen <drieseng@users.sourceforge.net>
580 * XmlReflectionImporter.cs: Throw NotSupportException instead of
581 InvalidOperationException (IOE) if void is specified as type in
582 ImportTypeMapping. To match MS.NET, surround importing of type in
583 try/catch block, and wrap any IOE in another IOE adding information
584 on the type that was being reflected. In CreateTypeMapping, surround
585 creating of map member in try/catch block, and wrap any IOE in another
586 IOE adding information on the member that was being reflected.
587 Modified exception message for missing enumeration value to match
588 MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
589 XmlTextAttribute, and it differs from type of reflected member when
590 schema type of member is primitive or enum. Fixed bug #77591.
592 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
594 * XmlSchemaExporter.cs: Import namespace of schema generated for
595 non-xsd primitive. Do not set zero-length TargetNamespace to avoid
596 emitting empty targetNamespace attribute in generated schema.
597 * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
600 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
602 * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
603 Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
604 serialization of integral value to enum constant name, and made sure
605 the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
606 throw InvalidOperationException if no matching enum constant exists.
607 In EnumMap ctor, initialize arrays holding XML names, enum names and
609 * XmlSerializationReaderInterpreter.cs: Pass full type name to
610 EnumMapping.GetEnumName for construction of exception message.
611 * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
612 and InvalidCastException in another InvalidOperationException to match
613 MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
614 and the inner exception for a TargetInvocationException in an
615 InvalidOperationException to match MSFT.
616 * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
617 XmlCustomFormatter.FromEnum in order to also support serialization
618 integral value to enum constant name. In 2.0 profile, throw
619 InvalidOperationException if numeric value cannot be serialized into
620 an enum constant value. In GenerateSingleEnumValue, no longer attempt
621 to parse unknown constant value but instead report it as
622 InvalidOperationException. Use string.Length instead of "" comparison
623 to check whether a string is empty. Fixed compiler warnings in
624 generated code (possible empty statement).
625 * XmlSerializationWriterInterpreter.cs: Pass full type name to
627 * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
628 to allow it to be used in exception messages.
629 * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
630 enum fields. Use IsDefined instead of GetCustomAttributes for checking
631 if a certain attribute is defined. Use integral value of enum constant
632 in EnumMapMember ctor.
633 * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
634 enum fields. Use IsDefined instead of GetCustomAttributes for checking
635 if a certain attribute is defined. Use integral value of enum constant
636 in EnumMapMember ctor.
638 2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
640 * XmlReflectionImporter.cs: Ignore the element namespace if
641 the schema form is set to Unqualified. Fixes bug #75019.
643 2006-02-22 Gert Driesen <drieseng@users.sourceforge.net>
645 * SerializationCodeGenerator.cs: Omit return statement in ReadObject
646 method if GenerateReadListElement returns null. Fixes bug #77588.
648 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
650 * XmlSerializer.cs: Fix the previous fix.
652 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
654 * XmlSerializer.cs: Added option to avoid falling back to the
655 interpreted serializer if the code generator fails. To be used
658 2006-02-16 Gert Driesen <drieseng@users.sourceforge.net>
660 * TypeData.cs: Fixed the following issues when dealing with Array
662 - if a type implements IDictionary, throw a NotSupportedException
663 - if a type implements ICollection, then an Add method must exist
664 which takes a single argument of a type to which the listitem type
665 is assignable (meaning a base type or an interface that it
666 implements). If such a method does not exist, then throw an
667 InvalidOperationException.
668 - if a type implements IEnumerable, then the listitem type is
669 determined by the type of the Current property of the (IEnumerator)
670 type returned by the GetEnumerator() method or the private
671 implementation of IEnumerable.GetEnumerator(). If there's no
672 public Current property on the IEnumerator, then System.Object
673 is assumed as listitem type. Similar as for types implementing
674 ICollection, an Add method must exist which takes a single argument
675 of a type to which the listitem type is assignable (meaning a base
676 type or an interface that it implements). If such a method does not
677 exist, then throw an InvalidOperationException.
679 2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
681 * XmlSchemaImporter.cs: Support importing complex types with
682 simple content based on enums. Fixes bug #76848.
684 2006-02-11 Gert Driesen <drieseng@users.sourceforge.net>
686 * SoapAttributeAttribute.cs: Set eol-style to CRLF.
687 * SoapElementAttribute.cs: Same.
688 * SoapEnumAttribute.cs: Same.
689 * SoapIncludeAttribute.cs: Same.
690 * SoapSchemaMember.cs: Same.
691 * SoapTypeAttribute.cs: Same.
692 * XmlArrayAttribute.cs: Same.
693 * XmlAttributeAttribute.cs: Same.
694 * XmlChoiceIdentifierAttribute.cs: Same.
695 * XmlElementAttribute.cs: Same.
696 * XmlEnumAttribute.cs: Same.
697 * XmlRootAttribute.cs: Same.
698 * XmlSchemaImporter.cs: Same.
699 * XmlTextAttribute.cs: Same.
700 * XmlTypeAttribute.cs: Same.
701 * XmlTypeMapping.cs: Same.
702 * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
703 * CodeIdentifiers.cs: Same.
704 * SoapCodeExporter.cs: Same.
705 * SoapAttributes.cs: Same.
706 * SoapIgnoreAttribute.cs: Same.
707 * SoapSchemaImporter.cs: Same.
708 * TypeMember.cs: Same.
709 * UnreferencedObjectEventArgs.cs: Same.
710 * XmlAnyAttributeAttribute.cs: Same.
711 * XmlAnyElementAttributes.cs: Same.
712 * XmlArrayItemAttributes.cs: Same.
713 * XmlAttributeEventArgs.cs: Same.
714 * XmlCodeExporter.cs: Same.
715 * XmlElementAttributes.cs: Same.
716 * XmlElementEventArgs.cs: Same.
717 * XmlIgnoreAttribute.cs: Same.
718 * XmlNamespaceDeclarationsAttribute.cs: Same.
719 * XmlNodeEventArgs.cs: Same.
720 * XmlReflectionMember.cs: Same.
721 * XmlSchemas.cs: Same.
722 * XmlSerializerNamespaces.cs: Same.
723 * XmlTypeMapMemberElement.cs: Set eol-style to native.
725 2006-02-10 Gert Driesen <drieseng@users.sourceforge.net>
727 * CodeExporter.cs: Set eol-style to native.
728 * CodeGenerationOptions.cs: Same.
729 * CodeIdentifier.cs: Same.
730 * ImportContext.cs: Same.
731 * IXmlSerializable.cs: Same.
732 * IXmlSerializerImplementation.cs: Same.
733 * IXmlTextParser.cs: Same.
734 * MapCodeGenerator.cs: Same.
735 * ReflectionHelper.cs: Same. Fixed line endings.
736 * SchemaImporter.cs: Same.
737 * SchemaImporterExtensionCollection.cs: Same.
738 * SchemaImporterExtension.cs: Same.
739 * SchemaTypes.cs: Same.
740 * SerializationCodeGeneratorConfiguration.cs: Same.
741 * SerializationCodeGenerator.cs: Same.
742 * SerializationSource.cs: Same.
743 * SoapReflectionImporter.cs: Same.
744 * SoapSchemaExporter.cs: Same.
746 * TypeTranslator.cs: Same.
747 * UnreferencedObjectEventHandler.cs: Same.
748 * XmlAnyElementAttribute.cs: Same.
749 * XmlArrayItemAttribute.cs: Same.
750 * XmlAttributeEventHandler.cs: Same.
751 * XmlAttributeOverrides.cs: Same.
752 * XmlAttributes.cs: Same.
753 * XmlDeserializationEvents.cs: Same.
754 * XmlElementEventHandler.cs: Same.
755 * XmlIncludeAttribute.cs: Same.
756 * XmlMapping.cs: Same.
757 * XmlMemberMapping.cs: Same.
758 * XmlMembersMapping.cs: Same.
759 * XmlNodeEventHandler.cs: Same.
760 * XmlReflectionImporter.cs: Same.
761 * XmlSchemaExporter.cs: Same.
762 * XmlSchemaProviderAttribute.cs: Same.
763 * XmlSerializationCollectionFixupCallback.cs: Same.
764 * XmlSerialiationFixupCallback.cs: Same.
765 * XmlSerializationGeneratedCode.cs: Same.
766 * XmlSerializationReadCallback.cs: Same.
767 * XmlSerializationReader.cs: Same.
768 * XmlSerializationReaderInterpreter.cs: Same.
769 * XmlSerializationWriteCallback.cs: Same.
770 * XmlSerializationWriterInterpreter.cs: Same.
771 * XmlSerializerAssemblyAttribute.cs: Same.
772 * XmlSerializer.cs: Same.
773 * XmlSerializerFactory.cs: Same.
774 * XmlSerializerVersionAttribute.cs: Same.
775 * XmlTypeMapElementInfo.cs: Same.
776 * XmlTypeMapMemberAttribute.cs: Same.
777 * XmlTypeMapMember.cs: Same.
778 * XmlTypeMapMemberNamespaces.cs: Same.
780 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
782 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
783 if map represents enum. Fixes bug #77501.
785 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
787 * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
788 CreateInvalidEnumValueException. Set eol-style to native.
789 * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
790 enum for which string value must be created. Set eol-style to native.
791 Modified FromEnum to behave more like MSFT's implementation:
792 - treat value as bit field.
793 - no longer return empty string if the value matches an id for which there's no corresponding
795 - if one of the ids has value 0 and there's a match for the enum value
796 (with a zero length XML name) or the enum value is 0, then return the
797 corresponding XML for the id with value 0.
798 - in 2.0 profile, throw InvalidOperationException if no match is found
799 for (part of) the enum value.
800 Modifies ToEnum to match the MSFT implementation (as described in
802 - Expect hashtable containing enum names as key, and corresponding
803 integral numbers as value.
804 - Do not report exception for whitespace-only value.
805 - Support space (MS docs are not clear about this) delimited list
807 - typeName is only used to construct exception message.
809 2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
811 * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
812 looking for the correct element definition for a member,
813 based on the value type, take into account subypes of the
814 declared types. Fixes bug #77447.
816 2006-02-07 Konstantin Triger <kostat@mainsoft.com>
818 * XmlReflectionImporter.cs: remove local name encoding for enums.
820 2006-01-08 Gert Driesen <drieseng@users.sourceforge.net>
822 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
824 2006-01-07 Gert Driesen <drieseng@users.sourceforge.net>
826 * XmlTypeMapping.cs: Fixed line endings.
827 * TypeTranslator.cs: Fixed line endings.
829 2005-12-07 Lluis Sanchez Gual <lluis@novell.com>
831 * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
832 collection, don't create a new collection if the property already has a
834 * SerializationCodeGenerator.cs: same as above. Also return an empty
835 string for flag enum default values.
837 2005-12-06 Konstantin Triger <kostat@mainsoft.com>
839 * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
841 2005-12-05 Lluis Sanchez Gual <lluis@novell.com>
843 * XmlSerializationReaderInterpreter.cs:
844 * SerializationCodeGenerator.cs: When deserializing a collection,
845 don't create a new collection if the property already has a
846 collection instance. This does not apply to arrays. Changed how nullabe
847 array properties are set. Setting IsNullable=false to the property means
848 that it won't be set if the read array is null (so, if the property
849 already has a value, it will be kept).
850 Another change is that can't never be null (only arrays can).
852 2005-12-01 Lluis Sanchez Gual <lluis@novell.com>
854 * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
855 a cli array type, consider it refering to the type of array elements.
856 This fixes bug #76860. Also added some locking.
858 2005-11-27 Konstantin Triger <kostat@mainsoft.com>
860 * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
861 export non-xsd primitive types.
863 2005-11-24 Vladimir Krasnov <vladimirk@mainsoft.com>
865 * XmlTypeMapping.cs: fixed GetXmlName method, added difference
866 of value serialization of flags and non-flags enums
868 2005-11-23 Konstantin Triger <kostat@mainsoft.com>
870 * XmlSchemaExporter.cs: do not import empty namespaces.
872 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
874 * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
875 method, ReadEndElement should check XmlNodeType.
876 * XmlTypeMapping.cs: fixed GetXmlName method, it should not
877 write zero as default enum value.
879 2005-11-16 Vladimir Krasnov <vladimirk@mainsoft.com>
881 * XmlReflectionImporter.cs: fixed field order returned by
882 reflection in method GetReflectionMembers. TARGET_JVM only.
884 2005-11-07 Lluis Sanchez Gual <lluis@novell.com>
886 * XmlSchemaImporter.cs: Added support for restrictions with
887 embedded simple type definitions.
889 2005-11-04 Atsushi Enomoto <atsushi@ximian.com>
891 * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
892 sys.xml.schema corcompare diffs.
894 2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
896 * SerializationCodeGenerator.cs:
897 * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
898 need to be all XmlElments. Fix by Atsushi for bug #76288.
900 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
902 * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
903 In ListMap.FindElement, take into account the ChoiceMember
905 * SerializationCodeGenerator.cs:
906 * XmlSerializationReaderInterpreter.cs: For lists with a choice
907 member, fill the member with the corresponding enum values.
908 * XmlReflectionImporter.cs: Properly reflect the choice member
909 when applied to a list.
910 * XmlSerializationWriterInterpreter.cs: Track class changes.
911 * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
912 All this fixes bug #76203.
914 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
916 * SoapReflectionImporter.cs: Check the correct defaults
919 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
921 * SerializationSource.cs: Fix nullref.
922 * XmlReflectionImporter.cs: When registering a type using
923 IncludeType(), make sure it is added as a subtype and the
924 map for typeof(object) if it has already been imported.
927 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
929 * XmlSerializationWriter.cs: Also internally serialize
930 arrays of object (see previous change).
932 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
934 * XmlSerializationWriter.cs: Properly serialize arrays
935 of primitive types when not explicitely specified in
936 a container class. Based on a patch by Konstantin Triger.
939 2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
941 * TypeData.cs: Reset the hasPublicConstructor flag when the
942 type is an interface.
943 * XmlSerializationWriterInterpreter.cs: Get the Count property
944 from the object type instead of the property type (it didn't
946 * ReflectionHelper.cs: In CheckSerializableType, don't trow
947 if the type is a collection interface. All this fixes
950 2005-08-06 Lluis Sanchez Gual <lluis@novell.com>
952 * XmlTypeMapping.cs: Added null check.
954 2005-08-05 Lluis Sanchez Gual <lluis@novell.com>
956 * XmlTypeMapping.cs: Added ListMembers property that returns
957 members which are collections.
958 * SerializationCodeGenerator.cs:
959 * XmlSerializationReaderInterpreter.cs: Initialize collection
960 members to an empty collection by default. Fixes bug #75662.
962 2005-08-01 Gert Driesen <drieseng@users.sourceforge.net>
964 * XmlMapping.cs: API compatibility fixes. Ctor is not protected
965 in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
967 2005-07-31 Gert Driesen <drieseng@users.sourceforge.net>
969 * SoapAttributeAttribute.cs: Return zero-length string if
970 AttributeName or DataType are null.
971 * SoapEnumAttribute.cs: Return zero-length string if Name is null.
972 * SoapIncludeAttribute.cs: Avoid using property in ctor.
973 * SoapSchemaMember.cs: Return zero-length string if MemberName is
974 null. MemberType should be XmlQualifiedName.Empty by default.
975 * SoapTypeAttribute.cs: Return zero-length string if TypeName is
976 null. Avoid using property in ctor.
977 * XmlArrayAttribute.cs: Return zero-length string if ElementName is
978 null. Avoid using property in ctor.
979 * XmlArrayItemAttribute.cs: IsNullable must be false by default.
980 Return zero-length string if DataType or ElementName are null. Avoid
981 using property in ctor.
982 * SoapElementAttribute.cs: Return zero-length string when DataType
983 or ElementName are null. Avoid using property in ctor.
984 * XmlAnyElementAttribute.cs: Return zero-length string when Name is
985 null. Avoid using property in ctor.
986 * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
987 zero-length string if AttributeName or DataType are null.
988 * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
990 * XmlElementAttribute.cs: Return zero-length string when DataType or
991 ElementName are null. Avoid using property in ctor.
992 * XmlEnumAttribute.cs: Avoid using property in ctor.
993 * XmlIncludeAttribute.cs: Avoid using property in ctor.
994 * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
995 can no longer be null. Use check for zero-length string to determine
996 whether they are set. Corrected exception message when DataType is
997 set for complex type.
998 * XmlRootAttribute.cs: Return zero-length string if DataType or
999 ElementName are null. Avoid using property in ctor.
1000 * XmlTextAttribute.cs: Return zero-length string if DataType is null.
1001 * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
1003 2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
1005 * SerializationCodeGenerator.cs: In the generated serializer always
1006 use the Object equality operator when comparing objects to serialize
1007 to null, since those objects may have the equality operator
1008 overloaded. This fixes bug #75543.
1010 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1012 * XmlCustomFormatter.cs: Properly read/write duration values.
1014 2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
1016 * XmlSerializer.cs: Fix race between XmlSerializer and the
1017 serializer generator.
1019 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
1021 * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
1022 getting the real xml type name of a member.
1023 * XmlSerializationWriterInterpreter.cs: Use that new property
1024 to get the type name of primitive types. This should fix bug #75180.
1026 2005-06-07 Lluis Sanchez Gual <lluis@novell.com>
1028 * SerializationCodeGenerator.cs: When reading members by order,
1029 call a MoveToContext after each member read. In the fixup method
1030 don't cast returned values if it is reading an object array.
1032 * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
1033 being imported is a primitive type, create a wrapper class that
1034 inherits from the provided one. This fixes bug #68809.
1036 * XmlSerializationReader.cs: Properly report unreferenced objects.
1037 Created an overload of ReadTypedPrimitive that reports elements of
1038 unknown type. Implemented Referenced().
1040 2005-05-30 Lluis Sanchez Gual <lluis@novell.com>
1042 * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
1043 set to the default namespace. This fixes bug #73035.
1045 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
1047 * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
1048 types indirectly imported by this method use the same namespace.
1050 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1052 * TypeTableEntry.cs : removed obsolete code.
1054 2005-04-26 Lluis Sanchez Gual <lluis@novell.com>
1056 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
1057 properties which are read only. Fixes bug #74723.
1059 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
1061 * XmlReflectionImporter.cs:
1062 * SoapReflectionImporter.cs:
1063 * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
1064 where needed. Based on a patch by Konstantin Triger.
1066 2005-04-12 Lluis Sanchez Gual <lluis@novell.com>
1068 * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
1069 * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
1070 export the schema that it defines. In ImportNamespace, removed
1071 check for default namespace, since it may be included from a non
1073 * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
1074 types. All this based on a patch by Konstantin Triger.
1076 * SerializationCodeGenerator.cs:
1078 * XmlSerializationReaderInterpreter.cs:
1079 * SoapCodeExporter.cs:
1080 * XmlTypeMapMemberAttribute.cs:
1081 * XmlSerializationReader.cs:
1082 * XmlCodeExporter.cs: Fixed some warnings.
1084 2005-04-10 Andrew Skiba <andrews@mainsoft.com>
1086 * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
1088 2005-04-03 Andrew Skiba <andrews@mainsoft.com>
1090 * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
1093 2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
1095 * SerializationCodeGenerator.cs:
1096 * XmlSerializationReaderInterpreter.cs: If the element being read is
1097 bound to a choice member, set the corresponding value.
1098 * XmlTypeMapMember.cs: Added helper SetValue method.
1099 * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
1100 since now stores the enum value.
1101 * XmlReflectionImporter.cs: Properly import choice values.
1102 * XmlTypeMapMemberElement.cs: Added setter for the choice.
1104 2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
1106 * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
1107 This fixes bug #73901 and should fix #70384.
1108 * XmlSerializationReader.cs: When reading an object element, return
1109 an Object instance if the element has no children. This fixes bug #73974.
1110 * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
1111 type (it is written as an element with those nodes as children).
1113 2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
1115 * XmlSchemaImporter.cs: Support importing schemas that define
1116 extra types in the standard xml schema namespace. When using encoded
1117 format, support the primitive types defined by the SOAP encoding
1120 2005-03-04 Lluis Sanchez Gual <lluis@novell.com>
1122 * ReflectionHelper.cs: Avoid endless loop.
1123 * XmlSchemas.cs: Added null check. Patches from MainSoft.
1125 2005-02-07 Lluis Sanchez Gual <lluis@novell.com>
1127 * XmlSerializationReader.cs: After reading an href element, skip the
1128 whole element (it may not be an empty element). This fixes bug #72265.
1130 2005-01-25 Lluis Sanchez Gual <lluis@novell.com>
1132 * XmlSchemaImporter.cs: When importing a default value of type enum,
1133 translate it from the schema value to the clr value.
1135 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1137 * XmlSerializer.cs: only print the results if there's an error
1140 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1142 * SerializationCodeGenerator.cs: don't use _config if it has not been
1145 2005-01-18 Lluis Sanchez Gual <lluis@novell.com>
1147 * XmlReflectionImporter.cs: Don't check the property type if it has
1148 an [XmlIgnore] attribute. This fixes bug #71332.
1150 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
1152 * SerializationCodeGenerator.cs,
1153 XmlSerializationWriterInterpreter.cs : exchanged attribute
1154 serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
1155 xmlns attributes in XmlAnyAttribute are not written.
1157 2005-01-12 Atsushi Enomoto <atsushi@ximian.com>
1159 * SerializationCodeGeneratorConfiguration.cs,
1160 SerializationCodeGenerator.cs : Added some generation configuration:
1161 <generateAsInternal>
1162 write custom reader/writer as internal classes.
1163 <noreader>, <nowriter>
1164 They make generation of reader and/or writer optional.
1165 * XmlSerializerNamespaces.cs :
1166 Now it uses ListDictionary instead of Hashtable.
1167 * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
1168 written unless there is already the same prefix-ns mapping.
1170 2005-01-12 Lluis Sanchez Gual <lluis@novell.com>
1172 * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
1173 * XmlSchemaImporter.cs: When importing a base type of a complex type,
1174 make sure that the base class is always imported as a class and not
1175 as an array. If it has been imported as array, import it again.
1176 This fixes bug #70839. Other minor fixes as well.
1177 * XmlSerializationWriter.cs: Fixed warning.
1179 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1181 * SerializationCodeGenerator.cs: Yet another generation fix.
1183 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1185 * SerializationCodeGenerator.cs: Fixed generation of enum literals.
1187 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1189 * XmlReflectionMember.cs: Added DeclaringType member.
1190 * XmlReflectionImporter.cs: When importing fields that belong to a
1191 base class, use the xml namespace of the base map for the member.
1192 This fixes bug #70309.
1194 2004-11-30 Lluis Sanchez Gual <lluis@novell.com>
1196 * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
1197 compilation warnings.
1199 2004-11-24 Lluis Sanchez Gual <lluis@novell.com>
1201 * SerializationSource.cs: Made SerializationSource abstract, and
1202 renamed Equals to BaseEquals to avoid missing GetHashCode warning
1203 (it does not really make sense in this case).
1204 * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
1205 XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1206 XmlSerializationReader.cs: Fixed warnings.
1208 2004-10-19 Atsushi Enomoto <atsushi@ximian.com>
1210 * XmlSerializationWriter.cs : When namespace is an empty string,
1211 XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
1214 2004-10-01 Lluis Sanchez Gual <lluis@novell.com>
1216 * MapCodeGenerator.cs: When the Object type is exported, export all
1217 derived maps. This was done in IncludeMetadata, but this method is
1218 not called by the xsd tool.
1219 * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
1220 attribute for primitive types and arrays.
1221 * XmlSchemaImporter.cs: Only export all object-derived maps if the
1222 Object type is explicitly referenced by an element.
1223 * XmlSerializationWriter.cs: Minor fix.
1225 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
1227 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
1228 This fixes bug #66877.
1230 2004-09-21 Lluis Sanchez Gual <lluis@novell.com>
1232 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1233 when reading a primitive value in encoded format using
1234 ReadReferencingElement, provide the type name and namespace
1235 since the xsi type may not be present in the xml element. This
1238 2004-09-15 Lluis Sanchez Gual <lluis@novell.com>
1240 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
1241 ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
1242 * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
1243 ImportIncludedTypes to the end, to make sure that the current map has all
1244 needed data before derived maps are constructed.
1245 * XmlSchemaExporter.cs: Generate the base class of simple types that are
1246 not primitive types. Set the correct value for IsMixed in extended types.
1247 * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
1248 the base class of a simple type doesn't need to be a xsd type.
1249 All those patches fix bug #65654.
1251 2004-09-03 Lluis Sanchez Gual <lluis@novell.com>
1253 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
1254 Normalization==true by default.
1256 2004-09-02 Lluis Sanchez Gual <lluis@novell.com>
1258 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
1259 In CheckSerializableType, add the option of ignoring types with private
1260 constructors. Some kind of lists can be deserialized
1261 even if the constructor is private. See bug #61464.
1262 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1263 Before creating a list, check that it has a public constructor.
1264 * TypeData.cs: Added HasPublicConstructor property.
1266 2004-09-01 Lluis Sanchez Gual <lluis@novell.com>
1268 * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
1269 value list serialization.
1270 * XmlSchemaImporter.cs: Added some null checks.
1272 2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
1274 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1275 When deserializing an encoded method response, assign to the return value
1276 the first element of the message, whatever it is. The return type doesn't
1277 need to be Object, it seems to be true for all return types.
1279 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
1281 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
1282 no need to add it after the call.
1283 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
1285 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
1287 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
1288 * ImportContext.cs: Implemented.
1289 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
1290 options for 2.0. Implemented support for generating properties instead of
1292 * XmlSchemaImporter.cs: Added support for sharing types.
1294 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
1296 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
1297 xsd type is not part of the last schema specification, but the google api
1298 uses it and ms.net accepts it.
1300 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
1302 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
1303 Thanks to Juan C. Olivares.
1305 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
1307 * CodeExporter.cs: Added private constructor.
1308 * CodeGenerationOptions.cs: Set the correct enum values.
1309 * CodeIdentifier.cs: Added private constructor.
1310 * SchemaImporter.cs: Added internal constructor.
1311 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
1312 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
1313 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
1314 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
1315 * XmlSerializationReader.cs: Added missing setter for DecodeName.
1317 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1319 * XmlSerializer.cs: Fix fix.
1321 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1323 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
1324 * ReflectionHelper.cs: New method for generating map keys.
1325 * SerializationCodeGenerator.cs: Added support for generating the serializer
1326 contract class, needed for 2.0.
1327 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
1329 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
1330 as Type[]. Added check that makes sure that enums being serialized are
1332 * XmlMapping.cs: Added internal GetKey method.
1333 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
1334 Added first bits to support loading of serializers from pre-generated
1336 * XmlSerializerFactory.cs: Mostly implemeted.
1338 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1340 * CodeIdentifier.cs: Removed constructor for NET_2_0.
1341 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
1342 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
1343 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
1344 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
1345 XmlSerializerNamespaces.cs: Added 2.0 stubs.
1346 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
1347 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
1348 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
1349 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
1350 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
1351 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
1352 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
1354 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1356 * SerializationCodeGenerator.cs: Generate check that the object being
1357 serialized has a known type. Little cast fix.
1358 * XmlCustomFormatter.cs: Little fix in Single conversion.
1360 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
1362 * TypeData.cs: In the constructor, set the correct xml type name if the
1363 type is an array (for example, instead of StringCollection, use
1366 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
1368 * ReflectionHelper.cs: Correctly detect private types.
1369 * XmlCodeExporter.cs: Implemented missing method.
1370 * XmlSchemaImporter.cs: Allow import of root primitive types.
1372 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
1374 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
1375 SerializationCodeGenerator.cs, SerializationSource.cs,
1376 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
1377 XmlSerializationReader.cs, XmlSerializationWriter.cs,
1378 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
1379 : Globalization fixes.
1380 In XmlCustomFormatter.GenerateToXmlString() time was not
1381 generated correctly.
1382 Replaced all CRLF XmlAttributeOverrides.cs into LF.
1384 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
1386 * XmlSerializationWriter.cs: changed signature of protected method
1387 FromByteArrayBase64 to match MS.NET
1389 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1391 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
1392 attributes that MS.NET generates.
1393 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
1395 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
1396 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
1397 MS.NET member ordering. Patch by David Taylor.
1398 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
1399 flag. The generated enum must also not be included in the schema.
1400 * XmlTypeMapMember.cs: Added ignore flag.
1401 * XmlTypeMapping.cs: The AttributeMembers property now returns the
1402 attributes in the correct order.
1404 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
1406 * XmlSerializationReader.cs: added missing protected members
1407 to fix API compatibility with MS.NET
1408 * XmlSerializationWriter.cs: added missing protected members
1409 to fix API compatibility with MS.NET
1411 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
1413 * XmlSerializationReader.cs: Support schamea instance namespaces other than
1414 the 2001 one when reading the xsi type.
1415 * MapCodeGenerator.cs: Take into account that the root namespace and element
1416 name may have changed from one export to another of the same type. In
1417 this case the class attributes need to be regenerated.
1418 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
1419 not ElementName. Idem for namespace.
1420 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
1421 * XmlRootAttribute.cs: Default value for nullable is true.
1422 * XmlSchemaImporter.cs: The root name for a class may change in some
1423 scenarios (for example, when the type is initially exported as part of
1424 another type and later exported as a root type).
1425 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
1426 found using the standard namespace, try getting the type using
1427 the 2000/10 and 1999 namespaces.
1428 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
1430 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1432 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1433 In encoded format, primitive types can be null. Read them using
1434 ReadReferencingElement, that already checks for the null tag.
1436 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
1438 * XmlSerializationReader.cs: Check for empty element when reading an array
1439 element. This fixes bug #59003. Thanks Atsushi!
1441 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1443 * XmlSerializationWriter.cs: Implemented some missing methods.
1444 In .NET 1.0, encoded null elements use the attribute null="1", while in
1445 1.1 the attribute is nil="true".
1446 * XmlTypeMapping.cs: Little fix for nested classes.
1448 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1450 * XmlReflectionImporter.cs: Don't reset the internal tables at every
1451 ImportMembersMapping call. This fixes bug #58112. The problem is that
1452 it imported two different arrays (only different in the array item
1453 namespace) with the same name. Not sure what was this Reset needed for,
1454 everyting seems to work without it.
1456 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1458 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1459 When deserializing an encoded method response, if the return type of the
1460 method is Object, assign to it the first element of the message, whatever
1462 * XmlSerializationReader.cs:
1463 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
1464 the imported member.
1465 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
1466 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
1467 a given xsi type is not found. Just read it as primitive type.
1468 * XmlTypeMapMember.cs: Added IsReturnValue property.
1469 * XmlTypeMapping.cs: Added ReturnMember property.
1470 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
1472 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1474 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1475 When reading an object using the typeof(object) map, an emty xsi:type
1476 means that it has to read the contents into an XmlNode[].
1477 * TypeData.cs: Return the correct full name for inner classes.
1478 * XmlSchemaImporter.cs: Improved detection of types that represent
1479 "anyType", and must be mapped to XmlElement, XmlNode or Object.
1480 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1481 the correct namespace.
1482 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1485 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1487 * XmlSerializationWriter.cs : It do not have to handle schema
1488 namespace as special one.
1490 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1492 * XmlSerializationReaderInterpreter.cs: Removed the check for null
1493 AttributeMembers collection. Even if there are no attribute members,
1494 attributes need to be read.
1496 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1498 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1499 the IXmlSerializable object may not read all the EndElement it read.
1500 This fixes bug #57413.
1502 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1504 * XmlSerializer.cs: Enable serializer generation by default.
1506 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
1508 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1509 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1510 turns out that it is an array, import it again as array. This fixes
1513 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1515 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1516 don't use type name for array types, since we can have different classes
1517 that represent the same array type (for example StringCollection and
1520 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
1522 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1523 not present in MS.NET.
1524 * XmlSerializationWriter.cs: Improved error message.
1526 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1528 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
1529 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1530 Support deserialization of members of type XmlDocument. This fixes #56169.
1532 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1534 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1535 Use a special method to generate default values, since default enum values
1536 will come as integers, so a special cast is needed.
1537 * XmlSerializationReaderInterpreter.cs,
1538 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1539 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
1540 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1541 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
1542 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1543 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1544 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1545 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1546 of SerializationSource. It can't keep and use the XmlAttributeOverride
1547 instances as key values, since those instances can be modified after the
1548 xml map has been generated. Now, SerializationSource generates a unique
1549 string hash from XmlAttributeOverride and uses it for comparisons.
1551 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
1553 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
1554 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1555 the adequate type. Set the default value of members that do have a default
1556 value. Other minor fixes.
1557 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1558 from typeof(object) map, even those that have another base class.
1559 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1560 It must serialize the char as number, not as character.
1561 * XmlSerializationReaderInterpreter.cs: Set the default value of members
1562 that do have a default value.
1563 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1564 of members that have a default value.
1566 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
1568 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1569 This fixes bug #55547.
1571 2004-03-13 David Sheldon <dave-mono@earth.li>
1573 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1576 2004-03-13 David Sheldon <dave-mono@earth.li>
1578 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
1579 fixes test case that tests for this directly.
1580 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1581 it. Treat it as null.
1583 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
1585 * CodeIdentifier.cs: Limit the length of identifiers.
1586 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1587 Generate types using GetDomType, so if the type is an array, it creates
1588 the correct combination of types.
1589 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1590 an enum, if the string is empty and the enum has [Flags], then return 0
1591 as value. This fixes bug #55509.
1592 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1593 are not supported. Another check: a simple type cannot be enum if it does
1594 not have any enum facet.
1595 And another fix: use string as default type for attribtues.
1596 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
1597 other schemas. An imported schema would not be in the table, but its
1598 elements (although from another namespace) would be in the schema that
1599 imported it. So, we need know to check for every schema in the table.
1600 * XmlSerializer.cs: Added environment variable to help debugging code
1603 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
1605 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1606 of XmlInclude attributes needed for the service class.
1607 IsMapExported: Removed check for object type, since it can now be exported.
1608 SetMapExported: Use the type name as key, since different importers may
1609 be used to create a map for the same type.
1610 GenerateClassInclude: Updated signature.
1611 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1612 GenerateClassInclude(): Updated signature.
1613 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1614 Implemented IncludeTypes.
1615 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1616 GenerateClassInclude(): Updated signature.
1617 * XmlMemberMapping.cs: Added missing property.
1618 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1619 Implemented IncludeTypes().
1620 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1621 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1622 Now, it does a regular import and then assign the required base class to
1623 the imported map. In this way it is possible to assign a base type for a
1624 map that was previously imported without a base type.
1625 * XmlTypeMapping.cs: Added internal method SetRoot().
1627 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
1629 * SerializationCodeGenerator.cs: Added support for generation of readers
1630 and writers for several maps in a single class. Added support for
1631 XmlMemberMapping. Fixed generation of serializers that use encoded format.
1632 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1633 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
1634 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1635 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1636 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1637 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1638 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1639 Added InternalEquals method.
1640 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1641 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1642 * XmlCustomFormatter.cs: Fixed little bug.
1643 * XmlMapping.cs: Added Source property. This a global identifier of the map.
1644 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1645 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1647 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1648 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1650 * XmlSerializer.cs: Added support for generation of serializers.
1652 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
1654 * SerializationCodeGenerator.cs,
1655 SerializationCodeGeneratorConfiguration.cs:
1656 Added <namespaceImports> feature ("using XXX;" generation) support.
1658 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
1660 * XmlSerializationWriter.cs: When writing the root element, use a prefix
1661 if the namespace of the element is defined in the list of namespaces
1662 provided to the XmlSerializer. This fixes bug #54427.
1664 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
1666 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1667 Those are basically methods to add custom attributes to element and
1669 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1670 * XmlCodeExporter.cs: Better support for custom attribute generation for
1672 * XmlCustomFormatter.cs: Added null check.
1673 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
1674 attributes that are required.
1675 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1678 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
1680 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1681 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1682 string, not string[].
1683 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1684 for array parameters. In general, improved generation of schema Form
1686 * XmlMemberMapping.cs: Added Form property.
1687 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1688 simple types. Added a check for this.
1689 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1690 Form. The key used to determine if a map has been already generated must
1691 include the XmlType, since there can be two xml types with the same CLR
1692 type and namespace (for example, they may differ in the Form property).
1693 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1694 also return the corresponding map. There can be two maps that have the
1695 same TypeData, so given a TypeData is not always possible to get the
1696 correct corresponding map (for example two arrays that only differ in the
1698 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1701 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1703 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1704 normalizedString schema type.
1706 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1708 * XmlReflectionImporter.cs: Get the class members using the right order.
1709 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1710 A member with the Any attribute can also contain text. Support this.
1711 * XmlTypeMapMemberElement.cs: Added CanBeText property.
1713 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1715 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1718 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1720 * MapCodeGenerator.cs: Added helper method for generating an attribute
1721 parameter of type enum.
1722 * XmlAttributeAttribute.cs: little fix.
1723 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1724 for method parameters.
1725 * XmlMemberMapping.cs: Improved support for members of type "any".
1726 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1727 If the namespace is explicitly specified, then the form should be
1728 qualified. Also fixed issues with the namespace assigned to attributes.
1729 This should fix bug #53384.
1730 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1731 methods that return values of type "any". Changed the methods
1732 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1733 element, return it, and the caller must add it to the collection.
1734 Other fixes in attribute generation.
1735 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1736 generate the AnyType mapping from the type described in the schema.
1737 Small fixes regarding IsMixed property of complex types (it means that
1738 the type can contain text, so the XmlTextAttribute must be generated).
1739 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1740 be only used in the bare+encoded format.
1742 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1744 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1745 to be derived types of the one that has the attribute.
1746 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1747 map to the parent map. This fixes #53246.
1748 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1750 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
1752 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
1753 do not check the root element name, since it can be any name. This fixes
1756 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1758 * XmlReflectionImporter.cs: Throw exception if a value type member has the
1759 IsNullable=true flag. This fixes bug #52906.
1761 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1763 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
1764 so a 'specified' member has always to be generated.
1765 * TypeData.cs: Fixed check for value type.
1767 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1769 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
1770 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
1771 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
1772 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
1773 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
1774 Added support for value specifiers members. This fixes bug #53024.
1776 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1778 * XmlSchemaExporter.cs: Don't create referenced element if it has already
1779 been created (two types could be referencing the same schema element).
1781 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
1783 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
1784 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
1785 arrays. This fixes bug #53018.
1787 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
1789 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
1790 default namespace for members.
1791 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
1792 * XmlReflectionImporter.cs: Fixed the assignment of root and type
1794 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
1795 default namespace for members. In AddSchemaElement, if the element is
1796 a root element never use a "ref" attribute.
1797 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
1799 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1801 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1802 XmlTypeMapping.cs: more namespace fixes.
1804 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1806 * XmlReflectionImporter.cs: type namespace must never be used as root
1807 namespace. This fixes bug #52772.
1809 2004-01-08 Nick Drochak <ndrochak@ieee.org>
1811 * XmlSchemaImporter.cs: Removed unused variable.
1813 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
1815 * XmlReflectionImporter.cs: Ignore Namespace property when applying
1816 the [XmlType] attribute to an enum. This fixes bug #52607.
1818 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
1820 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
1821 option that allow serialization of private types.
1823 2003-12-18 Eran Domb <erand@mainsoft.com>
1825 * TypeTranslator.cs : Change primtive types map.
1827 2003-12-18 Eran Domb <erand@mainsoft.com>
1829 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
1832 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1834 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
1835 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
1836 primitive types are not the same as XML primitive types. Patch proposed
1837 by Mordechai Taitelman. This fixes bug #52228.
1838 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
1840 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1842 * XmlReflectionImporter.cs: Little fix.
1844 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1846 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
1847 need to be derived types of the includer. This fixes bug #52152.
1848 Added null check for Name property of XmlEnumAttribute. This fixes
1850 * XmlSerializationReader.cs: Fixed some error messages.
1851 * XmlSerializationReaderInterpreter.cs: Check that the root element has
1852 the correct local name and namespace. This fixes bug #52038.
1853 Throw exception if enum value can't be parsed.
1854 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
1857 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
1859 * MapCodeGenerator.cs: Added support for [Flags] enum.
1860 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
1861 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
1862 encoded array type. Added support for enums with [Flags].
1863 In encoded format, unqualified types are schema types by default.
1865 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
1867 * XmlCodeExporter.cs: Little fix.
1868 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
1869 same name have the same type.
1870 * XmlSchemaImporter.cs: Support xml:lang.
1871 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
1872 fixed wrong namespace for the arrayType attribute.
1874 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
1876 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
1877 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
1878 When using rpc format on a web service, members don't need to have any
1879 specific namespace. Added a flag for turning namespace check on/off.
1881 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1883 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
1884 delayedListFixups.Count cannot be used because elementes from
1885 delayedListFixups are deleted sometimes.
1887 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1889 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
1890 This fixes bug #51060.
1892 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
1894 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
1895 If type is Enum the code use type.GetElememtType() instead of
1896 Enum.GetUnderlyingType().
1898 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
1900 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
1901 Removed several TODOs already done.
1903 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
1905 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
1908 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1910 * ReflectionHelper.cs: In CheckSerializableType() check that the type
1912 * XmlSerializationWriter.cs: Added check for circular references.
1913 This fixes bug #49879.
1915 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1917 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
1918 can't be serialized. This fixes bug #49878.
1919 * TypeData.cs: In ListItemType check that the collection has a valid
1920 Add method and report an error if not.
1921 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
1922 reflecting a collection.
1924 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
1926 * SoapReflectionImporter.cs: Support element references for enum values in
1927 encoding format. This fixes bug #49568.
1928 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
1929 the name and namespace of the wrapper element. MS.NET doesn't do it.
1930 This fixes bug #49729.
1932 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1934 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
1936 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1938 * MapCodeGenerator.cs: New file. Moved here all code that is common
1939 between XmlCodeExporter and SoapCodeExporter.
1940 * SoapCodeExporter.cs: Implemented.
1941 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
1942 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
1943 encoded bare parameter list.
1944 * XmlTypeMapping.cs: Added method for getting member element by index.
1946 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1948 * XmlSchemas.cs : Implemented IsDataSet().
1950 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
1952 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
1953 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
1954 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
1955 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
1956 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
1957 and whether it uses encoded or literal format.
1958 * XmlSchemaExporter.cs: Little fixes.
1960 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1962 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
1963 need to be of type SOAP-ENC:Array, it can be a restriction of it.
1965 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1967 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
1968 Read only properties are only serialized if the type is an array.
1970 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
1972 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
1973 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
1974 is not needed for value types.
1976 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
1978 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
1979 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
1981 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
1983 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
1985 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
1987 * XmlSchemaExporter.cs: Keep track of elements being exported.
1988 * XmlSchemas.cs: Removed unneeded catch.
1990 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
1992 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1993 Fixed handling of members with XmlTextAttribute that are arrays.
1994 * TypeData.cs: IsComplexType now returns true for XmlNode.
1995 * XmlSerializer.cs: Added check for null mapping in FromMappings.
1996 * XmlTypeMapping.cs: Added helper method FindTextElement.
1998 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
2000 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
2001 Added support for IncludeInSchema flag.
2002 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2003 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
2004 methods. Added support for IncludeInSchema flag.
2005 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
2006 Added support for IncludeInSchema flag.
2007 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
2008 * XmlTypeMapping.cs: Added IncludeInSchema property.
2010 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
2012 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
2014 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
2016 * XmlCustomFormatter.cs: added support for additional string types in
2017 GenerateToXmlString().
2018 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
2021 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
2023 * SoapSchemaImporter.cs: implemented.
2024 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
2025 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
2026 * XmlSchemaImporter.cs: more support for encoded format.
2028 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
2030 * SerializationCodeGenerator.cs: Minor fixes.
2031 * SoapReflectionImporter.cs: More fixes.
2032 * SoapSchemaExporter.cs: implemented.
2033 * SoapSchemaImporter.cs: Initial implementation.
2034 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
2036 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
2037 * XmlMemberMapping.cs: Minor fixes.
2038 * XmlMembersMapping.cs: added some convenient constructors.
2039 * XmlSchemaExporter.cs: Added support for encoded format.
2040 * XmlSchemaImporter.cs: Added support for encoded format.
2041 * XmlSerializationReader.cs: changed some string literals by constants.
2042 Implemented ParseWsdlArrayType.
2043 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
2045 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
2046 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
2047 WriteAttribute to write custom attributes.
2048 * XmlSerializer.cs: added some namespace constants.
2049 * XmlTypeMapping.cs: added GetSchemaArrayName method.
2051 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
2053 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
2054 * XmlTypeMapMemberElement.cs: Little fix.
2055 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
2056 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
2058 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
2061 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
2063 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2064 * XmlMemberMapping.cs: Changed constructor.
2065 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
2066 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
2067 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
2068 * XmlSerializationWriterInterpreter.cs: Changed visibility.
2070 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2072 * XmlSerializer.cs: Fix in Deserialize() method.
2074 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
2076 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
2077 * XmlSchemas.cs: Find method: make sure the returned object belongs to
2079 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
2080 Add null checks for eventSource.
2081 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
2082 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
2083 namespece declarations. Virtual method WriteObject not needed any more.
2084 In WriteStartElement, write the provided namespaces.
2085 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
2086 Added GetTypeMap method, that returns the map for a given type. Added some
2087 virtual methods, so writer behavior can be extended at several places by
2089 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
2090 methods CreateReader and CreateWriter are not called unless no type or
2091 type mapping was provided in the constructor.
2093 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2095 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
2096 schema type it is importing is a class or an array. It will always
2099 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
2101 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
2102 as text nodes. Support it.
2104 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2106 * CodeIdentifier.cs: Fixed MakeValid method.
2107 * TypeTranslator.cs: Added support for more primitive types. Added
2108 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
2110 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
2111 are different from the type ns and name.
2112 Generate class and field comments.
2113 Fixed default attribute generation. In elements with ref attribute, it has to be
2114 generated in the referred attribute.
2115 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
2116 Added suport for text nodes in members of type "any".
2117 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
2119 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
2120 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
2121 that have already been declared.
2122 WriteStartElement(): elements from schema namespace are always written with ns prefix.
2123 * XmlTypeMapMember.cs: Added documentation property.
2124 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
2125 represents a simple type.
2127 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2129 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
2131 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
2132 * TypeData.cs: Added property that returns a TypeData that represents an array of
2134 * TypeTranslator.cs: Added GetArrayName() method.
2135 Added TypeDatas for missing primitive types.
2136 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
2137 XmlRootAttribute. Added the namespace to all attributes being generated.
2138 Other fixes in the generation of code.
2139 * XmlReflectionImporter: store the namespace of the type in the maps.
2140 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
2141 class can generate text. Do not export inherited attributes of a class.
2142 Use the new root namespace stored in the map when generating the root element.
2143 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
2144 namespace is the default namespace.
2145 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
2146 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
2147 namespace instead of the map namespace (which can be different if the type
2148 has a XmlRoot element).
2149 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
2150 to System.DBNull.Value.
2151 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
2152 the collection if it has not yet been created.
2153 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
2154 of the type. It may be different from the namespace of the map if the type
2155 has a XmlRoot element. Also added IsSimpleType property.
2156 In ClassMap, added AllMembers property.
2158 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
2160 * TypeData.cs: Added new constructor and variables to allow the creation of
2161 a TypeData without a Type. Added ListItemTypeData property.
2162 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
2163 array of arrays. Added also a property to get the nested array map.
2164 * XmlCodeExporter.cs: First implementation of code exporter.
2166 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2168 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
2169 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
2172 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
2174 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
2175 maps with the same name and namespace. To avoid this, maps must be registered
2176 using the real map namespace, not the default namespace (the namespace can
2177 change if the type has a XmlType or SoapType attribute).
2178 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
2179 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
2181 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
2184 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2186 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
2187 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
2188 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
2189 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
2190 * XmlSchemaExporter.cs: Implemented.
2191 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
2192 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
2193 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
2194 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
2195 GetStringValue() returns null if the value is null, instead of empty string.
2196 (attributes with null values are not written).
2197 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
2198 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
2199 DataType value can is now in TypeData.
2200 * XmlTypeMapMemberElement.cs: Small fix.
2201 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
2203 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2205 * AssemblyInfo.cs: Removed
2207 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
2209 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
2210 namespace declarations if they have already been defined.
2212 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
2214 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
2215 for adding elements to a list.
2217 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
2219 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
2220 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
2223 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2225 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
2226 Added support for serialization of enums with the Flags attribute.
2228 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2230 * SoapReflectionImporter.cs: Fix support for DataType in class members.
2231 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
2232 can have other names.
2233 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
2234 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
2235 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2236 Fix support for DataType in class members.
2237 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
2238 Added support for array of primitive types in attributes.
2240 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
2242 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
2243 be overlodaded, so it is not good for this.
2244 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
2246 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
2248 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
2249 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
2250 array if the namespace is not specified in XmlArrayItemAttribute.
2252 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
2254 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
2255 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
2256 is not specified in the xsi attribute.
2257 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
2258 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
2260 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2262 * XmlSerializationReader.cs : Synchronous fix with
2263 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
2264 * added XmlTypeMapMemberNamespace.cs.
2265 * XmlReflectionImporter,
2266 XmlSerializationReaderInterpreter.cs,
2267 XmlSerializationWriterInterpreter.cs,
2268 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
2270 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2272 * XmlSerializationWriter.cs : some QName handling fix.
2274 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2276 * XmlSerializationReader.cs: Fixed error message.
2277 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
2279 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
2281 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2283 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
2284 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
2285 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
2286 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
2288 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2290 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
2291 * SoapReflectionImporter.cs: tiny fix.
2292 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
2293 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
2294 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
2295 * XmlSerializationWriter.cs: implemented WriteSerializable ().
2297 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
2299 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
2300 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
2301 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
2302 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
2303 * XmlSerializationWriter.cs: small fix.
2305 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2307 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
2308 Added support for DefaultValueAttribute.
2309 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
2310 the value of an enum.
2311 * XmlTypeMapMember.cs: Added DefaultValue attribute.
2312 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
2315 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2317 * XmlSerializationReader.cs: Minor fix.
2319 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2321 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
2323 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
2325 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2326 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
2327 * XmlCustomFormatter.cs: small fixes.
2328 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2329 * XmlSerializationWriter.cs: Implemented TopLevelElement().
2330 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
2331 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
2332 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
2335 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
2337 * SoapReflectionImporter.cs: implemented.
2338 * TypeTranslator.cs: added IsPrimitive() method
2339 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
2340 used by that one. Also added Format property, that can be literal or encoded.
2341 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
2342 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
2343 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
2344 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
2345 * XmlSerializationWriter.cs: added support for encoded format.
2346 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
2347 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
2348 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
2349 and a map is needed for them).
2350 * XmlTypeMapMemberElement.cs: small fixes.
2351 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
2352 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
2354 2003-06-01 Miguel de Icaza <miguel@ximian.com>
2356 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
2357 UnknownElement): Add line number information.
2359 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
2361 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
2362 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2363 * XmlMapping.cs: Added internal property.
2364 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
2365 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
2366 * XmlReflectionMember.cs: XmlAttributes are now created by default
2367 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
2368 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
2369 Implemented support for XmlMembersMapping.
2370 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
2372 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
2374 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
2375 from xml type to clr type.
2376 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2377 * XmlReflectionMember.cs: Added default constructor.
2378 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
2379 * XmlSerializationWriter.cs: Several fixes.
2380 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2381 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
2382 Added support for enums. Added support for XmlElement and XmlNode.
2383 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
2385 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
2387 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
2388 * XmlCustomFormatter.cs: Added formatting methods.
2389 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
2390 * XmlReflectionMember.cs: Added new constructor.
2391 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
2392 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
2393 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
2394 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
2396 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2398 * Added TypeTableEntry.cs.
2399 * TypeTranslator.cs : changed for non-static use.
2400 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
2401 and GetElementName(). Bugfix so that if any XmlElementAttribute
2402 exists after non-typed XmlElementAttribute then it might be ignored.
2403 Added GetElementIsNullable().
2404 * XmlSerializer.cs :
2405 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
2406 Object memberObj[4].
2407 Deserialize() now uses XmlReader.Depth to check its depth.
2408 Serialize() for non-XmlReader arguments now always write xmldecl.
2409 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
2410 and handles XmlQualifiedName.
2411 Separated SerializeType () from Serialize().
2412 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
2413 IsPropertyTypeSerializable() from SerializeMembers().
2414 SerializeMembers() is now capable of null value and actual type,
2415 which should be included by XmlIncludeAttribute and so on.
2416 Renamed SerializeArray() to SerializeArrayContent(), and added
2417 SerializeCollectionContent().
2418 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
2419 FillTypeTable() is now aware of XmlInclude attributes.
2420 FillEnum() should not have different type table content from others.
2422 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2424 * XmlSerializer.cs : this time, only replaced spaces with tabs.
2426 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2428 * ChangeLog : Added missing ChangeLog of 2003-04-25.
2429 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
2430 separators. Added experimental method ToEnum().
2431 * XmlSerializationReader.cs : unconfirmed implementation of
2432 ReadSerializable() and ToEnum().
2433 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
2434 is null then no output will be written.
2435 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
2436 to use custom formatted name.
2438 2003-05-02 Miguel de Icaza <miguel@ximian.com>
2440 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
2441 had a void return value.
2443 2003-04-26 Miguel de Icaza <miguel@ximian.com>
2445 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
2446 `AllowMultiple' flags.
2448 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2450 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
2451 * XmlReflectionImporter.cs : patch by Erik LeBel.
2452 Now uses XmlRootAttribute to determine element name.
2454 2003-03-17 Miguel de Icaza <miguel@ximian.com>
2456 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
2459 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2461 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
2462 XmlWriter argument should call WriteEndDocument.
2464 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2466 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
2467 not WriteState.Start, and never call WriteEndDocument().
2469 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
2471 * XmlCustomFormatter.cs: Correct signature, Implement
2474 * XmlSerializationWriter.cs: Fix prototype.
2476 * XmlSerializer.cs: Implements Deserialize().
2478 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2480 * XmlSerializer.cs : serializing now works for interface member.
2482 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2484 * XmlSerializer.cs : some fix handling xml node object more correct.
2486 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
2487 * XmlSerializer.cs: Array serialization for 1D arrays works
2488 * TypeTranslator: Added for translations`
2490 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2492 * XmlCustomFormatter.cs: finished.
2493 * XmlSerializationReader.cs: implemented some more methods.
2495 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2497 * XmlSerializationReader.cs: implemented a few methods.
2499 * XmlAnyElementAttribute.cs:
2500 * XmlArrayAttribute.cs:
2501 * XmlChoiceIdentifierAttribute.cs:
2502 * XmlElementAttribute.cs:
2503 * XmlMemberMapping.cs:
2504 * XmlMembersMapping.cs: class status based fixes.
2506 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2508 * CodeIdentifiers.cs:
2509 * XmlSchemaExporter.cs:
2510 * XmlSchemaImporter.cs:
2512 * XmlSerializationWriteCallback.cs:
2513 * XmlSerializationWriter.cs:
2515 * XmlSerializerNamespaces.cs: some class status based fixed and
2516 implemented a couple of methods.
2518 * SoapSchemaExporter.cs: stubbed out.
2520 2002-08-24 Tim Coleman <tim@timcoleman.com>
2521 * SoapCodeExporter.cs:
2522 Fix return value of ExportTypeMapping.
2523 * XmlCustomFormatter.cs:
2524 Change methods to be internal instead of public.
2525 * XmlSerializationWriter.cs:
2526 Modify GetPrimitiveTypeName to build on linux.
2527 Modify GetQualifiedName to return an incrementing prefix
2528 instead of the same one all the time (still need to manage
2530 Modify WriteElementString to only do special stuff is XsiType
2532 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2533 an XmlQualifiedName.
2535 2002-08-22 Tim Coleman <tim@timcoleman.com>
2536 * XmlSerializationReader.cs:
2538 * XmlSerializationWriter.cs:
2540 * XmlCustomFormatter.cs:
2541 Implemented this class.
2543 2002-08-20 Tim Coleman <tim@timcoleman.com>
2544 * XmlSerializationWriter.cs:
2545 Some implementation.
2547 2002-08-19 Tim Coleman <tim@timcoleman.com>
2550 * XmlSerializationWriter.cs:
2553 2002-08-14 Tim Coleman <tim@timcoleman.com>
2555 More reformatting of source code so I can
2556 better understand what it does.
2558 2002-08-06 Tim Coleman <tim@timcoleman.com>
2560 Some reformatting of code for readability.
2561 Modify to correctly serialize ICollection objects
2562 such as the BindingCollection of a ServiceDescription
2565 2002-08-03 Tim Coleman <tim@timcoleman.com>
2567 Changed Implements() to check based on name rather
2568 than FullName. FullName was never working correctly.
2570 2002-07-26 Tim Coleman <tim@timcoleman.com>
2572 The constructor now looks for an XmlRootAttribute attribute
2573 if one is not passed in. Various changes to make it emit
2574 proper XML, such as handling an element without a namespace
2575 prefix, and using WriteEndDocument where it should be.
2577 2002-07-24 Tim Coleman <tim@timcoleman.com>
2578 * CodeIdentifier.cs:
2579 * IXmlSerializable.cs:
2580 * XmlSerializationCollectionFixupCallback.cs:
2581 * XmlSerializationFixupCallback.cs:
2582 * XmlSerializationReadCallback.cs:
2583 * XmlSerializationReader.cs:
2584 * XmlSerializationWriteCallback.cs:
2587 * CodeIdentifiers.cs:
2588 Implement some of these classes
2589 * XmlCodeExporter.cs:
2590 Fix return type of a function
2592 2002-07-24 Tim Coleman <tim@timcoleman.com>
2593 * SoapReflectionImporter.cs:
2594 New class added to build
2595 System.Web.Services.Description.ServiceDescription.cs
2597 2002-07-22 Tim Coleman <tim@timcoleman.com>
2598 * CodeIdentifiers.cs:
2599 * SoapCodeExporter.cs:
2600 * SoapSchemaExporter.cs:
2601 * XmlCodeExporter.cs:
2602 * XmlMemberMapping.cs:
2603 * XmlMembersMapping.cs:
2604 * XmlReflectionImporter.cs:
2605 * XmlReflectionMember.cs:
2606 * XmlSchemaExporter.cs:
2607 * XmlSchemaImporter.cs:
2609 New stubbs added to aid in the linux build of
2610 System.Web.Services.
2612 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
2614 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2616 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2618 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
2620 * XmlSeriailizer: Updated Serialize() method.
2622 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2623 * XmlSerializer: Serialize() method Partially Implemented.
2625 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2627 * Soap & XmlOverrides: Implemented using TypeMember as key with
2628 suggestions from Rafael.