1 2007-02-28 Atsushi Enomoto <atsushi@ximian.com>
3 * SerializationCodeGenerator.cs : fix wrong name comparison:
4 Name->LocalName. Add hacky TARGET_JVM support (hope it is harmless).
6 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
8 * SerializationCodeGenerator.cs,
9 XmlSerializationReaderInterpreter.cs :
10 Handle attributes on non-empty elements as well. Fixed bug #80131.
12 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
14 * SerializationCodeGenerator.cs,
15 XmlSerializationReaderInterpreter.cs :
16 Handle empty root element.
17 Read out attribute parameters. To do that, split attribute
18 reader part from ReadMembers(), as it isn't invoked when the
21 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
23 * XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
25 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
27 * XmlReflectionImporter.cs : CanBeNull() should return true when the
28 argument is generic nullable value type.
30 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
32 * TypeData.cs, MapCodeGenerator.cs, XmlMemberMapping.cs,
33 TypeTranslator.cs : removed IsGenericNullable and added
34 set_IsNullable so that it could be simpler.
36 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
38 * SerializationCodeGenerator.cs, XmlMappingAccess.cs,
39 SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
42 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
44 * SerializationCodeGenerator.cs : hooks won't work unless they are
45 set. For WriteStartElement() it could simply embed the names.
47 2007-02-14 Atsushi Enomoto <atsushi@ximian.com>
49 * XmlTypeMapMember.cs : don't use readonly [Foo]Specified property
50 as nil-condition member. Fixed bug #80759.
52 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
54 * SoapReflectionImporter.cs : for primitive types, set predefined
55 namespaces, regardless of the actual specification.
57 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
59 * XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
61 * XmlSerializationWriterInterpreter.cs,
62 SerializationCodeGenerator.cs : so they have to be handled here.
64 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
66 * XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
67 when the name is null (almost no need to do this, but it is easier
68 to remove NotWorking from extraneous tests and let them hush than
71 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
73 * XmlSerializationWriter.cs : callbacks could be kept null.
75 2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
77 * XmlMemberMapping.cs : uhoh, there is a nasty trick to output
80 2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
82 * TypeData.cs : added get_IsGenericNullable.
83 * MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
84 the TypeData.IsGenericNullable.
85 Use GetDomType() instead of CodeTypeReference.ctor() to not lose
87 * XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
88 so that it won't XmlSchemaElement.IsNillable.
90 Fixed wrong TypeData modification against non-nullable stuff.
91 Added another GetTypeData() that takes isNullableRuntimeType so
92 that it won't miss XmlSchemaElement.IsNillable.
93 Added another GetPrimitiveTypeData() that takes nullable.
95 2007-01-15 Atsushi Enomoto <atsushi@ximian.com>
97 * TypeData.cs : reject generic type definitions.
98 * TypeTranslator.cs : Make generic type names in XML compatible with
99 .net: foo_x0060_1 -> fooOfString.
101 2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
103 * SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
104 GenerateToXmlString() needed hexBinary support as well. Since
105 XmlConvert.[To|From]BinHexString() are internal, use reflection.
106 Really fixed bug #79989 and #79990 for generated serializers.
108 2006-12-03 Gert Driesen <drieseng@users.sourceforge.net>
110 * XmlSchemaExporter.cs: Emit xml name of enum-based default values.
111 Set XmlSchemaAttribute.Use to Required if no default value is defined,
112 and member is not an optional value type. Element should have minOccurs
113 1 if value type member has default value. Output flag enum type as
114 xsd list with restriction.
115 * XmlReflectionImporter.cs: Removed special casing of enums. Instead
116 of passing namespace of XmlAttribute to ImportTypeMapping, use the
117 default namespace for importing the member type.
119 2006-12-02 Gert Driesen <drieseng@users.sourceforge.net>
121 * SerializationCodeGenerator.cs: Initialize out parameters if they
122 are value types. Fixed bug #79988.
123 * XmlSerializationReaderInterpreter.cs: Same.
125 2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
127 * XmlReflectionImporter.cs : implemented several missing check and
128 support for XmlArrayAttribute. Fixed bug #78042.
130 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
132 * XmlCustomFormatter.cs : handle hexBinary type. Fixed bug #79989
135 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
138 * TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
139 "nullable" information. Introduced new primitiveNullableTypes pool
140 whose TypeData has 'true' for new IsNullable property. This
141 property is also used for non-primitive types.
142 * XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
143 of IsValueType, to handle nullable types.
145 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
147 * TypeTranslator.cs : Hari knew better way to do it.
149 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
151 * TypeTranslator.cs : #if NET_2_0 for generic thingy.
153 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
155 * TypeTranslator.cs : (GetTypeData) when the argument type is
156 Nullable<T>, use T instead. At run time (on both interpreter and
157 generated code) it is converted to T. Fixed bug #79803.
159 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
161 * SerializationCodeGenerator.cs, TypeData.cs :
162 Now we differentiate TypeName, FullTypeName C# type names. It is
163 to create valid C# sources especially for generic types.
166 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
168 * XmlSerializationReader.cs : (ReadReferencedElement)
169 Sometimes there are array types in WSDL, which are not reflected
170 in client proxies. In SOAP messages, they are marked
171 soap-env:arrayType, so use it (this could coexist with xsi:type,
172 which indicates the type in WSDL). Fixed bug #79057.
174 2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
176 * XmlSerializationReader.cs : implement ToByteArray[Base64|Hex]().
177 removed extra ReadSerializable().
178 * XmlTypeMapping.cs : added XsdTypeName and XsdTypeNamespace.
180 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
182 * SerializationCodeGenerator.cs,
183 SerializationCodeGeneratorConfiguration.cs :
184 make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
185 (or it is impossible to use genxs more than twice in an assembly.)
187 2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
190 * XmlReflectionImporter.cs : Compute nullable correctly. Elements are
191 nillable when its type is a reference type.
192 * XmlSchemaExporter.cs :
193 Set XmlTypeMapElementInfo.IsNullable from XmlTypeMapping.
194 Set XmlSchemaElement.IsNillable from XmlTypeMapElementInfo.
196 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
198 * XmlSchemaImporter.cs : top-level element might also have no type
199 name specification, so just compare ElementType with anyType.
201 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
203 * XmlSchemaImporter.cs : attributes might overlap by extending
204 base content models. Since invalid content models are rejected by
205 Compile(), simply ignore duplicating attributes. Note that it is
206 basically hack, which should not skip derived ones but use them (but
207 it is mostly harmless since the result is very unlikely to differ).
209 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
211 * XmlSchemaImporter.cs : when top-level element is xs:anyType, all
212 complexTypes must be also imported.
214 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
216 * XmlSchemaImporter.cs : ImportTypeMapping() raises exception when
217 the argument name is not bound to any elements.
219 2006-11-07 Atsushi Enomoto <atsushi@ximian.com>
221 * XmlCustomFormatter.cs : consider null base64 byte array value.
224 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
226 * CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
227 explicitly say Obsolete instantiation.
228 * CodeIdentifiers.cs : implemented case-insensitive mode.
229 * XmlSerializerAssemblyAttribute.cs : added missing .ctor().
230 * SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
231 in 2.0 profile it could also be applied to an interface.
232 * SoapReflectionImporter.cs,
233 XmlReflectionImporter.cs,
234 XmlMappingAccess.cs :
235 added missing ImportMembersMapping overload and moved actual
236 implementation to most lengthy-arglist one. To make it possible,
237 XmlMappingAccess is included in 1.x as internal enum.
239 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
241 * XmlSchemaImporter.cs : initialize extensions from configuration.
243 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
245 * SchemaImporterExtension.cs,
246 SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
248 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
250 * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
251 * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
252 became a class, it needs explicit "override".
253 Since InternalSyncObject is gone, it needs another lock target.
254 * IXmlSerializerImplementation.cs : removed.
255 * XmlSerializerImplementation.cs : added.
256 * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
257 IXmlSerializerImplementation -> XmlSerializerImplementation.
258 * XmlSchemas.cs : removed Schemas. hacked Compile().
259 Now it implements IEnumerable<XmlSchema>.
260 * XmlSchemaEnumerator.cs : added missing type.
262 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
264 * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
265 is not considered in XmlSerializationReader yet.
266 * XmlElementEventArgs.cs : added ExpectedElements. Note that it
267 is not considered in XmlSerializationReader yet.
268 * XmlSerializationReader.cs : added some overloads for
269 UnknownElement()/-Attribute()/-Node().
271 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
273 * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
275 * XmlSerializationCollectionFixupCallback.cs,
276 XmlNodeEventHandler.cs,
277 XmlSerializationReadCallback.cs,
278 UnreferencedObjectEventHandler.cs,
279 XmlSerializationWriteCallback.cs,
280 XmlAttributeEventHandler.cs,
281 XmlElementEventHandler.cs,
282 XmlSerializationFixupCallback.cs :
283 exclude [Serializable] in NET_2_0.
284 * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
285 * XmlSerializerVersionAttribute.cs : removed [Obsolete].
286 * XmlMappingAccess.cs : it is [Flags].
287 * SchemaImporter.cs : implement Extensions.
288 * XmlAnyElementAttribute.cs,
289 XmlArrayAttribute.cs : added Order.
290 Note that it is not considered in XmlSerializer yet.
292 2006-10-25 Ankit Jain <jankit@novell.com>
294 * SerializationCodeGenerator.cs (GenerateContract): Handle
295 'generateAsInternal' config option.
297 2006-10-10 Gert Driesen <drieseng@users.sourceforge.net>
299 * XmlSerializer.cs: Output namespace declarations in same order as
302 2006-10-08 Gert Driesen <drieseng@users.sourceforge.net>
304 * XmlSerializer.cs: Corrected exception message when deserialization
306 * SerializationCodeGenerator.cs: Added support for flag enums.
307 * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
308 all exceptions that occur while reflecting member. Validate default
310 * SoapReflectionImporter.cs: Revert small part of previous patch as
311 XmlSerializer expects enum value.
313 2006-10-01 Gert Driesen <drieseng@users.sourceforge.net>
315 * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
316 thrown during creation of map member bubble up. Only allow
317 SoapAttribute on primitive types and enums. Obtain default value for
320 2006-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
322 * XmlTypeAttribute.cs: added property AnonymousType for 2.0
324 2006-09-12 Lluis Sanchez Gual <lluis@novell.com>
326 * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
328 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
330 * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
333 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
335 * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
336 to strings. Make sure maps returned by ImportClassSimpleType are always
337 simple type maps. All this fixes bug #77585.
339 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
341 * XmlSchemaImporter.cs: Always import simple type unions
342 as string (like MS.NET does). Fixes bug #79234.
344 2006-08-25 Kornél Pál <kornelpal@gmail.com>
346 * MapCodeGenerator.cs: Use assembly file version constants.
348 2006-07-24 Atsushi Enomoto <atsushi@ximian.com>
350 * XmlMappingAccess.cs : new type in 2.0 RTM.
351 * XmlCodeExporter.cs, SoapCodeExporter.cs,
353 XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
354 SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
355 XmlMemberMapping.cs, XmlSerializationReader.cs :
356 several 2.0 API fixes from betas to RTM.
358 2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
360 * XmlTypeMapMember.cs: Added GlobalIndex property.
361 * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
363 * SerializationCodeGenerator.cs:
364 * XmlSerializationWriterInterpreter.cs:
365 * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
366 Index to get/set the values from the input array, since some Index
367 values are shared between attribute and element members. Fixes
370 2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
372 * SerializationCodeGenerator.cs,
373 XmlSerializerReaderInterpreter.cs : handle CDATA section as text
374 node. Fixed bug #78536.
376 2006-05-15 Gert Driesen <drieseng@users.sourceforge.net>
378 * XmlCodeExporter.cs: Added bool argument to GenerateClass and
379 GenerateEnum methods that specifies whether we're dealing with a type
380 for a top-level element. In GenerateClass, do not always add Namespace
381 argument for XmlRootAttribute if isTopLevel is false, and do not
382 emit XmlRootAttribute if isTopLevel is false and no arguments have been
384 * SoapCodeExporter.cs: Added bool argument to GenerateClass and
385 GenerateEnum methods.
386 * MapCodeGenerator.cs: Added bool argument to GenerateClass and
387 GenerateEnum methods.
389 2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
391 * SerializationCodeGenerator.cs: Allow generating serializer for
392 reading an XmlElement or XmlDocument as root element.
393 Properly generate jagged array creation.
395 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
397 * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
399 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
401 * SerializationCodeGenerator.cs: For flag enums, we should split on all
402 whitespace chars instead of only on blanks.
403 * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
404 constant name(s) to integral enum value.
406 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
408 * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
409 as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
411 2006-04-24 Gert Driesen <drieseng@users.sourceforge.net>
413 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
414 allow XML Schema items to be added to its parent in the same order
415 as MS.NET (schema elements before complex types, ...).
417 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
419 * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
420 GenerateProperties. Use full type name for XML serialization attributes
421 instead of shortcut (without Attribute suffix). Always add Namespace
422 argument for XmlRootAttribute on classes. Added IsNullable argument for
423 XmlRootRootAttribute on classes. For attribute members, only output
424 Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
425 ctor that takes CodeGenerationOptions.
426 * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
427 CodeGenerationOptions.
428 * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
429 profile, emit GeneratedCodeAttribute, SerializableAttribute,
430 DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
431 To match MS.NET, emit attribute members before element members.
432 * XmlReflectionImporter.cs: Enums are never nullable.
433 * XmlSchemaImporter.cs: Set IsNullable on map using value of
434 XmlSchemaElement.IsNillable. Added LocateElement overload that takes
437 2006-04-15 Gert Driesen <drieseng@users.sourceforge.net>
439 * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
440 to XmlReflectionImporter and SoapReflectionImporter to keep from
441 always ending up with the XSD type that directly maps to the CLR type.
442 * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
443 Type. This improves performance by avoiding the use of
444 TypeTranslator.GetTypeData for types imported from a schema and fixes
446 * SoapReflectionImporter.cs: Same.
448 2006-04-11 Lluis Sanchez Gual <lluis@novell.com>
450 * XmlSchemas.cs: In 1.1, don't allow adding two schemas
451 with the same namespaces. This is allowed in 2.0. Fixed
452 the Find() method to cope with this case. Based on a patch
455 2006-03-22 Gert Driesen <drieseng@users.sourceforge.net>
457 * XmlReflectionImporter.cs: Throw NotSupportException instead of
458 InvalidOperationException (IOE) if void is specified as type in
459 ImportTypeMapping. To match MS.NET, surround importing of type in
460 try/catch block, and wrap any IOE in another IOE adding information
461 on the type that was being reflected. In CreateTypeMapping, surround
462 creating of map member in try/catch block, and wrap any IOE in another
463 IOE adding information on the member that was being reflected.
464 Modified exception message for missing enumeration value to match
465 MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
466 XmlTextAttribute, and it differs from type of reflected member when
467 schema type of member is primitive or enum. Fixed bug #77591.
469 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
471 * XmlSchemaExporter.cs: Import namespace of schema generated for
472 non-xsd primitive. Do not set zero-length TargetNamespace to avoid
473 emitting empty targetNamespace attribute in generated schema.
474 * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
477 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
479 * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
480 Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
481 serialization of integral value to enum constant name, and made sure
482 the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
483 throw InvalidOperationException if no matching enum constant exists.
484 In EnumMap ctor, initialize arrays holding XML names, enum names and
486 * XmlSerializationReaderInterpreter.cs: Pass full type name to
487 EnumMapping.GetEnumName for construction of exception message.
488 * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
489 and InvalidCastException in another InvalidOperationException to match
490 MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
491 and the inner exception for a TargetInvocationException in an
492 InvalidOperationException to match MSFT.
493 * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
494 XmlCustomFormatter.FromEnum in order to also support serialization
495 integral value to enum constant name. In 2.0 profile, throw
496 InvalidOperationException if numeric value cannot be serialized into
497 an enum constant value. In GenerateSingleEnumValue, no longer attempt
498 to parse unknown constant value but instead report it as
499 InvalidOperationException. Use string.Length instead of "" comparison
500 to check whether a string is empty. Fixed compiler warnings in
501 generated code (possible empty statement).
502 * XmlSerializationWriterInterpreter.cs: Pass full type name to
504 * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
505 to allow it to be used in exception messages.
506 * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
507 enum fields. Use IsDefined instead of GetCustomAttributes for checking
508 if a certain attribute is defined. Use integral value of enum constant
509 in EnumMapMember ctor.
510 * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
511 enum fields. Use IsDefined instead of GetCustomAttributes for checking
512 if a certain attribute is defined. Use integral value of enum constant
513 in EnumMapMember ctor.
515 2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
517 * XmlReflectionImporter.cs: Ignore the element namespace if
518 the schema form is set to Unqualified. Fixes bug #75019.
520 2006-02-22 Gert Driesen <drieseng@users.sourceforge.net>
522 * SerializationCodeGenerator.cs: Omit return statement in ReadObject
523 method if GenerateReadListElement returns null. Fixes bug #77588.
525 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
527 * XmlSerializer.cs: Fix the previous fix.
529 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
531 * XmlSerializer.cs: Added option to avoid falling back to the
532 interpreted serializer if the code generator fails. To be used
535 2006-02-16 Gert Driesen <drieseng@users.sourceforge.net>
537 * TypeData.cs: Fixed the following issues when dealing with Array
539 - if a type implements IDictionary, throw a NotSupportedException
540 - if a type implements ICollection, then an Add method must exist
541 which takes a single argument of a type to which the listitem type
542 is assignable (meaning a base type or an interface that it
543 implements). If such a method does not exist, then throw an
544 InvalidOperationException.
545 - if a type implements IEnumerable, then the listitem type is
546 determined by the type of the Current property of the (IEnumerator)
547 type returned by the GetEnumerator() method or the private
548 implementation of IEnumerable.GetEnumerator(). If there's no
549 public Current property on the IEnumerator, then System.Object
550 is assumed as listitem type. Similar as for types implementing
551 ICollection, an Add method must exist which takes a single argument
552 of a type to which the listitem type is assignable (meaning a base
553 type or an interface that it implements). If such a method does not
554 exist, then throw an InvalidOperationException.
556 2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
558 * XmlSchemaImporter.cs: Support importing complex types with
559 simple content based on enums. Fixes bug #76848.
561 2006-02-11 Gert Driesen <drieseng@users.sourceforge.net>
563 * SoapAttributeAttribute.cs: Set eol-style to CRLF.
564 * SoapElementAttribute.cs: Same.
565 * SoapEnumAttribute.cs: Same.
566 * SoapIncludeAttribute.cs: Same.
567 * SoapSchemaMember.cs: Same.
568 * SoapTypeAttribute.cs: Same.
569 * XmlArrayAttribute.cs: Same.
570 * XmlAttributeAttribute.cs: Same.
571 * XmlChoiceIdentifierAttribute.cs: Same.
572 * XmlElementAttribute.cs: Same.
573 * XmlEnumAttribute.cs: Same.
574 * XmlRootAttribute.cs: Same.
575 * XmlSchemaImporter.cs: Same.
576 * XmlTextAttribute.cs: Same.
577 * XmlTypeAttribute.cs: Same.
578 * XmlTypeMapping.cs: Same.
579 * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
580 * CodeIdentifiers.cs: Same.
581 * SoapCodeExporter.cs: Same.
582 * SoapAttributes.cs: Same.
583 * SoapIgnoreAttribute.cs: Same.
584 * SoapSchemaImporter.cs: Same.
585 * TypeMember.cs: Same.
586 * UnreferencedObjectEventArgs.cs: Same.
587 * XmlAnyAttributeAttribute.cs: Same.
588 * XmlAnyElementAttributes.cs: Same.
589 * XmlArrayItemAttributes.cs: Same.
590 * XmlAttributeEventArgs.cs: Same.
591 * XmlCodeExporter.cs: Same.
592 * XmlElementAttributes.cs: Same.
593 * XmlElementEventArgs.cs: Same.
594 * XmlIgnoreAttribute.cs: Same.
595 * XmlNamespaceDeclarationsAttribute.cs: Same.
596 * XmlNodeEventArgs.cs: Same.
597 * XmlReflectionMember.cs: Same.
598 * XmlSchemas.cs: Same.
599 * XmlSerializerNamespaces.cs: Same.
600 * XmlTypeMapMemberElement.cs: Set eol-style to native.
602 2006-02-10 Gert Driesen <drieseng@users.sourceforge.net>
604 * CodeExporter.cs: Set eol-style to native.
605 * CodeGenerationOptions.cs: Same.
606 * CodeIdentifier.cs: Same.
607 * ImportContext.cs: Same.
608 * IXmlSerializable.cs: Same.
609 * IXmlSerializerImplementation.cs: Same.
610 * IXmlTextParser.cs: Same.
611 * MapCodeGenerator.cs: Same.
612 * ReflectionHelper.cs: Same. Fixed line endings.
613 * SchemaImporter.cs: Same.
614 * SchemaImporterExtensionCollection.cs: Same.
615 * SchemaImporterExtension.cs: Same.
616 * SchemaTypes.cs: Same.
617 * SerializationCodeGeneratorConfiguration.cs: Same.
618 * SerializationCodeGenerator.cs: Same.
619 * SerializationSource.cs: Same.
620 * SoapReflectionImporter.cs: Same.
621 * SoapSchemaExporter.cs: Same.
623 * TypeTranslator.cs: Same.
624 * UnreferencedObjectEventHandler.cs: Same.
625 * XmlAnyElementAttribute.cs: Same.
626 * XmlArrayItemAttribute.cs: Same.
627 * XmlAttributeEventHandler.cs: Same.
628 * XmlAttributeOverrides.cs: Same.
629 * XmlAttributes.cs: Same.
630 * XmlDeserializationEvents.cs: Same.
631 * XmlElementEventHandler.cs: Same.
632 * XmlIncludeAttribute.cs: Same.
633 * XmlMapping.cs: Same.
634 * XmlMemberMapping.cs: Same.
635 * XmlMembersMapping.cs: Same.
636 * XmlNodeEventHandler.cs: Same.
637 * XmlReflectionImporter.cs: Same.
638 * XmlSchemaExporter.cs: Same.
639 * XmlSchemaProviderAttribute.cs: Same.
640 * XmlSerializationCollectionFixupCallback.cs: Same.
641 * XmlSerialiationFixupCallback.cs: Same.
642 * XmlSerializationGeneratedCode.cs: Same.
643 * XmlSerializationReadCallback.cs: Same.
644 * XmlSerializationReader.cs: Same.
645 * XmlSerializationReaderInterpreter.cs: Same.
646 * XmlSerializationWriteCallback.cs: Same.
647 * XmlSerializationWriterInterpreter.cs: Same.
648 * XmlSerializerAssemblyAttribute.cs: Same.
649 * XmlSerializer.cs: Same.
650 * XmlSerializerFactory.cs: Same.
651 * XmlSerializerVersionAttribute.cs: Same.
652 * XmlTypeMapElementInfo.cs: Same.
653 * XmlTypeMapMemberAttribute.cs: Same.
654 * XmlTypeMapMember.cs: Same.
655 * XmlTypeMapMemberNamespaces.cs: Same.
657 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
659 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
660 if map represents enum. Fixes bug #77501.
662 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
664 * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
665 CreateInvalidEnumValueException. Set eol-style to native.
666 * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
667 enum for which string value must be created. Set eol-style to native.
668 Modified FromEnum to behave more like MSFT's implementation:
669 - treat value as bit field.
670 - no longer return empty string if the value matches an id for which there's no corresponding
672 - if one of the ids has value 0 and there's a match for the enum value
673 (with a zero length XML name) or the enum value is 0, then return the
674 corresponding XML for the id with value 0.
675 - in 2.0 profile, throw InvalidOperationException if no match is found
676 for (part of) the enum value.
677 Modifies ToEnum to match the MSFT implementation (as described in
679 - Expect hashtable containing enum names as key, and corresponding
680 integral numbers as value.
681 - Do not report exception for whitespace-only value.
682 - Support space (MS docs are not clear about this) delimited list
684 - typeName is only used to construct exception message.
686 2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
688 * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
689 looking for the correct element definition for a member,
690 based on the value type, take into account subypes of the
691 declared types. Fixes bug #77447.
693 2006-02-07 Konstantin Triger <kostat@mainsoft.com>
695 * XmlReflectionImporter.cs: remove local name encoding for enums.
697 2006-01-08 Gert Driesen <drieseng@users.sourceforge.net>
699 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
701 2006-01-07 Gert Driesen <drieseng@users.sourceforge.net>
703 * XmlTypeMapping.cs: Fixed line endings.
704 * TypeTranslator.cs: Fixed line endings.
706 2005-12-07 Lluis Sanchez Gual <lluis@novell.com>
708 * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
709 collection, don't create a new collection if the property already has a
711 * SerializationCodeGenerator.cs: same as above. Also return an empty
712 string for flag enum default values.
714 2005-12-06 Konstantin Triger <kostat@mainsoft.com>
716 * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
718 2005-12-05 Lluis Sanchez Gual <lluis@novell.com>
720 * XmlSerializationReaderInterpreter.cs:
721 * SerializationCodeGenerator.cs: When deserializing a collection,
722 don't create a new collection if the property already has a
723 collection instance. This does not apply to arrays. Changed how nullabe
724 array properties are set. Setting IsNullable=false to the property means
725 that it won't be set if the read array is null (so, if the property
726 already has a value, it will be kept).
727 Another change is that can't never be null (only arrays can).
729 2005-12-01 Lluis Sanchez Gual <lluis@novell.com>
731 * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
732 a cli array type, consider it refering to the type of array elements.
733 This fixes bug #76860. Also added some locking.
735 2005-11-27 Konstantin Triger <kostat@mainsoft.com>
737 * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
738 export non-xsd primitive types.
740 2005-11-24 Vladimir Krasnov <vladimirk@mainsoft.com>
742 * XmlTypeMapping.cs: fixed GetXmlName method, added difference
743 of value serialization of flags and non-flags enums
745 2005-11-23 Konstantin Triger <kostat@mainsoft.com>
747 * XmlSchemaExporter.cs: do not import empty namespaces.
749 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
751 * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
752 method, ReadEndElement should check XmlNodeType.
753 * XmlTypeMapping.cs: fixed GetXmlName method, it should not
754 write zero as default enum value.
756 2005-11-16 Vladimir Krasnov <vladimirk@mainsoft.com>
758 * XmlReflectionImporter.cs: fixed field order returned by
759 reflection in method GetReflectionMembers. TARGET_JVM only.
761 2005-11-07 Lluis Sanchez Gual <lluis@novell.com>
763 * XmlSchemaImporter.cs: Added support for restrictions with
764 embedded simple type definitions.
766 2005-11-04 Atsushi Enomoto <atsushi@ximian.com>
768 * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
769 sys.xml.schema corcompare diffs.
771 2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
773 * SerializationCodeGenerator.cs:
774 * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
775 need to be all XmlElments. Fix by Atsushi for bug #76288.
777 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
779 * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
780 In ListMap.FindElement, take into account the ChoiceMember
782 * SerializationCodeGenerator.cs:
783 * XmlSerializationReaderInterpreter.cs: For lists with a choice
784 member, fill the member with the corresponding enum values.
785 * XmlReflectionImporter.cs: Properly reflect the choice member
786 when applied to a list.
787 * XmlSerializationWriterInterpreter.cs: Track class changes.
788 * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
789 All this fixes bug #76203.
791 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
793 * SoapReflectionImporter.cs: Check the correct defaults
796 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
798 * SerializationSource.cs: Fix nullref.
799 * XmlReflectionImporter.cs: When registering a type using
800 IncludeType(), make sure it is added as a subtype and the
801 map for typeof(object) if it has already been imported.
804 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
806 * XmlSerializationWriter.cs: Also internally serialize
807 arrays of object (see previous change).
809 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
811 * XmlSerializationWriter.cs: Properly serialize arrays
812 of primitive types when not explicitely specified in
813 a container class. Based on a patch by Konstantin Triger.
816 2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
818 * TypeData.cs: Reset the hasPublicConstructor flag when the
819 type is an interface.
820 * XmlSerializationWriterInterpreter.cs: Get the Count property
821 from the object type instead of the property type (it didn't
823 * ReflectionHelper.cs: In CheckSerializableType, don't trow
824 if the type is a collection interface. All this fixes
827 2005-08-06 Lluis Sanchez Gual <lluis@novell.com>
829 * XmlTypeMapping.cs: Added null check.
831 2005-08-05 Lluis Sanchez Gual <lluis@novell.com>
833 * XmlTypeMapping.cs: Added ListMembers property that returns
834 members which are collections.
835 * SerializationCodeGenerator.cs:
836 * XmlSerializationReaderInterpreter.cs: Initialize collection
837 members to an empty collection by default. Fixes bug #75662.
839 2005-08-01 Gert Driesen <drieseng@users.sourceforge.net>
841 * XmlMapping.cs: API compatibility fixes. Ctor is not protected
842 in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
844 2005-07-31 Gert Driesen <drieseng@users.sourceforge.net>
846 * SoapAttributeAttribute.cs: Return zero-length string if
847 AttributeName or DataType are null.
848 * SoapEnumAttribute.cs: Return zero-length string if Name is null.
849 * SoapIncludeAttribute.cs: Avoid using property in ctor.
850 * SoapSchemaMember.cs: Return zero-length string if MemberName is
851 null. MemberType should be XmlQualifiedName.Empty by default.
852 * SoapTypeAttribute.cs: Return zero-length string if TypeName is
853 null. Avoid using property in ctor.
854 * XmlArrayAttribute.cs: Return zero-length string if ElementName is
855 null. Avoid using property in ctor.
856 * XmlArrayItemAttribute.cs: IsNullable must be false by default.
857 Return zero-length string if DataType or ElementName are null. Avoid
858 using property in ctor.
859 * SoapElementAttribute.cs: Return zero-length string when DataType
860 or ElementName are null. Avoid using property in ctor.
861 * XmlAnyElementAttribute.cs: Return zero-length string when Name is
862 null. Avoid using property in ctor.
863 * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
864 zero-length string if AttributeName or DataType are null.
865 * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
867 * XmlElementAttribute.cs: Return zero-length string when DataType or
868 ElementName are null. Avoid using property in ctor.
869 * XmlEnumAttribute.cs: Avoid using property in ctor.
870 * XmlIncludeAttribute.cs: Avoid using property in ctor.
871 * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
872 can no longer be null. Use check for zero-length string to determine
873 whether they are set. Corrected exception message when DataType is
874 set for complex type.
875 * XmlRootAttribute.cs: Return zero-length string if DataType or
876 ElementName are null. Avoid using property in ctor.
877 * XmlTextAttribute.cs: Return zero-length string if DataType is null.
878 * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
880 2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
882 * SerializationCodeGenerator.cs: In the generated serializer always
883 use the Object equality operator when comparing objects to serialize
884 to null, since those objects may have the equality operator
885 overloaded. This fixes bug #75543.
887 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
889 * XmlCustomFormatter.cs: Properly read/write duration values.
891 2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
893 * XmlSerializer.cs: Fix race between XmlSerializer and the
894 serializer generator.
896 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
898 * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
899 getting the real xml type name of a member.
900 * XmlSerializationWriterInterpreter.cs: Use that new property
901 to get the type name of primitive types. This should fix bug #75180.
903 2005-06-07 Lluis Sanchez Gual <lluis@novell.com>
905 * SerializationCodeGenerator.cs: When reading members by order,
906 call a MoveToContext after each member read. In the fixup method
907 don't cast returned values if it is reading an object array.
909 * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
910 being imported is a primitive type, create a wrapper class that
911 inherits from the provided one. This fixes bug #68809.
913 * XmlSerializationReader.cs: Properly report unreferenced objects.
914 Created an overload of ReadTypedPrimitive that reports elements of
915 unknown type. Implemented Referenced().
917 2005-05-30 Lluis Sanchez Gual <lluis@novell.com>
919 * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
920 set to the default namespace. This fixes bug #73035.
922 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
924 * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
925 types indirectly imported by this method use the same namespace.
927 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
929 * TypeTableEntry.cs : removed obsolete code.
931 2005-04-26 Lluis Sanchez Gual <lluis@novell.com>
933 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
934 properties which are read only. Fixes bug #74723.
936 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
938 * XmlReflectionImporter.cs:
939 * SoapReflectionImporter.cs:
940 * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
941 where needed. Based on a patch by Konstantin Triger.
943 2005-04-12 Lluis Sanchez Gual <lluis@novell.com>
945 * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
946 * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
947 export the schema that it defines. In ImportNamespace, removed
948 check for default namespace, since it may be included from a non
950 * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
951 types. All this based on a patch by Konstantin Triger.
953 * SerializationCodeGenerator.cs:
955 * XmlSerializationReaderInterpreter.cs:
956 * SoapCodeExporter.cs:
957 * XmlTypeMapMemberAttribute.cs:
958 * XmlSerializationReader.cs:
959 * XmlCodeExporter.cs: Fixed some warnings.
961 2005-04-10 Andrew Skiba <andrews@mainsoft.com>
963 * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
965 2005-04-03 Andrew Skiba <andrews@mainsoft.com>
967 * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
970 2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
972 * SerializationCodeGenerator.cs:
973 * XmlSerializationReaderInterpreter.cs: If the element being read is
974 bound to a choice member, set the corresponding value.
975 * XmlTypeMapMember.cs: Added helper SetValue method.
976 * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
977 since now stores the enum value.
978 * XmlReflectionImporter.cs: Properly import choice values.
979 * XmlTypeMapMemberElement.cs: Added setter for the choice.
981 2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
983 * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
984 This fixes bug #73901 and should fix #70384.
985 * XmlSerializationReader.cs: When reading an object element, return
986 an Object instance if the element has no children. This fixes bug #73974.
987 * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
988 type (it is written as an element with those nodes as children).
990 2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
992 * XmlSchemaImporter.cs: Support importing schemas that define
993 extra types in the standard xml schema namespace. When using encoded
994 format, support the primitive types defined by the SOAP encoding
997 2005-03-04 Lluis Sanchez Gual <lluis@novell.com>
999 * ReflectionHelper.cs: Avoid endless loop.
1000 * XmlSchemas.cs: Added null check. Patches from MainSoft.
1002 2005-02-07 Lluis Sanchez Gual <lluis@novell.com>
1004 * XmlSerializationReader.cs: After reading an href element, skip the
1005 whole element (it may not be an empty element). This fixes bug #72265.
1007 2005-01-25 Lluis Sanchez Gual <lluis@novell.com>
1009 * XmlSchemaImporter.cs: When importing a default value of type enum,
1010 translate it from the schema value to the clr value.
1012 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1014 * XmlSerializer.cs: only print the results if there's an error
1017 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1019 * SerializationCodeGenerator.cs: don't use _config if it has not been
1022 2005-01-18 Lluis Sanchez Gual <lluis@novell.com>
1024 * XmlReflectionImporter.cs: Don't check the property type if it has
1025 an [XmlIgnore] attribute. This fixes bug #71332.
1027 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
1029 * SerializationCodeGenerator.cs,
1030 XmlSerializationWriterInterpreter.cs : exchanged attribute
1031 serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
1032 xmlns attributes in XmlAnyAttribute are not written.
1034 2005-01-12 Atsushi Enomoto <atsushi@ximian.com>
1036 * SerializationCodeGeneratorConfiguration.cs,
1037 SerializationCodeGenerator.cs : Added some generation configuration:
1038 <generateAsInternal>
1039 write custom reader/writer as internal classes.
1040 <noreader>, <nowriter>
1041 They make generation of reader and/or writer optional.
1042 * XmlSerializerNamespaces.cs :
1043 Now it uses ListDictionary instead of Hashtable.
1044 * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
1045 written unless there is already the same prefix-ns mapping.
1047 2005-01-12 Lluis Sanchez Gual <lluis@novell.com>
1049 * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
1050 * XmlSchemaImporter.cs: When importing a base type of a complex type,
1051 make sure that the base class is always imported as a class and not
1052 as an array. If it has been imported as array, import it again.
1053 This fixes bug #70839. Other minor fixes as well.
1054 * XmlSerializationWriter.cs: Fixed warning.
1056 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1058 * SerializationCodeGenerator.cs: Yet another generation fix.
1060 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1062 * SerializationCodeGenerator.cs: Fixed generation of enum literals.
1064 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1066 * XmlReflectionMember.cs: Added DeclaringType member.
1067 * XmlReflectionImporter.cs: When importing fields that belong to a
1068 base class, use the xml namespace of the base map for the member.
1069 This fixes bug #70309.
1071 2004-11-30 Lluis Sanchez Gual <lluis@novell.com>
1073 * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
1074 compilation warnings.
1076 2004-11-24 Lluis Sanchez Gual <lluis@novell.com>
1078 * SerializationSource.cs: Made SerializationSource abstract, and
1079 renamed Equals to BaseEquals to avoid missing GetHashCode warning
1080 (it does not really make sense in this case).
1081 * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
1082 XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1083 XmlSerializationReader.cs: Fixed warnings.
1085 2004-10-19 Atsushi Enomoto <atsushi@ximian.com>
1087 * XmlSerializationWriter.cs : When namespace is an empty string,
1088 XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
1091 2004-10-01 Lluis Sanchez Gual <lluis@novell.com>
1093 * MapCodeGenerator.cs: When the Object type is exported, export all
1094 derived maps. This was done in IncludeMetadata, but this method is
1095 not called by the xsd tool.
1096 * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
1097 attribute for primitive types and arrays.
1098 * XmlSchemaImporter.cs: Only export all object-derived maps if the
1099 Object type is explicitly referenced by an element.
1100 * XmlSerializationWriter.cs: Minor fix.
1102 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
1104 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
1105 This fixes bug #66877.
1107 2004-09-21 Lluis Sanchez Gual <lluis@novell.com>
1109 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1110 when reading a primitive value in encoded format using
1111 ReadReferencingElement, provide the type name and namespace
1112 since the xsi type may not be present in the xml element. This
1115 2004-09-15 Lluis Sanchez Gual <lluis@novell.com>
1117 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
1118 ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
1119 * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
1120 ImportIncludedTypes to the end, to make sure that the current map has all
1121 needed data before derived maps are constructed.
1122 * XmlSchemaExporter.cs: Generate the base class of simple types that are
1123 not primitive types. Set the correct value for IsMixed in extended types.
1124 * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
1125 the base class of a simple type doesn't need to be a xsd type.
1126 All those patches fix bug #65654.
1128 2004-09-03 Lluis Sanchez Gual <lluis@novell.com>
1130 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
1131 Normalization==true by default.
1133 2004-09-02 Lluis Sanchez Gual <lluis@novell.com>
1135 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
1136 In CheckSerializableType, add the option of ignoring types with private
1137 constructors. Some kind of lists can be deserialized
1138 even if the constructor is private. See bug #61464.
1139 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1140 Before creating a list, check that it has a public constructor.
1141 * TypeData.cs: Added HasPublicConstructor property.
1143 2004-09-01 Lluis Sanchez Gual <lluis@novell.com>
1145 * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
1146 value list serialization.
1147 * XmlSchemaImporter.cs: Added some null checks.
1149 2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
1151 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1152 When deserializing an encoded method response, assign to the return value
1153 the first element of the message, whatever it is. The return type doesn't
1154 need to be Object, it seems to be true for all return types.
1156 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
1158 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
1159 no need to add it after the call.
1160 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
1162 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
1164 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
1165 * ImportContext.cs: Implemented.
1166 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
1167 options for 2.0. Implemented support for generating properties instead of
1169 * XmlSchemaImporter.cs: Added support for sharing types.
1171 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
1173 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
1174 xsd type is not part of the last schema specification, but the google api
1175 uses it and ms.net accepts it.
1177 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
1179 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
1180 Thanks to Juan C. Olivares.
1182 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
1184 * CodeExporter.cs: Added private constructor.
1185 * CodeGenerationOptions.cs: Set the correct enum values.
1186 * CodeIdentifier.cs: Added private constructor.
1187 * SchemaImporter.cs: Added internal constructor.
1188 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
1189 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
1190 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
1191 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
1192 * XmlSerializationReader.cs: Added missing setter for DecodeName.
1194 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1196 * XmlSerializer.cs: Fix fix.
1198 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1200 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
1201 * ReflectionHelper.cs: New method for generating map keys.
1202 * SerializationCodeGenerator.cs: Added support for generating the serializer
1203 contract class, needed for 2.0.
1204 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
1206 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
1207 as Type[]. Added check that makes sure that enums being serialized are
1209 * XmlMapping.cs: Added internal GetKey method.
1210 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
1211 Added first bits to support loading of serializers from pre-generated
1213 * XmlSerializerFactory.cs: Mostly implemeted.
1215 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1217 * CodeIdentifier.cs: Removed constructor for NET_2_0.
1218 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
1219 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
1220 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
1221 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
1222 XmlSerializerNamespaces.cs: Added 2.0 stubs.
1223 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
1224 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
1225 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
1226 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
1227 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
1228 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
1229 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
1231 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1233 * SerializationCodeGenerator.cs: Generate check that the object being
1234 serialized has a known type. Little cast fix.
1235 * XmlCustomFormatter.cs: Little fix in Single conversion.
1237 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
1239 * TypeData.cs: In the constructor, set the correct xml type name if the
1240 type is an array (for example, instead of StringCollection, use
1243 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
1245 * ReflectionHelper.cs: Correctly detect private types.
1246 * XmlCodeExporter.cs: Implemented missing method.
1247 * XmlSchemaImporter.cs: Allow import of root primitive types.
1249 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
1251 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
1252 SerializationCodeGenerator.cs, SerializationSource.cs,
1253 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
1254 XmlSerializationReader.cs, XmlSerializationWriter.cs,
1255 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
1256 : Globalization fixes.
1257 In XmlCustomFormatter.GenerateToXmlString() time was not
1258 generated correctly.
1259 Replaced all CRLF XmlAttributeOverrides.cs into LF.
1261 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
1263 * XmlSerializationWriter.cs: changed signature of protected method
1264 FromByteArrayBase64 to match MS.NET
1266 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1268 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
1269 attributes that MS.NET generates.
1270 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
1272 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
1273 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
1274 MS.NET member ordering. Patch by David Taylor.
1275 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
1276 flag. The generated enum must also not be included in the schema.
1277 * XmlTypeMapMember.cs: Added ignore flag.
1278 * XmlTypeMapping.cs: The AttributeMembers property now returns the
1279 attributes in the correct order.
1281 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
1283 * XmlSerializationReader.cs: added missing protected members
1284 to fix API compatibility with MS.NET
1285 * XmlSerializationWriter.cs: added missing protected members
1286 to fix API compatibility with MS.NET
1288 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
1290 * XmlSerializationReader.cs: Support schamea instance namespaces other than
1291 the 2001 one when reading the xsi type.
1292 * MapCodeGenerator.cs: Take into account that the root namespace and element
1293 name may have changed from one export to another of the same type. In
1294 this case the class attributes need to be regenerated.
1295 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
1296 not ElementName. Idem for namespace.
1297 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
1298 * XmlRootAttribute.cs: Default value for nullable is true.
1299 * XmlSchemaImporter.cs: The root name for a class may change in some
1300 scenarios (for example, when the type is initially exported as part of
1301 another type and later exported as a root type).
1302 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
1303 found using the standard namespace, try getting the type using
1304 the 2000/10 and 1999 namespaces.
1305 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
1307 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1309 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1310 In encoded format, primitive types can be null. Read them using
1311 ReadReferencingElement, that already checks for the null tag.
1313 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
1315 * XmlSerializationReader.cs: Check for empty element when reading an array
1316 element. This fixes bug #59003. Thanks Atsushi!
1318 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1320 * XmlSerializationWriter.cs: Implemented some missing methods.
1321 In .NET 1.0, encoded null elements use the attribute null="1", while in
1322 1.1 the attribute is nil="true".
1323 * XmlTypeMapping.cs: Little fix for nested classes.
1325 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1327 * XmlReflectionImporter.cs: Don't reset the internal tables at every
1328 ImportMembersMapping call. This fixes bug #58112. The problem is that
1329 it imported two different arrays (only different in the array item
1330 namespace) with the same name. Not sure what was this Reset needed for,
1331 everyting seems to work without it.
1333 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1335 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1336 When deserializing an encoded method response, if the return type of the
1337 method is Object, assign to it the first element of the message, whatever
1339 * XmlSerializationReader.cs:
1340 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
1341 the imported member.
1342 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
1343 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
1344 a given xsi type is not found. Just read it as primitive type.
1345 * XmlTypeMapMember.cs: Added IsReturnValue property.
1346 * XmlTypeMapping.cs: Added ReturnMember property.
1347 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
1349 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1351 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1352 When reading an object using the typeof(object) map, an emty xsi:type
1353 means that it has to read the contents into an XmlNode[].
1354 * TypeData.cs: Return the correct full name for inner classes.
1355 * XmlSchemaImporter.cs: Improved detection of types that represent
1356 "anyType", and must be mapped to XmlElement, XmlNode or Object.
1357 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1358 the correct namespace.
1359 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1362 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1364 * XmlSerializationWriter.cs : It do not have to handle schema
1365 namespace as special one.
1367 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1369 * XmlSerializationReaderInterpreter.cs: Removed the check for null
1370 AttributeMembers collection. Even if there are no attribute members,
1371 attributes need to be read.
1373 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1375 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1376 the IXmlSerializable object may not read all the EndElement it read.
1377 This fixes bug #57413.
1379 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1381 * XmlSerializer.cs: Enable serializer generation by default.
1383 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
1385 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1386 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1387 turns out that it is an array, import it again as array. This fixes
1390 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1392 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1393 don't use type name for array types, since we can have different classes
1394 that represent the same array type (for example StringCollection and
1397 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
1399 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1400 not present in MS.NET.
1401 * XmlSerializationWriter.cs: Improved error message.
1403 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1405 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
1406 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1407 Support deserialization of members of type XmlDocument. This fixes #56169.
1409 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1411 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1412 Use a special method to generate default values, since default enum values
1413 will come as integers, so a special cast is needed.
1414 * XmlSerializationReaderInterpreter.cs,
1415 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1416 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
1417 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1418 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
1419 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1420 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1421 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1422 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1423 of SerializationSource. It can't keep and use the XmlAttributeOverride
1424 instances as key values, since those instances can be modified after the
1425 xml map has been generated. Now, SerializationSource generates a unique
1426 string hash from XmlAttributeOverride and uses it for comparisons.
1428 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
1430 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
1431 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1432 the adequate type. Set the default value of members that do have a default
1433 value. Other minor fixes.
1434 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1435 from typeof(object) map, even those that have another base class.
1436 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1437 It must serialize the char as number, not as character.
1438 * XmlSerializationReaderInterpreter.cs: Set the default value of members
1439 that do have a default value.
1440 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1441 of members that have a default value.
1443 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
1445 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1446 This fixes bug #55547.
1448 2004-03-13 David Sheldon <dave-mono@earth.li>
1450 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1453 2004-03-13 David Sheldon <dave-mono@earth.li>
1455 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
1456 fixes test case that tests for this directly.
1457 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1458 it. Treat it as null.
1460 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
1462 * CodeIdentifier.cs: Limit the length of identifiers.
1463 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1464 Generate types using GetDomType, so if the type is an array, it creates
1465 the correct combination of types.
1466 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1467 an enum, if the string is empty and the enum has [Flags], then return 0
1468 as value. This fixes bug #55509.
1469 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1470 are not supported. Another check: a simple type cannot be enum if it does
1471 not have any enum facet.
1472 And another fix: use string as default type for attribtues.
1473 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
1474 other schemas. An imported schema would not be in the table, but its
1475 elements (although from another namespace) would be in the schema that
1476 imported it. So, we need know to check for every schema in the table.
1477 * XmlSerializer.cs: Added environment variable to help debugging code
1480 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
1482 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1483 of XmlInclude attributes needed for the service class.
1484 IsMapExported: Removed check for object type, since it can now be exported.
1485 SetMapExported: Use the type name as key, since different importers may
1486 be used to create a map for the same type.
1487 GenerateClassInclude: Updated signature.
1488 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1489 GenerateClassInclude(): Updated signature.
1490 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1491 Implemented IncludeTypes.
1492 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1493 GenerateClassInclude(): Updated signature.
1494 * XmlMemberMapping.cs: Added missing property.
1495 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1496 Implemented IncludeTypes().
1497 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1498 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1499 Now, it does a regular import and then assign the required base class to
1500 the imported map. In this way it is possible to assign a base type for a
1501 map that was previously imported without a base type.
1502 * XmlTypeMapping.cs: Added internal method SetRoot().
1504 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
1506 * SerializationCodeGenerator.cs: Added support for generation of readers
1507 and writers for several maps in a single class. Added support for
1508 XmlMemberMapping. Fixed generation of serializers that use encoded format.
1509 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1510 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
1511 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1512 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1513 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1514 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1515 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1516 Added InternalEquals method.
1517 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1518 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1519 * XmlCustomFormatter.cs: Fixed little bug.
1520 * XmlMapping.cs: Added Source property. This a global identifier of the map.
1521 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1522 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1524 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1525 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1527 * XmlSerializer.cs: Added support for generation of serializers.
1529 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
1531 * SerializationCodeGenerator.cs,
1532 SerializationCodeGeneratorConfiguration.cs:
1533 Added <namespaceImports> feature ("using XXX;" generation) support.
1535 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
1537 * XmlSerializationWriter.cs: When writing the root element, use a prefix
1538 if the namespace of the element is defined in the list of namespaces
1539 provided to the XmlSerializer. This fixes bug #54427.
1541 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
1543 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1544 Those are basically methods to add custom attributes to element and
1546 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1547 * XmlCodeExporter.cs: Better support for custom attribute generation for
1549 * XmlCustomFormatter.cs: Added null check.
1550 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
1551 attributes that are required.
1552 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1555 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
1557 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1558 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1559 string, not string[].
1560 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1561 for array parameters. In general, improved generation of schema Form
1563 * XmlMemberMapping.cs: Added Form property.
1564 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1565 simple types. Added a check for this.
1566 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1567 Form. The key used to determine if a map has been already generated must
1568 include the XmlType, since there can be two xml types with the same CLR
1569 type and namespace (for example, they may differ in the Form property).
1570 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1571 also return the corresponding map. There can be two maps that have the
1572 same TypeData, so given a TypeData is not always possible to get the
1573 correct corresponding map (for example two arrays that only differ in the
1575 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1578 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1580 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1581 normalizedString schema type.
1583 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1585 * XmlReflectionImporter.cs: Get the class members using the right order.
1586 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1587 A member with the Any attribute can also contain text. Support this.
1588 * XmlTypeMapMemberElement.cs: Added CanBeText property.
1590 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1592 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1595 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1597 * MapCodeGenerator.cs: Added helper method for generating an attribute
1598 parameter of type enum.
1599 * XmlAttributeAttribute.cs: little fix.
1600 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1601 for method parameters.
1602 * XmlMemberMapping.cs: Improved support for members of type "any".
1603 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1604 If the namespace is explicitly specified, then the form should be
1605 qualified. Also fixed issues with the namespace assigned to attributes.
1606 This should fix bug #53384.
1607 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1608 methods that return values of type "any". Changed the methods
1609 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1610 element, return it, and the caller must add it to the collection.
1611 Other fixes in attribute generation.
1612 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1613 generate the AnyType mapping from the type described in the schema.
1614 Small fixes regarding IsMixed property of complex types (it means that
1615 the type can contain text, so the XmlTextAttribute must be generated).
1616 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1617 be only used in the bare+encoded format.
1619 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1621 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1622 to be derived types of the one that has the attribute.
1623 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1624 map to the parent map. This fixes #53246.
1625 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1627 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
1629 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
1630 do not check the root element name, since it can be any name. This fixes
1633 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1635 * XmlReflectionImporter.cs: Throw exception if a value type member has the
1636 IsNullable=true flag. This fixes bug #52906.
1638 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1640 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
1641 so a 'specified' member has always to be generated.
1642 * TypeData.cs: Fixed check for value type.
1644 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1646 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
1647 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
1648 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
1649 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
1650 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
1651 Added support for value specifiers members. This fixes bug #53024.
1653 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1655 * XmlSchemaExporter.cs: Don't create referenced element if it has already
1656 been created (two types could be referencing the same schema element).
1658 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
1660 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
1661 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
1662 arrays. This fixes bug #53018.
1664 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
1666 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
1667 default namespace for members.
1668 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
1669 * XmlReflectionImporter.cs: Fixed the assignment of root and type
1671 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
1672 default namespace for members. In AddSchemaElement, if the element is
1673 a root element never use a "ref" attribute.
1674 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
1676 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1678 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1679 XmlTypeMapping.cs: more namespace fixes.
1681 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1683 * XmlReflectionImporter.cs: type namespace must never be used as root
1684 namespace. This fixes bug #52772.
1686 2004-01-08 Nick Drochak <ndrochak@ieee.org>
1688 * XmlSchemaImporter.cs: Removed unused variable.
1690 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
1692 * XmlReflectionImporter.cs: Ignore Namespace property when applying
1693 the [XmlType] attribute to an enum. This fixes bug #52607.
1695 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
1697 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
1698 option that allow serialization of private types.
1700 2003-12-18 Eran Domb <erand@mainsoft.com>
1702 * TypeTranslator.cs : Change primtive types map.
1704 2003-12-18 Eran Domb <erand@mainsoft.com>
1706 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
1709 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1711 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
1712 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
1713 primitive types are not the same as XML primitive types. Patch proposed
1714 by Mordechai Taitelman. This fixes bug #52228.
1715 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
1717 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1719 * XmlReflectionImporter.cs: Little fix.
1721 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1723 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
1724 need to be derived types of the includer. This fixes bug #52152.
1725 Added null check for Name property of XmlEnumAttribute. This fixes
1727 * XmlSerializationReader.cs: Fixed some error messages.
1728 * XmlSerializationReaderInterpreter.cs: Check that the root element has
1729 the correct local name and namespace. This fixes bug #52038.
1730 Throw exception if enum value can't be parsed.
1731 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
1734 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
1736 * MapCodeGenerator.cs: Added support for [Flags] enum.
1737 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
1738 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
1739 encoded array type. Added support for enums with [Flags].
1740 In encoded format, unqualified types are schema types by default.
1742 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
1744 * XmlCodeExporter.cs: Little fix.
1745 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
1746 same name have the same type.
1747 * XmlSchemaImporter.cs: Support xml:lang.
1748 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
1749 fixed wrong namespace for the arrayType attribute.
1751 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
1753 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
1754 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
1755 When using rpc format on a web service, members don't need to have any
1756 specific namespace. Added a flag for turning namespace check on/off.
1758 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1760 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
1761 delayedListFixups.Count cannot be used because elementes from
1762 delayedListFixups are deleted sometimes.
1764 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1766 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
1767 This fixes bug #51060.
1769 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
1771 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
1772 If type is Enum the code use type.GetElememtType() instead of
1773 Enum.GetUnderlyingType().
1775 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
1777 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
1778 Removed several TODOs already done.
1780 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
1782 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
1785 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1787 * ReflectionHelper.cs: In CheckSerializableType() check that the type
1789 * XmlSerializationWriter.cs: Added check for circular references.
1790 This fixes bug #49879.
1792 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1794 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
1795 can't be serialized. This fixes bug #49878.
1796 * TypeData.cs: In ListItemType check that the collection has a valid
1797 Add method and report an error if not.
1798 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
1799 reflecting a collection.
1801 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
1803 * SoapReflectionImporter.cs: Support element references for enum values in
1804 encoding format. This fixes bug #49568.
1805 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
1806 the name and namespace of the wrapper element. MS.NET doesn't do it.
1807 This fixes bug #49729.
1809 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1811 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
1813 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1815 * MapCodeGenerator.cs: New file. Moved here all code that is common
1816 between XmlCodeExporter and SoapCodeExporter.
1817 * SoapCodeExporter.cs: Implemented.
1818 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
1819 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
1820 encoded bare parameter list.
1821 * XmlTypeMapping.cs: Added method for getting member element by index.
1823 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1825 * XmlSchemas.cs : Implemented IsDataSet().
1827 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
1829 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
1830 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
1831 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
1832 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
1833 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
1834 and whether it uses encoded or literal format.
1835 * XmlSchemaExporter.cs: Little fixes.
1837 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1839 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
1840 need to be of type SOAP-ENC:Array, it can be a restriction of it.
1842 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1844 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
1845 Read only properties are only serialized if the type is an array.
1847 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
1849 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
1850 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
1851 is not needed for value types.
1853 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
1855 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
1856 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
1858 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
1860 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
1862 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
1864 * XmlSchemaExporter.cs: Keep track of elements being exported.
1865 * XmlSchemas.cs: Removed unneeded catch.
1867 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
1869 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1870 Fixed handling of members with XmlTextAttribute that are arrays.
1871 * TypeData.cs: IsComplexType now returns true for XmlNode.
1872 * XmlSerializer.cs: Added check for null mapping in FromMappings.
1873 * XmlTypeMapping.cs: Added helper method FindTextElement.
1875 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
1877 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
1878 Added support for IncludeInSchema flag.
1879 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1880 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
1881 methods. Added support for IncludeInSchema flag.
1882 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1883 Added support for IncludeInSchema flag.
1884 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
1885 * XmlTypeMapping.cs: Added IncludeInSchema property.
1887 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
1889 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
1891 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
1893 * XmlCustomFormatter.cs: added support for additional string types in
1894 GenerateToXmlString().
1895 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
1898 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
1900 * SoapSchemaImporter.cs: implemented.
1901 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
1902 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
1903 * XmlSchemaImporter.cs: more support for encoded format.
1905 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
1907 * SerializationCodeGenerator.cs: Minor fixes.
1908 * SoapReflectionImporter.cs: More fixes.
1909 * SoapSchemaExporter.cs: implemented.
1910 * SoapSchemaImporter.cs: Initial implementation.
1911 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
1913 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
1914 * XmlMemberMapping.cs: Minor fixes.
1915 * XmlMembersMapping.cs: added some convenient constructors.
1916 * XmlSchemaExporter.cs: Added support for encoded format.
1917 * XmlSchemaImporter.cs: Added support for encoded format.
1918 * XmlSerializationReader.cs: changed some string literals by constants.
1919 Implemented ParseWsdlArrayType.
1920 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
1922 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
1923 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
1924 WriteAttribute to write custom attributes.
1925 * XmlSerializer.cs: added some namespace constants.
1926 * XmlTypeMapping.cs: added GetSchemaArrayName method.
1928 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
1930 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
1931 * XmlTypeMapMemberElement.cs: Little fix.
1932 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
1933 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
1935 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
1938 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
1940 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1941 * XmlMemberMapping.cs: Changed constructor.
1942 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1943 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
1944 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
1945 * XmlSerializationWriterInterpreter.cs: Changed visibility.
1947 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
1949 * XmlSerializer.cs: Fix in Deserialize() method.
1951 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
1953 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
1954 * XmlSchemas.cs: Find method: make sure the returned object belongs to
1956 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
1957 Add null checks for eventSource.
1958 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
1959 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
1960 namespece declarations. Virtual method WriteObject not needed any more.
1961 In WriteStartElement, write the provided namespaces.
1962 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
1963 Added GetTypeMap method, that returns the map for a given type. Added some
1964 virtual methods, so writer behavior can be extended at several places by
1966 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
1967 methods CreateReader and CreateWriter are not called unless no type or
1968 type mapping was provided in the constructor.
1970 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
1972 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
1973 schema type it is importing is a class or an array. It will always
1976 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
1978 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
1979 as text nodes. Support it.
1981 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
1983 * CodeIdentifier.cs: Fixed MakeValid method.
1984 * TypeTranslator.cs: Added support for more primitive types. Added
1985 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
1987 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
1988 are different from the type ns and name.
1989 Generate class and field comments.
1990 Fixed default attribute generation. In elements with ref attribute, it has to be
1991 generated in the referred attribute.
1992 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
1993 Added suport for text nodes in members of type "any".
1994 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
1996 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
1997 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
1998 that have already been declared.
1999 WriteStartElement(): elements from schema namespace are always written with ns prefix.
2000 * XmlTypeMapMember.cs: Added documentation property.
2001 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
2002 represents a simple type.
2004 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2006 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
2008 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
2009 * TypeData.cs: Added property that returns a TypeData that represents an array of
2011 * TypeTranslator.cs: Added GetArrayName() method.
2012 Added TypeDatas for missing primitive types.
2013 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
2014 XmlRootAttribute. Added the namespace to all attributes being generated.
2015 Other fixes in the generation of code.
2016 * XmlReflectionImporter: store the namespace of the type in the maps.
2017 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
2018 class can generate text. Do not export inherited attributes of a class.
2019 Use the new root namespace stored in the map when generating the root element.
2020 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
2021 namespace is the default namespace.
2022 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
2023 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
2024 namespace instead of the map namespace (which can be different if the type
2025 has a XmlRoot element).
2026 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
2027 to System.DBNull.Value.
2028 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
2029 the collection if it has not yet been created.
2030 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
2031 of the type. It may be different from the namespace of the map if the type
2032 has a XmlRoot element. Also added IsSimpleType property.
2033 In ClassMap, added AllMembers property.
2035 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
2037 * TypeData.cs: Added new constructor and variables to allow the creation of
2038 a TypeData without a Type. Added ListItemTypeData property.
2039 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
2040 array of arrays. Added also a property to get the nested array map.
2041 * XmlCodeExporter.cs: First implementation of code exporter.
2043 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2045 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
2046 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
2049 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
2051 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
2052 maps with the same name and namespace. To avoid this, maps must be registered
2053 using the real map namespace, not the default namespace (the namespace can
2054 change if the type has a XmlType or SoapType attribute).
2055 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
2056 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
2058 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
2061 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2063 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
2064 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
2065 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
2066 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
2067 * XmlSchemaExporter.cs: Implemented.
2068 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
2069 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
2070 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
2071 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
2072 GetStringValue() returns null if the value is null, instead of empty string.
2073 (attributes with null values are not written).
2074 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
2075 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
2076 DataType value can is now in TypeData.
2077 * XmlTypeMapMemberElement.cs: Small fix.
2078 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
2080 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2082 * AssemblyInfo.cs: Removed
2084 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
2086 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
2087 namespace declarations if they have already been defined.
2089 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
2091 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
2092 for adding elements to a list.
2094 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
2096 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
2097 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
2100 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2102 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
2103 Added support for serialization of enums with the Flags attribute.
2105 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2107 * SoapReflectionImporter.cs: Fix support for DataType in class members.
2108 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
2109 can have other names.
2110 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
2111 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
2112 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2113 Fix support for DataType in class members.
2114 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
2115 Added support for array of primitive types in attributes.
2117 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
2119 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
2120 be overlodaded, so it is not good for this.
2121 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
2123 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
2125 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
2126 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
2127 array if the namespace is not specified in XmlArrayItemAttribute.
2129 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
2131 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
2132 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
2133 is not specified in the xsi attribute.
2134 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
2135 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
2137 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2139 * XmlSerializationReader.cs : Synchronous fix with
2140 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
2141 * added XmlTypeMapMemberNamespace.cs.
2142 * XmlReflectionImporter,
2143 XmlSerializationReaderInterpreter.cs,
2144 XmlSerializationWriterInterpreter.cs,
2145 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
2147 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2149 * XmlSerializationWriter.cs : some QName handling fix.
2151 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2153 * XmlSerializationReader.cs: Fixed error message.
2154 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
2156 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
2158 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2160 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
2161 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
2162 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
2163 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
2165 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2167 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
2168 * SoapReflectionImporter.cs: tiny fix.
2169 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
2170 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
2171 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
2172 * XmlSerializationWriter.cs: implemented WriteSerializable ().
2174 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
2176 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
2177 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
2178 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
2179 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
2180 * XmlSerializationWriter.cs: small fix.
2182 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2184 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
2185 Added support for DefaultValueAttribute.
2186 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
2187 the value of an enum.
2188 * XmlTypeMapMember.cs: Added DefaultValue attribute.
2189 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
2192 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2194 * XmlSerializationReader.cs: Minor fix.
2196 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2198 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
2200 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
2202 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2203 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
2204 * XmlCustomFormatter.cs: small fixes.
2205 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2206 * XmlSerializationWriter.cs: Implemented TopLevelElement().
2207 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
2208 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
2209 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
2212 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
2214 * SoapReflectionImporter.cs: implemented.
2215 * TypeTranslator.cs: added IsPrimitive() method
2216 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
2217 used by that one. Also added Format property, that can be literal or encoded.
2218 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
2219 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
2220 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
2221 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
2222 * XmlSerializationWriter.cs: added support for encoded format.
2223 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
2224 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
2225 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
2226 and a map is needed for them).
2227 * XmlTypeMapMemberElement.cs: small fixes.
2228 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
2229 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
2231 2003-06-01 Miguel de Icaza <miguel@ximian.com>
2233 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
2234 UnknownElement): Add line number information.
2236 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
2238 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
2239 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2240 * XmlMapping.cs: Added internal property.
2241 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
2242 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
2243 * XmlReflectionMember.cs: XmlAttributes are now created by default
2244 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
2245 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
2246 Implemented support for XmlMembersMapping.
2247 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
2249 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
2251 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
2252 from xml type to clr type.
2253 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2254 * XmlReflectionMember.cs: Added default constructor.
2255 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
2256 * XmlSerializationWriter.cs: Several fixes.
2257 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2258 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
2259 Added support for enums. Added support for XmlElement and XmlNode.
2260 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
2262 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
2264 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
2265 * XmlCustomFormatter.cs: Added formatting methods.
2266 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
2267 * XmlReflectionMember.cs: Added new constructor.
2268 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
2269 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
2270 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
2271 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
2273 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2275 * Added TypeTableEntry.cs.
2276 * TypeTranslator.cs : changed for non-static use.
2277 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
2278 and GetElementName(). Bugfix so that if any XmlElementAttribute
2279 exists after non-typed XmlElementAttribute then it might be ignored.
2280 Added GetElementIsNullable().
2281 * XmlSerializer.cs :
2282 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
2283 Object memberObj[4].
2284 Deserialize() now uses XmlReader.Depth to check its depth.
2285 Serialize() for non-XmlReader arguments now always write xmldecl.
2286 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
2287 and handles XmlQualifiedName.
2288 Separated SerializeType () from Serialize().
2289 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
2290 IsPropertyTypeSerializable() from SerializeMembers().
2291 SerializeMembers() is now capable of null value and actual type,
2292 which should be included by XmlIncludeAttribute and so on.
2293 Renamed SerializeArray() to SerializeArrayContent(), and added
2294 SerializeCollectionContent().
2295 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
2296 FillTypeTable() is now aware of XmlInclude attributes.
2297 FillEnum() should not have different type table content from others.
2299 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2301 * XmlSerializer.cs : this time, only replaced spaces with tabs.
2303 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2305 * ChangeLog : Added missing ChangeLog of 2003-04-25.
2306 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
2307 separators. Added experimental method ToEnum().
2308 * XmlSerializationReader.cs : unconfirmed implementation of
2309 ReadSerializable() and ToEnum().
2310 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
2311 is null then no output will be written.
2312 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
2313 to use custom formatted name.
2315 2003-05-02 Miguel de Icaza <miguel@ximian.com>
2317 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
2318 had a void return value.
2320 2003-04-26 Miguel de Icaza <miguel@ximian.com>
2322 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
2323 `AllowMultiple' flags.
2325 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2327 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
2328 * XmlReflectionImporter.cs : patch by Erik LeBel.
2329 Now uses XmlRootAttribute to determine element name.
2331 2003-03-17 Miguel de Icaza <miguel@ximian.com>
2333 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
2336 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2338 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
2339 XmlWriter argument should call WriteEndDocument.
2341 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2343 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
2344 not WriteState.Start, and never call WriteEndDocument().
2346 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
2348 * XmlCustomFormatter.cs: Correct signature, Implement
2351 * XmlSerializationWriter.cs: Fix prototype.
2353 * XmlSerializer.cs: Implements Deserialize().
2355 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2357 * XmlSerializer.cs : serializing now works for interface member.
2359 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2361 * XmlSerializer.cs : some fix handling xml node object more correct.
2363 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
2364 * XmlSerializer.cs: Array serialization for 1D arrays works
2365 * TypeTranslator: Added for translations`
2367 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2369 * XmlCustomFormatter.cs: finished.
2370 * XmlSerializationReader.cs: implemented some more methods.
2372 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2374 * XmlSerializationReader.cs: implemented a few methods.
2376 * XmlAnyElementAttribute.cs:
2377 * XmlArrayAttribute.cs:
2378 * XmlChoiceIdentifierAttribute.cs:
2379 * XmlElementAttribute.cs:
2380 * XmlMemberMapping.cs:
2381 * XmlMembersMapping.cs: class status based fixes.
2383 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2385 * CodeIdentifiers.cs:
2386 * XmlSchemaExporter.cs:
2387 * XmlSchemaImporter.cs:
2389 * XmlSerializationWriteCallback.cs:
2390 * XmlSerializationWriter.cs:
2392 * XmlSerializerNamespaces.cs: some class status based fixed and
2393 implemented a couple of methods.
2395 * SoapSchemaExporter.cs: stubbed out.
2397 2002-08-24 Tim Coleman <tim@timcoleman.com>
2398 * SoapCodeExporter.cs:
2399 Fix return value of ExportTypeMapping.
2400 * XmlCustomFormatter.cs:
2401 Change methods to be internal instead of public.
2402 * XmlSerializationWriter.cs:
2403 Modify GetPrimitiveTypeName to build on linux.
2404 Modify GetQualifiedName to return an incrementing prefix
2405 instead of the same one all the time (still need to manage
2407 Modify WriteElementString to only do special stuff is XsiType
2409 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2410 an XmlQualifiedName.
2412 2002-08-22 Tim Coleman <tim@timcoleman.com>
2413 * XmlSerializationReader.cs:
2415 * XmlSerializationWriter.cs:
2417 * XmlCustomFormatter.cs:
2418 Implemented this class.
2420 2002-08-20 Tim Coleman <tim@timcoleman.com>
2421 * XmlSerializationWriter.cs:
2422 Some implementation.
2424 2002-08-19 Tim Coleman <tim@timcoleman.com>
2427 * XmlSerializationWriter.cs:
2430 2002-08-14 Tim Coleman <tim@timcoleman.com>
2432 More reformatting of source code so I can
2433 better understand what it does.
2435 2002-08-06 Tim Coleman <tim@timcoleman.com>
2437 Some reformatting of code for readability.
2438 Modify to correctly serialize ICollection objects
2439 such as the BindingCollection of a ServiceDescription
2442 2002-08-03 Tim Coleman <tim@timcoleman.com>
2444 Changed Implements() to check based on name rather
2445 than FullName. FullName was never working correctly.
2447 2002-07-26 Tim Coleman <tim@timcoleman.com>
2449 The constructor now looks for an XmlRootAttribute attribute
2450 if one is not passed in. Various changes to make it emit
2451 proper XML, such as handling an element without a namespace
2452 prefix, and using WriteEndDocument where it should be.
2454 2002-07-24 Tim Coleman <tim@timcoleman.com>
2455 * CodeIdentifier.cs:
2456 * IXmlSerializable.cs:
2457 * XmlSerializationCollectionFixupCallback.cs:
2458 * XmlSerializationFixupCallback.cs:
2459 * XmlSerializationReadCallback.cs:
2460 * XmlSerializationReader.cs:
2461 * XmlSerializationWriteCallback.cs:
2464 * CodeIdentifiers.cs:
2465 Implement some of these classes
2466 * XmlCodeExporter.cs:
2467 Fix return type of a function
2469 2002-07-24 Tim Coleman <tim@timcoleman.com>
2470 * SoapReflectionImporter.cs:
2471 New class added to build
2472 System.Web.Services.Description.ServiceDescription.cs
2474 2002-07-22 Tim Coleman <tim@timcoleman.com>
2475 * CodeIdentifiers.cs:
2476 * SoapCodeExporter.cs:
2477 * SoapSchemaExporter.cs:
2478 * XmlCodeExporter.cs:
2479 * XmlMemberMapping.cs:
2480 * XmlMembersMapping.cs:
2481 * XmlReflectionImporter.cs:
2482 * XmlReflectionMember.cs:
2483 * XmlSchemaExporter.cs:
2484 * XmlSchemaImporter.cs:
2486 New stubbs added to aid in the linux build of
2487 System.Web.Services.
2489 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
2491 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2493 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2495 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
2497 * XmlSeriailizer: Updated Serialize() method.
2499 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2500 * XmlSerializer: Serialize() method Partially Implemented.
2502 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2504 * Soap & XmlOverrides: Implemented using TypeMember as key with
2505 suggestions from Rafael.