1 2007-04-20 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlTypeMapping.cs, ReflectionHelper.cs,
4 XmlSerializationReaderInterpreter.cs, SerializationCodeGenerator.cs:
5 support instantiation by private constructor.
7 2007-04-19 Konstantin Triger <kostat@mainsoft.com>
9 * XmlSchemaExporter.cs: do not export twice simple types.
11 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
13 * TypeData.cs : forgot NET_2_0.
15 2007-04-10 Atsushi Enomoto <atsushi@ximian.com>
17 * TypeData.cs : in get_ListItemTypeData(), check generic ICollection
18 as well as non-generic one. Fixed bug #81341. Though the type check
19 looks like an aggregation of bugfix hacks and there should be some
20 kind of sane refactoring, to throw best-suited errors.
22 2007-02-28 Atsushi Enomoto <atsushi@ximian.com>
24 * SerializationCodeGenerator.cs : fix wrong name comparison:
25 Name->LocalName. Add hacky TARGET_JVM support (hope it is harmless).
27 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
29 * SerializationCodeGenerator.cs,
30 XmlSerializationReaderInterpreter.cs :
31 Handle attributes on non-empty elements as well. Fixed bug #80131.
33 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
35 * SerializationCodeGenerator.cs,
36 XmlSerializationReaderInterpreter.cs :
37 Handle empty root element.
38 Read out attribute parameters. To do that, split attribute
39 reader part from ReadMembers(), as it isn't invoked when the
42 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
44 * XmlTypeMapElementInfo.cs : set nullable if the type is Nullable<T>.
46 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
48 * XmlReflectionImporter.cs : CanBeNull() should return true when the
49 argument is generic nullable value type.
51 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
53 * TypeData.cs, MapCodeGenerator.cs, XmlMemberMapping.cs,
54 TypeTranslator.cs : removed IsGenericNullable and added
55 set_IsNullable so that it could be simpler.
57 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
59 * SerializationCodeGenerator.cs, XmlMappingAccess.cs,
60 SerializationCodeGeneratorConfiguration.cs : replaced HookDir with
63 2007-02-19 Atsushi Enomoto <atsushi@ximian.com>
65 * SerializationCodeGenerator.cs : hooks won't work unless they are
66 set. For WriteStartElement() it could simply embed the names.
68 2007-02-14 Atsushi Enomoto <atsushi@ximian.com>
70 * XmlTypeMapMember.cs : don't use readonly [Foo]Specified property
71 as nil-condition member. Fixed bug #80759.
73 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
75 * SoapReflectionImporter.cs : for primitive types, set predefined
76 namespaces, regardless of the actual specification.
78 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
80 * XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
82 * XmlSerializationWriterInterpreter.cs,
83 SerializationCodeGenerator.cs : so they have to be handled here.
85 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
87 * XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
88 when the name is null (almost no need to do this, but it is easier
89 to remove NotWorking from extraneous tests and let them hush than
92 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
94 * XmlSerializationWriter.cs : callbacks could be kept null.
96 2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
98 * XmlMemberMapping.cs : uhoh, there is a nasty trick to output
101 2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
103 * TypeData.cs : added get_IsGenericNullable.
104 * MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
105 the TypeData.IsGenericNullable.
106 Use GetDomType() instead of CodeTypeReference.ctor() to not lose
108 * XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
109 so that it won't XmlSchemaElement.IsNillable.
110 * TypeTranslator.cs :
111 Fixed wrong TypeData modification against non-nullable stuff.
112 Added another GetTypeData() that takes isNullableRuntimeType so
113 that it won't miss XmlSchemaElement.IsNillable.
114 Added another GetPrimitiveTypeData() that takes nullable.
116 2007-01-15 Atsushi Enomoto <atsushi@ximian.com>
118 * TypeData.cs : reject generic type definitions.
119 * TypeTranslator.cs : Make generic type names in XML compatible with
120 .net: foo_x0060_1 -> fooOfString.
122 2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
124 * SerializationCodeGenerator.cs, XmlCustomFormatter.cs :
125 GenerateToXmlString() needed hexBinary support as well. Since
126 XmlConvert.[To|From]BinHexString() are internal, use reflection.
127 Really fixed bug #79989 and #79990 for generated serializers.
129 2006-12-03 Gert Driesen <drieseng@users.sourceforge.net>
131 * XmlSchemaExporter.cs: Emit xml name of enum-based default values.
132 Set XmlSchemaAttribute.Use to Required if no default value is defined,
133 and member is not an optional value type. Element should have minOccurs
134 1 if value type member has default value. Output flag enum type as
135 xsd list with restriction.
136 * XmlReflectionImporter.cs: Removed special casing of enums. Instead
137 of passing namespace of XmlAttribute to ImportTypeMapping, use the
138 default namespace for importing the member type.
140 2006-12-02 Gert Driesen <drieseng@users.sourceforge.net>
142 * SerializationCodeGenerator.cs: Initialize out parameters if they
143 are value types. Fixed bug #79988.
144 * XmlSerializationReaderInterpreter.cs: Same.
146 2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
148 * XmlReflectionImporter.cs : implemented several missing check and
149 support for XmlArrayAttribute. Fixed bug #78042.
151 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
153 * XmlCustomFormatter.cs : handle hexBinary type. Fixed bug #79989
156 2006-11-22 Atsushi Enomoto <atsushi@ximian.com>
159 * TypeData.cs, TypeTranslator.cs: improved TypeData to actually store
160 "nullable" information. Introduced new primitiveNullableTypes pool
161 whose TypeData has 'true' for new IsNullable property. This
162 property is also used for non-primitive types.
163 * XmlReflectionImporter.cs : there, use TypeData.IsNullable instead
164 of IsValueType, to handle nullable types.
166 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
168 * TypeTranslator.cs : Hari knew better way to do it.
170 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
172 * TypeTranslator.cs : #if NET_2_0 for generic thingy.
174 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
176 * TypeTranslator.cs : (GetTypeData) when the argument type is
177 Nullable<T>, use T instead. At run time (on both interpreter and
178 generated code) it is converted to T. Fixed bug #79803.
180 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
182 * SerializationCodeGenerator.cs, TypeData.cs :
183 Now we differentiate TypeName, FullTypeName C# type names. It is
184 to create valid C# sources especially for generic types.
187 2006-11-17 Atsushi Enomoto <atsushi@ximian.com>
189 * XmlSerializationReader.cs : (ReadReferencedElement)
190 Sometimes there are array types in WSDL, which are not reflected
191 in client proxies. In SOAP messages, they are marked
192 soap-env:arrayType, so use it (this could coexist with xsi:type,
193 which indicates the type in WSDL). Fixed bug #79057.
195 2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
197 * XmlSerializationReader.cs : implement ToByteArray[Base64|Hex]().
198 removed extra ReadSerializable().
199 * XmlTypeMapping.cs : added XsdTypeName and XsdTypeNamespace.
201 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
203 * SerializationCodeGenerator.cs,
204 SerializationCodeGeneratorConfiguration.cs :
205 make "XmlSerializerContract" and "BaseXmlSerializer" customizible.
206 (or it is impossible to use genxs more than twice in an assembly.)
208 2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
211 * XmlReflectionImporter.cs : Compute nullable correctly. Elements are
212 nillable when its type is a reference type.
213 * XmlSchemaExporter.cs :
214 Set XmlTypeMapElementInfo.IsNullable from XmlTypeMapping.
215 Set XmlSchemaElement.IsNillable from XmlTypeMapElementInfo.
217 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
219 * XmlSchemaImporter.cs : top-level element might also have no type
220 name specification, so just compare ElementType with anyType.
222 2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
224 * XmlSchemaImporter.cs : attributes might overlap by extending
225 base content models. Since invalid content models are rejected by
226 Compile(), simply ignore duplicating attributes. Note that it is
227 basically hack, which should not skip derived ones but use them (but
228 it is mostly harmless since the result is very unlikely to differ).
230 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
232 * XmlSchemaImporter.cs : when top-level element is xs:anyType, all
233 complexTypes must be also imported.
235 2006-11-08 Atsushi Enomoto <atsushi@ximian.com>
237 * XmlSchemaImporter.cs : ImportTypeMapping() raises exception when
238 the argument name is not bound to any elements.
240 2006-11-07 Atsushi Enomoto <atsushi@ximian.com>
242 * XmlCustomFormatter.cs : consider null base64 byte array value.
245 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
247 * CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
248 explicitly say Obsolete instantiation.
249 * CodeIdentifiers.cs : implemented case-insensitive mode.
250 * XmlSerializerAssemblyAttribute.cs : added missing .ctor().
251 * SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
252 in 2.0 profile it could also be applied to an interface.
253 * SoapReflectionImporter.cs,
254 XmlReflectionImporter.cs,
255 XmlMappingAccess.cs :
256 added missing ImportMembersMapping overload and moved actual
257 implementation to most lengthy-arglist one. To make it possible,
258 XmlMappingAccess is included in 1.x as internal enum.
260 2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
262 * XmlSchemaImporter.cs : initialize extensions from configuration.
264 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
266 * SchemaImporterExtension.cs,
267 SchemaImporterExtensionCollection.cs : moved to S.X.S.Advanced.
269 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
271 * XmlSerializationGeneratedCode.cs : removed InternalSyncObject.
272 * SerializationCodeGenerator.cs : since IXmlSerializerImplementation
273 became a class, it needs explicit "override".
274 Since InternalSyncObject is gone, it needs another lock target.
275 * IXmlSerializerImplementation.cs : removed.
276 * XmlSerializerImplementation.cs : added.
277 * XmlSerializer.cs : removed extra GenerateSerializer() overloads.
278 IXmlSerializerImplementation -> XmlSerializerImplementation.
279 * XmlSchemas.cs : removed Schemas. hacked Compile().
280 Now it implements IEnumerable<XmlSchema>.
281 * XmlSchemaEnumerator.cs : added missing type.
283 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
285 * XmlAttributeEventArgs.cs : added ExpectedAttributes. Note that it
286 is not considered in XmlSerializationReader yet.
287 * XmlElementEventArgs.cs : added ExpectedElements. Note that it
288 is not considered in XmlSerializationReader yet.
289 * XmlSerializationReader.cs : added some overloads for
290 UnknownElement()/-Attribute()/-Node().
292 2006-11-01 Atsushi Enomoto <atsushi@ximian.com>
294 * CodeGenerationOptions.cs : [XmlEnum], [XmlIgnore] and
296 * XmlSerializationCollectionFixupCallback.cs,
297 XmlNodeEventHandler.cs,
298 XmlSerializationReadCallback.cs,
299 UnreferencedObjectEventHandler.cs,
300 XmlSerializationWriteCallback.cs,
301 XmlAttributeEventHandler.cs,
302 XmlElementEventHandler.cs,
303 XmlSerializationFixupCallback.cs :
304 exclude [Serializable] in NET_2_0.
305 * XmlSerializerNamespaces.cs : removed beta-only AddInternal().
306 * XmlSerializerVersionAttribute.cs : removed [Obsolete].
307 * XmlMappingAccess.cs : it is [Flags].
308 * SchemaImporter.cs : implement Extensions.
309 * XmlAnyElementAttribute.cs,
310 XmlArrayAttribute.cs : added Order.
311 Note that it is not considered in XmlSerializer yet.
313 2006-10-25 Ankit Jain <jankit@novell.com>
315 * SerializationCodeGenerator.cs (GenerateContract): Handle
316 'generateAsInternal' config option.
318 2006-10-10 Gert Driesen <drieseng@users.sourceforge.net>
320 * XmlSerializer.cs: Output namespace declarations in same order as
323 2006-10-08 Gert Driesen <drieseng@users.sourceforge.net>
325 * XmlSerializer.cs: Corrected exception message when deserialization
327 * SerializationCodeGenerator.cs: Added support for flag enums.
328 * XmlReflectionImporter.cs: Use InvalidOperationException wrapper for
329 all exceptions that occur while reflecting member. Validate default
331 * SoapReflectionImporter.cs: Revert small part of previous patch as
332 XmlSerializer expects enum value.
334 2006-10-01 Gert Driesen <drieseng@users.sourceforge.net>
336 * SoapReflectionImporter.cs: To match MS.NET, let exceptions that are
337 thrown during creation of map member bubble up. Only allow
338 SoapAttribute on primitive types and enums. Obtain default value for
341 2006-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
343 * XmlTypeAttribute.cs: added property AnonymousType for 2.0
345 2006-09-12 Lluis Sanchez Gual <lluis@novell.com>
347 * System.Xml.Serialization/XmlSchemaImporter.cs: Added null check.
349 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
351 * XmlSchemaImporter.cs,XmlMemberMapping.cs,SchemaImporter.cs: ifdef
354 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
356 * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
357 to strings. Make sure maps returned by ImportClassSimpleType are always
358 simple type maps. All this fixes bug #77585.
360 2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
362 * XmlSchemaImporter.cs: Always import simple type unions
363 as string (like MS.NET does). Fixes bug #79234.
365 2006-08-25 Kornél Pál <kornelpal@gmail.com>
367 * MapCodeGenerator.cs: Use assembly file version constants.
369 2006-07-24 Atsushi Enomoto <atsushi@ximian.com>
371 * XmlMappingAccess.cs : new type in 2.0 RTM.
372 * XmlCodeExporter.cs, SoapCodeExporter.cs,
374 XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
375 SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
376 XmlMemberMapping.cs, XmlSerializationReader.cs :
377 several 2.0 API fixes from betas to RTM.
379 2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
381 * XmlTypeMapMember.cs: Added GlobalIndex property.
382 * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
384 * SerializationCodeGenerator.cs:
385 * XmlSerializationWriterInterpreter.cs:
386 * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
387 Index to get/set the values from the input array, since some Index
388 values are shared between attribute and element members. Fixes
391 2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
393 * SerializationCodeGenerator.cs,
394 XmlSerializerReaderInterpreter.cs : handle CDATA section as text
395 node. Fixed bug #78536.
397 2006-05-15 Gert Driesen <drieseng@users.sourceforge.net>
399 * XmlCodeExporter.cs: Added bool argument to GenerateClass and
400 GenerateEnum methods that specifies whether we're dealing with a type
401 for a top-level element. In GenerateClass, do not always add Namespace
402 argument for XmlRootAttribute if isTopLevel is false, and do not
403 emit XmlRootAttribute if isTopLevel is false and no arguments have been
405 * SoapCodeExporter.cs: Added bool argument to GenerateClass and
406 GenerateEnum methods.
407 * MapCodeGenerator.cs: Added bool argument to GenerateClass and
408 GenerateEnum methods.
410 2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
412 * SerializationCodeGenerator.cs: Allow generating serializer for
413 reading an XmlElement or XmlDocument as root element.
414 Properly generate jagged array creation.
416 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
418 * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
420 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
422 * SerializationCodeGenerator.cs: For flag enums, we should split on all
423 whitespace chars instead of only on blanks.
424 * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
425 constant name(s) to integral enum value.
427 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
429 * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
430 as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
432 2006-04-24 Gert Driesen <drieseng@users.sourceforge.net>
434 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
435 allow XML Schema items to be added to its parent in the same order
436 as MS.NET (schema elements before complex types, ...).
438 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
440 * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
441 GenerateProperties. Use full type name for XML serialization attributes
442 instead of shortcut (without Attribute suffix). Always add Namespace
443 argument for XmlRootAttribute on classes. Added IsNullable argument for
444 XmlRootRootAttribute on classes. For attribute members, only output
445 Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
446 ctor that takes CodeGenerationOptions.
447 * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
448 CodeGenerationOptions.
449 * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
450 profile, emit GeneratedCodeAttribute, SerializableAttribute,
451 DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
452 To match MS.NET, emit attribute members before element members.
453 * XmlReflectionImporter.cs: Enums are never nullable.
454 * XmlSchemaImporter.cs: Set IsNullable on map using value of
455 XmlSchemaElement.IsNillable. Added LocateElement overload that takes
458 2006-04-15 Gert Driesen <drieseng@users.sourceforge.net>
460 * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
461 to XmlReflectionImporter and SoapReflectionImporter to keep from
462 always ending up with the XSD type that directly maps to the CLR type.
463 * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
464 Type. This improves performance by avoiding the use of
465 TypeTranslator.GetTypeData for types imported from a schema and fixes
467 * SoapReflectionImporter.cs: Same.
469 2006-04-11 Lluis Sanchez Gual <lluis@novell.com>
471 * XmlSchemas.cs: In 1.1, don't allow adding two schemas
472 with the same namespaces. This is allowed in 2.0. Fixed
473 the Find() method to cope with this case. Based on a patch
476 2006-03-22 Gert Driesen <drieseng@users.sourceforge.net>
478 * XmlReflectionImporter.cs: Throw NotSupportException instead of
479 InvalidOperationException (IOE) if void is specified as type in
480 ImportTypeMapping. To match MS.NET, surround importing of type in
481 try/catch block, and wrap any IOE in another IOE adding information
482 on the type that was being reflected. In CreateTypeMapping, surround
483 creating of map member in try/catch block, and wrap any IOE in another
484 IOE adding information on the member that was being reflected.
485 Modified exception message for missing enumeration value to match
486 MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
487 XmlTextAttribute, and it differs from type of reflected member when
488 schema type of member is primitive or enum. Fixed bug #77591.
490 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
492 * XmlSchemaExporter.cs: Import namespace of schema generated for
493 non-xsd primitive. Do not set zero-length TargetNamespace to avoid
494 emitting empty targetNamespace attribute in generated schema.
495 * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
498 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
500 * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
501 Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
502 serialization of integral value to enum constant name, and made sure
503 the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
504 throw InvalidOperationException if no matching enum constant exists.
505 In EnumMap ctor, initialize arrays holding XML names, enum names and
507 * XmlSerializationReaderInterpreter.cs: Pass full type name to
508 EnumMapping.GetEnumName for construction of exception message.
509 * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
510 and InvalidCastException in another InvalidOperationException to match
511 MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
512 and the inner exception for a TargetInvocationException in an
513 InvalidOperationException to match MSFT.
514 * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
515 XmlCustomFormatter.FromEnum in order to also support serialization
516 integral value to enum constant name. In 2.0 profile, throw
517 InvalidOperationException if numeric value cannot be serialized into
518 an enum constant value. In GenerateSingleEnumValue, no longer attempt
519 to parse unknown constant value but instead report it as
520 InvalidOperationException. Use string.Length instead of "" comparison
521 to check whether a string is empty. Fixed compiler warnings in
522 generated code (possible empty statement).
523 * XmlSerializationWriterInterpreter.cs: Pass full type name to
525 * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
526 to allow it to be used in exception messages.
527 * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
528 enum fields. Use IsDefined instead of GetCustomAttributes for checking
529 if a certain attribute is defined. Use integral value of enum constant
530 in EnumMapMember ctor.
531 * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
532 enum fields. Use IsDefined instead of GetCustomAttributes for checking
533 if a certain attribute is defined. Use integral value of enum constant
534 in EnumMapMember ctor.
536 2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
538 * XmlReflectionImporter.cs: Ignore the element namespace if
539 the schema form is set to Unqualified. Fixes bug #75019.
541 2006-02-22 Gert Driesen <drieseng@users.sourceforge.net>
543 * SerializationCodeGenerator.cs: Omit return statement in ReadObject
544 method if GenerateReadListElement returns null. Fixes bug #77588.
546 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
548 * XmlSerializer.cs: Fix the previous fix.
550 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
552 * XmlSerializer.cs: Added option to avoid falling back to the
553 interpreted serializer if the code generator fails. To be used
556 2006-02-16 Gert Driesen <drieseng@users.sourceforge.net>
558 * TypeData.cs: Fixed the following issues when dealing with Array
560 - if a type implements IDictionary, throw a NotSupportedException
561 - if a type implements ICollection, then an Add method must exist
562 which takes a single argument of a type to which the listitem type
563 is assignable (meaning a base type or an interface that it
564 implements). If such a method does not exist, then throw an
565 InvalidOperationException.
566 - if a type implements IEnumerable, then the listitem type is
567 determined by the type of the Current property of the (IEnumerator)
568 type returned by the GetEnumerator() method or the private
569 implementation of IEnumerable.GetEnumerator(). If there's no
570 public Current property on the IEnumerator, then System.Object
571 is assumed as listitem type. Similar as for types implementing
572 ICollection, an Add method must exist which takes a single argument
573 of a type to which the listitem type is assignable (meaning a base
574 type or an interface that it implements). If such a method does not
575 exist, then throw an InvalidOperationException.
577 2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
579 * XmlSchemaImporter.cs: Support importing complex types with
580 simple content based on enums. Fixes bug #76848.
582 2006-02-11 Gert Driesen <drieseng@users.sourceforge.net>
584 * SoapAttributeAttribute.cs: Set eol-style to CRLF.
585 * SoapElementAttribute.cs: Same.
586 * SoapEnumAttribute.cs: Same.
587 * SoapIncludeAttribute.cs: Same.
588 * SoapSchemaMember.cs: Same.
589 * SoapTypeAttribute.cs: Same.
590 * XmlArrayAttribute.cs: Same.
591 * XmlAttributeAttribute.cs: Same.
592 * XmlChoiceIdentifierAttribute.cs: Same.
593 * XmlElementAttribute.cs: Same.
594 * XmlEnumAttribute.cs: Same.
595 * XmlRootAttribute.cs: Same.
596 * XmlSchemaImporter.cs: Same.
597 * XmlTextAttribute.cs: Same.
598 * XmlTypeAttribute.cs: Same.
599 * XmlTypeMapping.cs: Same.
600 * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
601 * CodeIdentifiers.cs: Same.
602 * SoapCodeExporter.cs: Same.
603 * SoapAttributes.cs: Same.
604 * SoapIgnoreAttribute.cs: Same.
605 * SoapSchemaImporter.cs: Same.
606 * TypeMember.cs: Same.
607 * UnreferencedObjectEventArgs.cs: Same.
608 * XmlAnyAttributeAttribute.cs: Same.
609 * XmlAnyElementAttributes.cs: Same.
610 * XmlArrayItemAttributes.cs: Same.
611 * XmlAttributeEventArgs.cs: Same.
612 * XmlCodeExporter.cs: Same.
613 * XmlElementAttributes.cs: Same.
614 * XmlElementEventArgs.cs: Same.
615 * XmlIgnoreAttribute.cs: Same.
616 * XmlNamespaceDeclarationsAttribute.cs: Same.
617 * XmlNodeEventArgs.cs: Same.
618 * XmlReflectionMember.cs: Same.
619 * XmlSchemas.cs: Same.
620 * XmlSerializerNamespaces.cs: Same.
621 * XmlTypeMapMemberElement.cs: Set eol-style to native.
623 2006-02-10 Gert Driesen <drieseng@users.sourceforge.net>
625 * CodeExporter.cs: Set eol-style to native.
626 * CodeGenerationOptions.cs: Same.
627 * CodeIdentifier.cs: Same.
628 * ImportContext.cs: Same.
629 * IXmlSerializable.cs: Same.
630 * IXmlSerializerImplementation.cs: Same.
631 * IXmlTextParser.cs: Same.
632 * MapCodeGenerator.cs: Same.
633 * ReflectionHelper.cs: Same. Fixed line endings.
634 * SchemaImporter.cs: Same.
635 * SchemaImporterExtensionCollection.cs: Same.
636 * SchemaImporterExtension.cs: Same.
637 * SchemaTypes.cs: Same.
638 * SerializationCodeGeneratorConfiguration.cs: Same.
639 * SerializationCodeGenerator.cs: Same.
640 * SerializationSource.cs: Same.
641 * SoapReflectionImporter.cs: Same.
642 * SoapSchemaExporter.cs: Same.
644 * TypeTranslator.cs: Same.
645 * UnreferencedObjectEventHandler.cs: Same.
646 * XmlAnyElementAttribute.cs: Same.
647 * XmlArrayItemAttribute.cs: Same.
648 * XmlAttributeEventHandler.cs: Same.
649 * XmlAttributeOverrides.cs: Same.
650 * XmlAttributes.cs: Same.
651 * XmlDeserializationEvents.cs: Same.
652 * XmlElementEventHandler.cs: Same.
653 * XmlIncludeAttribute.cs: Same.
654 * XmlMapping.cs: Same.
655 * XmlMemberMapping.cs: Same.
656 * XmlMembersMapping.cs: Same.
657 * XmlNodeEventHandler.cs: Same.
658 * XmlReflectionImporter.cs: Same.
659 * XmlSchemaExporter.cs: Same.
660 * XmlSchemaProviderAttribute.cs: Same.
661 * XmlSerializationCollectionFixupCallback.cs: Same.
662 * XmlSerialiationFixupCallback.cs: Same.
663 * XmlSerializationGeneratedCode.cs: Same.
664 * XmlSerializationReadCallback.cs: Same.
665 * XmlSerializationReader.cs: Same.
666 * XmlSerializationReaderInterpreter.cs: Same.
667 * XmlSerializationWriteCallback.cs: Same.
668 * XmlSerializationWriterInterpreter.cs: Same.
669 * XmlSerializerAssemblyAttribute.cs: Same.
670 * XmlSerializer.cs: Same.
671 * XmlSerializerFactory.cs: Same.
672 * XmlSerializerVersionAttribute.cs: Same.
673 * XmlTypeMapElementInfo.cs: Same.
674 * XmlTypeMapMemberAttribute.cs: Same.
675 * XmlTypeMapMember.cs: Same.
676 * XmlTypeMapMemberNamespaces.cs: Same.
678 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
680 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
681 if map represents enum. Fixes bug #77501.
683 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
685 * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
686 CreateInvalidEnumValueException. Set eol-style to native.
687 * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
688 enum for which string value must be created. Set eol-style to native.
689 Modified FromEnum to behave more like MSFT's implementation:
690 - treat value as bit field.
691 - no longer return empty string if the value matches an id for which there's no corresponding
693 - if one of the ids has value 0 and there's a match for the enum value
694 (with a zero length XML name) or the enum value is 0, then return the
695 corresponding XML for the id with value 0.
696 - in 2.0 profile, throw InvalidOperationException if no match is found
697 for (part of) the enum value.
698 Modifies ToEnum to match the MSFT implementation (as described in
700 - Expect hashtable containing enum names as key, and corresponding
701 integral numbers as value.
702 - Do not report exception for whitespace-only value.
703 - Support space (MS docs are not clear about this) delimited list
705 - typeName is only used to construct exception message.
707 2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
709 * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
710 looking for the correct element definition for a member,
711 based on the value type, take into account subypes of the
712 declared types. Fixes bug #77447.
714 2006-02-07 Konstantin Triger <kostat@mainsoft.com>
716 * XmlReflectionImporter.cs: remove local name encoding for enums.
718 2006-01-08 Gert Driesen <drieseng@users.sourceforge.net>
720 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
722 2006-01-07 Gert Driesen <drieseng@users.sourceforge.net>
724 * XmlTypeMapping.cs: Fixed line endings.
725 * TypeTranslator.cs: Fixed line endings.
727 2005-12-07 Lluis Sanchez Gual <lluis@novell.com>
729 * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
730 collection, don't create a new collection if the property already has a
732 * SerializationCodeGenerator.cs: same as above. Also return an empty
733 string for flag enum default values.
735 2005-12-06 Konstantin Triger <kostat@mainsoft.com>
737 * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
739 2005-12-05 Lluis Sanchez Gual <lluis@novell.com>
741 * XmlSerializationReaderInterpreter.cs:
742 * SerializationCodeGenerator.cs: When deserializing a collection,
743 don't create a new collection if the property already has a
744 collection instance. This does not apply to arrays. Changed how nullabe
745 array properties are set. Setting IsNullable=false to the property means
746 that it won't be set if the read array is null (so, if the property
747 already has a value, it will be kept).
748 Another change is that can't never be null (only arrays can).
750 2005-12-01 Lluis Sanchez Gual <lluis@novell.com>
752 * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
753 a cli array type, consider it refering to the type of array elements.
754 This fixes bug #76860. Also added some locking.
756 2005-11-27 Konstantin Triger <kostat@mainsoft.com>
758 * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
759 export non-xsd primitive types.
761 2005-11-24 Vladimir Krasnov <vladimirk@mainsoft.com>
763 * XmlTypeMapping.cs: fixed GetXmlName method, added difference
764 of value serialization of flags and non-flags enums
766 2005-11-23 Konstantin Triger <kostat@mainsoft.com>
768 * XmlSchemaExporter.cs: do not import empty namespaces.
770 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
772 * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
773 method, ReadEndElement should check XmlNodeType.
774 * XmlTypeMapping.cs: fixed GetXmlName method, it should not
775 write zero as default enum value.
777 2005-11-16 Vladimir Krasnov <vladimirk@mainsoft.com>
779 * XmlReflectionImporter.cs: fixed field order returned by
780 reflection in method GetReflectionMembers. TARGET_JVM only.
782 2005-11-07 Lluis Sanchez Gual <lluis@novell.com>
784 * XmlSchemaImporter.cs: Added support for restrictions with
785 embedded simple type definitions.
787 2005-11-04 Atsushi Enomoto <atsushi@ximian.com>
789 * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
790 sys.xml.schema corcompare diffs.
792 2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
794 * SerializationCodeGenerator.cs:
795 * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
796 need to be all XmlElments. Fix by Atsushi for bug #76288.
798 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
800 * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
801 In ListMap.FindElement, take into account the ChoiceMember
803 * SerializationCodeGenerator.cs:
804 * XmlSerializationReaderInterpreter.cs: For lists with a choice
805 member, fill the member with the corresponding enum values.
806 * XmlReflectionImporter.cs: Properly reflect the choice member
807 when applied to a list.
808 * XmlSerializationWriterInterpreter.cs: Track class changes.
809 * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
810 All this fixes bug #76203.
812 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
814 * SoapReflectionImporter.cs: Check the correct defaults
817 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
819 * SerializationSource.cs: Fix nullref.
820 * XmlReflectionImporter.cs: When registering a type using
821 IncludeType(), make sure it is added as a subtype and the
822 map for typeof(object) if it has already been imported.
825 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
827 * XmlSerializationWriter.cs: Also internally serialize
828 arrays of object (see previous change).
830 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
832 * XmlSerializationWriter.cs: Properly serialize arrays
833 of primitive types when not explicitely specified in
834 a container class. Based on a patch by Konstantin Triger.
837 2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
839 * TypeData.cs: Reset the hasPublicConstructor flag when the
840 type is an interface.
841 * XmlSerializationWriterInterpreter.cs: Get the Count property
842 from the object type instead of the property type (it didn't
844 * ReflectionHelper.cs: In CheckSerializableType, don't trow
845 if the type is a collection interface. All this fixes
848 2005-08-06 Lluis Sanchez Gual <lluis@novell.com>
850 * XmlTypeMapping.cs: Added null check.
852 2005-08-05 Lluis Sanchez Gual <lluis@novell.com>
854 * XmlTypeMapping.cs: Added ListMembers property that returns
855 members which are collections.
856 * SerializationCodeGenerator.cs:
857 * XmlSerializationReaderInterpreter.cs: Initialize collection
858 members to an empty collection by default. Fixes bug #75662.
860 2005-08-01 Gert Driesen <drieseng@users.sourceforge.net>
862 * XmlMapping.cs: API compatibility fixes. Ctor is not protected
863 in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
865 2005-07-31 Gert Driesen <drieseng@users.sourceforge.net>
867 * SoapAttributeAttribute.cs: Return zero-length string if
868 AttributeName or DataType are null.
869 * SoapEnumAttribute.cs: Return zero-length string if Name is null.
870 * SoapIncludeAttribute.cs: Avoid using property in ctor.
871 * SoapSchemaMember.cs: Return zero-length string if MemberName is
872 null. MemberType should be XmlQualifiedName.Empty by default.
873 * SoapTypeAttribute.cs: Return zero-length string if TypeName is
874 null. Avoid using property in ctor.
875 * XmlArrayAttribute.cs: Return zero-length string if ElementName is
876 null. Avoid using property in ctor.
877 * XmlArrayItemAttribute.cs: IsNullable must be false by default.
878 Return zero-length string if DataType or ElementName are null. Avoid
879 using property in ctor.
880 * SoapElementAttribute.cs: Return zero-length string when DataType
881 or ElementName are null. Avoid using property in ctor.
882 * XmlAnyElementAttribute.cs: Return zero-length string when Name is
883 null. Avoid using property in ctor.
884 * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
885 zero-length string if AttributeName or DataType are null.
886 * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
888 * XmlElementAttribute.cs: Return zero-length string when DataType or
889 ElementName are null. Avoid using property in ctor.
890 * XmlEnumAttribute.cs: Avoid using property in ctor.
891 * XmlIncludeAttribute.cs: Avoid using property in ctor.
892 * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
893 can no longer be null. Use check for zero-length string to determine
894 whether they are set. Corrected exception message when DataType is
895 set for complex type.
896 * XmlRootAttribute.cs: Return zero-length string if DataType or
897 ElementName are null. Avoid using property in ctor.
898 * XmlTextAttribute.cs: Return zero-length string if DataType is null.
899 * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
901 2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
903 * SerializationCodeGenerator.cs: In the generated serializer always
904 use the Object equality operator when comparing objects to serialize
905 to null, since those objects may have the equality operator
906 overloaded. This fixes bug #75543.
908 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
910 * XmlCustomFormatter.cs: Properly read/write duration values.
912 2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
914 * XmlSerializer.cs: Fix race between XmlSerializer and the
915 serializer generator.
917 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
919 * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
920 getting the real xml type name of a member.
921 * XmlSerializationWriterInterpreter.cs: Use that new property
922 to get the type name of primitive types. This should fix bug #75180.
924 2005-06-07 Lluis Sanchez Gual <lluis@novell.com>
926 * SerializationCodeGenerator.cs: When reading members by order,
927 call a MoveToContext after each member read. In the fixup method
928 don't cast returned values if it is reading an object array.
930 * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
931 being imported is a primitive type, create a wrapper class that
932 inherits from the provided one. This fixes bug #68809.
934 * XmlSerializationReader.cs: Properly report unreferenced objects.
935 Created an overload of ReadTypedPrimitive that reports elements of
936 unknown type. Implemented Referenced().
938 2005-05-30 Lluis Sanchez Gual <lluis@novell.com>
940 * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
941 set to the default namespace. This fixes bug #73035.
943 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
945 * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
946 types indirectly imported by this method use the same namespace.
948 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
950 * TypeTableEntry.cs : removed obsolete code.
952 2005-04-26 Lluis Sanchez Gual <lluis@novell.com>
954 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
955 properties which are read only. Fixes bug #74723.
957 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
959 * XmlReflectionImporter.cs:
960 * SoapReflectionImporter.cs:
961 * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
962 where needed. Based on a patch by Konstantin Triger.
964 2005-04-12 Lluis Sanchez Gual <lluis@novell.com>
966 * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
967 * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
968 export the schema that it defines. In ImportNamespace, removed
969 check for default namespace, since it may be included from a non
971 * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
972 types. All this based on a patch by Konstantin Triger.
974 * SerializationCodeGenerator.cs:
976 * XmlSerializationReaderInterpreter.cs:
977 * SoapCodeExporter.cs:
978 * XmlTypeMapMemberAttribute.cs:
979 * XmlSerializationReader.cs:
980 * XmlCodeExporter.cs: Fixed some warnings.
982 2005-04-10 Andrew Skiba <andrews@mainsoft.com>
984 * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
986 2005-04-03 Andrew Skiba <andrews@mainsoft.com>
988 * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
991 2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
993 * SerializationCodeGenerator.cs:
994 * XmlSerializationReaderInterpreter.cs: If the element being read is
995 bound to a choice member, set the corresponding value.
996 * XmlTypeMapMember.cs: Added helper SetValue method.
997 * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
998 since now stores the enum value.
999 * XmlReflectionImporter.cs: Properly import choice values.
1000 * XmlTypeMapMemberElement.cs: Added setter for the choice.
1002 2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
1004 * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
1005 This fixes bug #73901 and should fix #70384.
1006 * XmlSerializationReader.cs: When reading an object element, return
1007 an Object instance if the element has no children. This fixes bug #73974.
1008 * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
1009 type (it is written as an element with those nodes as children).
1011 2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
1013 * XmlSchemaImporter.cs: Support importing schemas that define
1014 extra types in the standard xml schema namespace. When using encoded
1015 format, support the primitive types defined by the SOAP encoding
1018 2005-03-04 Lluis Sanchez Gual <lluis@novell.com>
1020 * ReflectionHelper.cs: Avoid endless loop.
1021 * XmlSchemas.cs: Added null check. Patches from MainSoft.
1023 2005-02-07 Lluis Sanchez Gual <lluis@novell.com>
1025 * XmlSerializationReader.cs: After reading an href element, skip the
1026 whole element (it may not be an empty element). This fixes bug #72265.
1028 2005-01-25 Lluis Sanchez Gual <lluis@novell.com>
1030 * XmlSchemaImporter.cs: When importing a default value of type enum,
1031 translate it from the schema value to the clr value.
1033 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1035 * XmlSerializer.cs: only print the results if there's an error
1038 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1040 * SerializationCodeGenerator.cs: don't use _config if it has not been
1043 2005-01-18 Lluis Sanchez Gual <lluis@novell.com>
1045 * XmlReflectionImporter.cs: Don't check the property type if it has
1046 an [XmlIgnore] attribute. This fixes bug #71332.
1048 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
1050 * SerializationCodeGenerator.cs,
1051 XmlSerializationWriterInterpreter.cs : exchanged attribute
1052 serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
1053 xmlns attributes in XmlAnyAttribute are not written.
1055 2005-01-12 Atsushi Enomoto <atsushi@ximian.com>
1057 * SerializationCodeGeneratorConfiguration.cs,
1058 SerializationCodeGenerator.cs : Added some generation configuration:
1059 <generateAsInternal>
1060 write custom reader/writer as internal classes.
1061 <noreader>, <nowriter>
1062 They make generation of reader and/or writer optional.
1063 * XmlSerializerNamespaces.cs :
1064 Now it uses ListDictionary instead of Hashtable.
1065 * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
1066 written unless there is already the same prefix-ns mapping.
1068 2005-01-12 Lluis Sanchez Gual <lluis@novell.com>
1070 * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
1071 * XmlSchemaImporter.cs: When importing a base type of a complex type,
1072 make sure that the base class is always imported as a class and not
1073 as an array. If it has been imported as array, import it again.
1074 This fixes bug #70839. Other minor fixes as well.
1075 * XmlSerializationWriter.cs: Fixed warning.
1077 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1079 * SerializationCodeGenerator.cs: Yet another generation fix.
1081 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1083 * SerializationCodeGenerator.cs: Fixed generation of enum literals.
1085 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
1087 * XmlReflectionMember.cs: Added DeclaringType member.
1088 * XmlReflectionImporter.cs: When importing fields that belong to a
1089 base class, use the xml namespace of the base map for the member.
1090 This fixes bug #70309.
1092 2004-11-30 Lluis Sanchez Gual <lluis@novell.com>
1094 * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
1095 compilation warnings.
1097 2004-11-24 Lluis Sanchez Gual <lluis@novell.com>
1099 * SerializationSource.cs: Made SerializationSource abstract, and
1100 renamed Equals to BaseEquals to avoid missing GetHashCode warning
1101 (it does not really make sense in this case).
1102 * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
1103 XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1104 XmlSerializationReader.cs: Fixed warnings.
1106 2004-10-19 Atsushi Enomoto <atsushi@ximian.com>
1108 * XmlSerializationWriter.cs : When namespace is an empty string,
1109 XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
1112 2004-10-01 Lluis Sanchez Gual <lluis@novell.com>
1114 * MapCodeGenerator.cs: When the Object type is exported, export all
1115 derived maps. This was done in IncludeMetadata, but this method is
1116 not called by the xsd tool.
1117 * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
1118 attribute for primitive types and arrays.
1119 * XmlSchemaImporter.cs: Only export all object-derived maps if the
1120 Object type is explicitly referenced by an element.
1121 * XmlSerializationWriter.cs: Minor fix.
1123 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
1125 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
1126 This fixes bug #66877.
1128 2004-09-21 Lluis Sanchez Gual <lluis@novell.com>
1130 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1131 when reading a primitive value in encoded format using
1132 ReadReferencingElement, provide the type name and namespace
1133 since the xsi type may not be present in the xml element. This
1136 2004-09-15 Lluis Sanchez Gual <lluis@novell.com>
1138 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
1139 ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
1140 * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
1141 ImportIncludedTypes to the end, to make sure that the current map has all
1142 needed data before derived maps are constructed.
1143 * XmlSchemaExporter.cs: Generate the base class of simple types that are
1144 not primitive types. Set the correct value for IsMixed in extended types.
1145 * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
1146 the base class of a simple type doesn't need to be a xsd type.
1147 All those patches fix bug #65654.
1149 2004-09-03 Lluis Sanchez Gual <lluis@novell.com>
1151 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
1152 Normalization==true by default.
1154 2004-09-02 Lluis Sanchez Gual <lluis@novell.com>
1156 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
1157 In CheckSerializableType, add the option of ignoring types with private
1158 constructors. Some kind of lists can be deserialized
1159 even if the constructor is private. See bug #61464.
1160 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1161 Before creating a list, check that it has a public constructor.
1162 * TypeData.cs: Added HasPublicConstructor property.
1164 2004-09-01 Lluis Sanchez Gual <lluis@novell.com>
1166 * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
1167 value list serialization.
1168 * XmlSchemaImporter.cs: Added some null checks.
1170 2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
1172 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1173 When deserializing an encoded method response, assign to the return value
1174 the first element of the message, whatever it is. The return type doesn't
1175 need to be Object, it seems to be true for all return types.
1177 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
1179 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
1180 no need to add it after the call.
1181 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
1183 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
1185 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
1186 * ImportContext.cs: Implemented.
1187 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
1188 options for 2.0. Implemented support for generating properties instead of
1190 * XmlSchemaImporter.cs: Added support for sharing types.
1192 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
1194 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
1195 xsd type is not part of the last schema specification, but the google api
1196 uses it and ms.net accepts it.
1198 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
1200 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
1201 Thanks to Juan C. Olivares.
1203 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
1205 * CodeExporter.cs: Added private constructor.
1206 * CodeGenerationOptions.cs: Set the correct enum values.
1207 * CodeIdentifier.cs: Added private constructor.
1208 * SchemaImporter.cs: Added internal constructor.
1209 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
1210 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
1211 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
1212 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
1213 * XmlSerializationReader.cs: Added missing setter for DecodeName.
1215 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1217 * XmlSerializer.cs: Fix fix.
1219 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
1221 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
1222 * ReflectionHelper.cs: New method for generating map keys.
1223 * SerializationCodeGenerator.cs: Added support for generating the serializer
1224 contract class, needed for 2.0.
1225 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
1227 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
1228 as Type[]. Added check that makes sure that enums being serialized are
1230 * XmlMapping.cs: Added internal GetKey method.
1231 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
1232 Added first bits to support loading of serializers from pre-generated
1234 * XmlSerializerFactory.cs: Mostly implemeted.
1236 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1238 * CodeIdentifier.cs: Removed constructor for NET_2_0.
1239 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
1240 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
1241 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
1242 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
1243 XmlSerializerNamespaces.cs: Added 2.0 stubs.
1244 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
1245 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
1246 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
1247 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
1248 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
1249 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
1250 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
1252 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
1254 * SerializationCodeGenerator.cs: Generate check that the object being
1255 serialized has a known type. Little cast fix.
1256 * XmlCustomFormatter.cs: Little fix in Single conversion.
1258 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
1260 * TypeData.cs: In the constructor, set the correct xml type name if the
1261 type is an array (for example, instead of StringCollection, use
1264 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
1266 * ReflectionHelper.cs: Correctly detect private types.
1267 * XmlCodeExporter.cs: Implemented missing method.
1268 * XmlSchemaImporter.cs: Allow import of root primitive types.
1270 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
1272 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
1273 SerializationCodeGenerator.cs, SerializationSource.cs,
1274 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
1275 XmlSerializationReader.cs, XmlSerializationWriter.cs,
1276 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
1277 : Globalization fixes.
1278 In XmlCustomFormatter.GenerateToXmlString() time was not
1279 generated correctly.
1280 Replaced all CRLF XmlAttributeOverrides.cs into LF.
1282 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
1284 * XmlSerializationWriter.cs: changed signature of protected method
1285 FromByteArrayBase64 to match MS.NET
1287 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1289 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
1290 attributes that MS.NET generates.
1291 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
1293 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
1294 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
1295 MS.NET member ordering. Patch by David Taylor.
1296 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
1297 flag. The generated enum must also not be included in the schema.
1298 * XmlTypeMapMember.cs: Added ignore flag.
1299 * XmlTypeMapping.cs: The AttributeMembers property now returns the
1300 attributes in the correct order.
1302 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
1304 * XmlSerializationReader.cs: added missing protected members
1305 to fix API compatibility with MS.NET
1306 * XmlSerializationWriter.cs: added missing protected members
1307 to fix API compatibility with MS.NET
1309 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
1311 * XmlSerializationReader.cs: Support schamea instance namespaces other than
1312 the 2001 one when reading the xsi type.
1313 * MapCodeGenerator.cs: Take into account that the root namespace and element
1314 name may have changed from one export to another of the same type. In
1315 this case the class attributes need to be regenerated.
1316 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
1317 not ElementName. Idem for namespace.
1318 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
1319 * XmlRootAttribute.cs: Default value for nullable is true.
1320 * XmlSchemaImporter.cs: The root name for a class may change in some
1321 scenarios (for example, when the type is initially exported as part of
1322 another type and later exported as a root type).
1323 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
1324 found using the standard namespace, try getting the type using
1325 the 2000/10 and 1999 namespaces.
1326 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
1328 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1330 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1331 In encoded format, primitive types can be null. Read them using
1332 ReadReferencingElement, that already checks for the null tag.
1334 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
1336 * XmlSerializationReader.cs: Check for empty element when reading an array
1337 element. This fixes bug #59003. Thanks Atsushi!
1339 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1341 * XmlSerializationWriter.cs: Implemented some missing methods.
1342 In .NET 1.0, encoded null elements use the attribute null="1", while in
1343 1.1 the attribute is nil="true".
1344 * XmlTypeMapping.cs: Little fix for nested classes.
1346 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1348 * XmlReflectionImporter.cs: Don't reset the internal tables at every
1349 ImportMembersMapping call. This fixes bug #58112. The problem is that
1350 it imported two different arrays (only different in the array item
1351 namespace) with the same name. Not sure what was this Reset needed for,
1352 everyting seems to work without it.
1354 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1356 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1357 When deserializing an encoded method response, if the return type of the
1358 method is Object, assign to it the first element of the message, whatever
1360 * XmlSerializationReader.cs:
1361 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
1362 the imported member.
1363 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
1364 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
1365 a given xsi type is not found. Just read it as primitive type.
1366 * XmlTypeMapMember.cs: Added IsReturnValue property.
1367 * XmlTypeMapping.cs: Added ReturnMember property.
1368 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
1370 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
1372 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1373 When reading an object using the typeof(object) map, an emty xsi:type
1374 means that it has to read the contents into an XmlNode[].
1375 * TypeData.cs: Return the correct full name for inner classes.
1376 * XmlSchemaImporter.cs: Improved detection of types that represent
1377 "anyType", and must be mapped to XmlElement, XmlNode or Object.
1378 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1379 the correct namespace.
1380 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1383 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1385 * XmlSerializationWriter.cs : It do not have to handle schema
1386 namespace as special one.
1388 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1390 * XmlSerializationReaderInterpreter.cs: Removed the check for null
1391 AttributeMembers collection. Even if there are no attribute members,
1392 attributes need to be read.
1394 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1396 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1397 the IXmlSerializable object may not read all the EndElement it read.
1398 This fixes bug #57413.
1400 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1402 * XmlSerializer.cs: Enable serializer generation by default.
1404 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
1406 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1407 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1408 turns out that it is an array, import it again as array. This fixes
1411 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1413 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1414 don't use type name for array types, since we can have different classes
1415 that represent the same array type (for example StringCollection and
1418 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
1420 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1421 not present in MS.NET.
1422 * XmlSerializationWriter.cs: Improved error message.
1424 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1426 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
1427 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1428 Support deserialization of members of type XmlDocument. This fixes #56169.
1430 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1432 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1433 Use a special method to generate default values, since default enum values
1434 will come as integers, so a special cast is needed.
1435 * XmlSerializationReaderInterpreter.cs,
1436 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1437 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
1438 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1439 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
1440 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1441 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1442 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1443 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1444 of SerializationSource. It can't keep and use the XmlAttributeOverride
1445 instances as key values, since those instances can be modified after the
1446 xml map has been generated. Now, SerializationSource generates a unique
1447 string hash from XmlAttributeOverride and uses it for comparisons.
1449 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
1451 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
1452 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1453 the adequate type. Set the default value of members that do have a default
1454 value. Other minor fixes.
1455 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1456 from typeof(object) map, even those that have another base class.
1457 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1458 It must serialize the char as number, not as character.
1459 * XmlSerializationReaderInterpreter.cs: Set the default value of members
1460 that do have a default value.
1461 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1462 of members that have a default value.
1464 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
1466 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1467 This fixes bug #55547.
1469 2004-03-13 David Sheldon <dave-mono@earth.li>
1471 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1474 2004-03-13 David Sheldon <dave-mono@earth.li>
1476 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
1477 fixes test case that tests for this directly.
1478 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1479 it. Treat it as null.
1481 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
1483 * CodeIdentifier.cs: Limit the length of identifiers.
1484 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1485 Generate types using GetDomType, so if the type is an array, it creates
1486 the correct combination of types.
1487 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1488 an enum, if the string is empty and the enum has [Flags], then return 0
1489 as value. This fixes bug #55509.
1490 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1491 are not supported. Another check: a simple type cannot be enum if it does
1492 not have any enum facet.
1493 And another fix: use string as default type for attribtues.
1494 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
1495 other schemas. An imported schema would not be in the table, but its
1496 elements (although from another namespace) would be in the schema that
1497 imported it. So, we need know to check for every schema in the table.
1498 * XmlSerializer.cs: Added environment variable to help debugging code
1501 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
1503 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1504 of XmlInclude attributes needed for the service class.
1505 IsMapExported: Removed check for object type, since it can now be exported.
1506 SetMapExported: Use the type name as key, since different importers may
1507 be used to create a map for the same type.
1508 GenerateClassInclude: Updated signature.
1509 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1510 GenerateClassInclude(): Updated signature.
1511 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1512 Implemented IncludeTypes.
1513 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1514 GenerateClassInclude(): Updated signature.
1515 * XmlMemberMapping.cs: Added missing property.
1516 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1517 Implemented IncludeTypes().
1518 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1519 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1520 Now, it does a regular import and then assign the required base class to
1521 the imported map. In this way it is possible to assign a base type for a
1522 map that was previously imported without a base type.
1523 * XmlTypeMapping.cs: Added internal method SetRoot().
1525 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
1527 * SerializationCodeGenerator.cs: Added support for generation of readers
1528 and writers for several maps in a single class. Added support for
1529 XmlMemberMapping. Fixed generation of serializers that use encoded format.
1530 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1531 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
1532 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1533 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1534 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1535 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1536 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1537 Added InternalEquals method.
1538 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1539 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1540 * XmlCustomFormatter.cs: Fixed little bug.
1541 * XmlMapping.cs: Added Source property. This a global identifier of the map.
1542 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1543 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1545 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1546 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1548 * XmlSerializer.cs: Added support for generation of serializers.
1550 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
1552 * SerializationCodeGenerator.cs,
1553 SerializationCodeGeneratorConfiguration.cs:
1554 Added <namespaceImports> feature ("using XXX;" generation) support.
1556 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
1558 * XmlSerializationWriter.cs: When writing the root element, use a prefix
1559 if the namespace of the element is defined in the list of namespaces
1560 provided to the XmlSerializer. This fixes bug #54427.
1562 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
1564 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1565 Those are basically methods to add custom attributes to element and
1567 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1568 * XmlCodeExporter.cs: Better support for custom attribute generation for
1570 * XmlCustomFormatter.cs: Added null check.
1571 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
1572 attributes that are required.
1573 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1576 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
1578 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1579 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1580 string, not string[].
1581 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1582 for array parameters. In general, improved generation of schema Form
1584 * XmlMemberMapping.cs: Added Form property.
1585 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1586 simple types. Added a check for this.
1587 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1588 Form. The key used to determine if a map has been already generated must
1589 include the XmlType, since there can be two xml types with the same CLR
1590 type and namespace (for example, they may differ in the Form property).
1591 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1592 also return the corresponding map. There can be two maps that have the
1593 same TypeData, so given a TypeData is not always possible to get the
1594 correct corresponding map (for example two arrays that only differ in the
1596 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1599 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1601 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1602 normalizedString schema type.
1604 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1606 * XmlReflectionImporter.cs: Get the class members using the right order.
1607 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1608 A member with the Any attribute can also contain text. Support this.
1609 * XmlTypeMapMemberElement.cs: Added CanBeText property.
1611 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1613 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1616 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1618 * MapCodeGenerator.cs: Added helper method for generating an attribute
1619 parameter of type enum.
1620 * XmlAttributeAttribute.cs: little fix.
1621 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1622 for method parameters.
1623 * XmlMemberMapping.cs: Improved support for members of type "any".
1624 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1625 If the namespace is explicitly specified, then the form should be
1626 qualified. Also fixed issues with the namespace assigned to attributes.
1627 This should fix bug #53384.
1628 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1629 methods that return values of type "any". Changed the methods
1630 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1631 element, return it, and the caller must add it to the collection.
1632 Other fixes in attribute generation.
1633 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1634 generate the AnyType mapping from the type described in the schema.
1635 Small fixes regarding IsMixed property of complex types (it means that
1636 the type can contain text, so the XmlTextAttribute must be generated).
1637 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1638 be only used in the bare+encoded format.
1640 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1642 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1643 to be derived types of the one that has the attribute.
1644 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1645 map to the parent map. This fixes #53246.
1646 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1648 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
1650 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
1651 do not check the root element name, since it can be any name. This fixes
1654 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1656 * XmlReflectionImporter.cs: Throw exception if a value type member has the
1657 IsNullable=true flag. This fixes bug #52906.
1659 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1661 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
1662 so a 'specified' member has always to be generated.
1663 * TypeData.cs: Fixed check for value type.
1665 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1667 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
1668 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
1669 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
1670 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
1671 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
1672 Added support for value specifiers members. This fixes bug #53024.
1674 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1676 * XmlSchemaExporter.cs: Don't create referenced element if it has already
1677 been created (two types could be referencing the same schema element).
1679 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
1681 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
1682 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
1683 arrays. This fixes bug #53018.
1685 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
1687 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
1688 default namespace for members.
1689 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
1690 * XmlReflectionImporter.cs: Fixed the assignment of root and type
1692 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
1693 default namespace for members. In AddSchemaElement, if the element is
1694 a root element never use a "ref" attribute.
1695 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
1697 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1699 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1700 XmlTypeMapping.cs: more namespace fixes.
1702 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1704 * XmlReflectionImporter.cs: type namespace must never be used as root
1705 namespace. This fixes bug #52772.
1707 2004-01-08 Nick Drochak <ndrochak@ieee.org>
1709 * XmlSchemaImporter.cs: Removed unused variable.
1711 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
1713 * XmlReflectionImporter.cs: Ignore Namespace property when applying
1714 the [XmlType] attribute to an enum. This fixes bug #52607.
1716 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
1718 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
1719 option that allow serialization of private types.
1721 2003-12-18 Eran Domb <erand@mainsoft.com>
1723 * TypeTranslator.cs : Change primtive types map.
1725 2003-12-18 Eran Domb <erand@mainsoft.com>
1727 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
1730 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1732 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
1733 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
1734 primitive types are not the same as XML primitive types. Patch proposed
1735 by Mordechai Taitelman. This fixes bug #52228.
1736 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
1738 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1740 * XmlReflectionImporter.cs: Little fix.
1742 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1744 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
1745 need to be derived types of the includer. This fixes bug #52152.
1746 Added null check for Name property of XmlEnumAttribute. This fixes
1748 * XmlSerializationReader.cs: Fixed some error messages.
1749 * XmlSerializationReaderInterpreter.cs: Check that the root element has
1750 the correct local name and namespace. This fixes bug #52038.
1751 Throw exception if enum value can't be parsed.
1752 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
1755 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
1757 * MapCodeGenerator.cs: Added support for [Flags] enum.
1758 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
1759 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
1760 encoded array type. Added support for enums with [Flags].
1761 In encoded format, unqualified types are schema types by default.
1763 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
1765 * XmlCodeExporter.cs: Little fix.
1766 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
1767 same name have the same type.
1768 * XmlSchemaImporter.cs: Support xml:lang.
1769 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
1770 fixed wrong namespace for the arrayType attribute.
1772 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
1774 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
1775 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
1776 When using rpc format on a web service, members don't need to have any
1777 specific namespace. Added a flag for turning namespace check on/off.
1779 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1781 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
1782 delayedListFixups.Count cannot be used because elementes from
1783 delayedListFixups are deleted sometimes.
1785 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1787 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
1788 This fixes bug #51060.
1790 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
1792 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
1793 If type is Enum the code use type.GetElememtType() instead of
1794 Enum.GetUnderlyingType().
1796 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
1798 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
1799 Removed several TODOs already done.
1801 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
1803 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
1806 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1808 * ReflectionHelper.cs: In CheckSerializableType() check that the type
1810 * XmlSerializationWriter.cs: Added check for circular references.
1811 This fixes bug #49879.
1813 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1815 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
1816 can't be serialized. This fixes bug #49878.
1817 * TypeData.cs: In ListItemType check that the collection has a valid
1818 Add method and report an error if not.
1819 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
1820 reflecting a collection.
1822 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
1824 * SoapReflectionImporter.cs: Support element references for enum values in
1825 encoding format. This fixes bug #49568.
1826 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
1827 the name and namespace of the wrapper element. MS.NET doesn't do it.
1828 This fixes bug #49729.
1830 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1832 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
1834 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1836 * MapCodeGenerator.cs: New file. Moved here all code that is common
1837 between XmlCodeExporter and SoapCodeExporter.
1838 * SoapCodeExporter.cs: Implemented.
1839 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
1840 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
1841 encoded bare parameter list.
1842 * XmlTypeMapping.cs: Added method for getting member element by index.
1844 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1846 * XmlSchemas.cs : Implemented IsDataSet().
1848 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
1850 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
1851 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
1852 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
1853 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
1854 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
1855 and whether it uses encoded or literal format.
1856 * XmlSchemaExporter.cs: Little fixes.
1858 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1860 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
1861 need to be of type SOAP-ENC:Array, it can be a restriction of it.
1863 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1865 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
1866 Read only properties are only serialized if the type is an array.
1868 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
1870 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
1871 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
1872 is not needed for value types.
1874 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
1876 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
1877 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
1879 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
1881 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
1883 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
1885 * XmlSchemaExporter.cs: Keep track of elements being exported.
1886 * XmlSchemas.cs: Removed unneeded catch.
1888 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
1890 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1891 Fixed handling of members with XmlTextAttribute that are arrays.
1892 * TypeData.cs: IsComplexType now returns true for XmlNode.
1893 * XmlSerializer.cs: Added check for null mapping in FromMappings.
1894 * XmlTypeMapping.cs: Added helper method FindTextElement.
1896 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
1898 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
1899 Added support for IncludeInSchema flag.
1900 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1901 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
1902 methods. Added support for IncludeInSchema flag.
1903 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1904 Added support for IncludeInSchema flag.
1905 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
1906 * XmlTypeMapping.cs: Added IncludeInSchema property.
1908 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
1910 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
1912 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
1914 * XmlCustomFormatter.cs: added support for additional string types in
1915 GenerateToXmlString().
1916 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
1919 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
1921 * SoapSchemaImporter.cs: implemented.
1922 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
1923 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
1924 * XmlSchemaImporter.cs: more support for encoded format.
1926 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
1928 * SerializationCodeGenerator.cs: Minor fixes.
1929 * SoapReflectionImporter.cs: More fixes.
1930 * SoapSchemaExporter.cs: implemented.
1931 * SoapSchemaImporter.cs: Initial implementation.
1932 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
1934 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
1935 * XmlMemberMapping.cs: Minor fixes.
1936 * XmlMembersMapping.cs: added some convenient constructors.
1937 * XmlSchemaExporter.cs: Added support for encoded format.
1938 * XmlSchemaImporter.cs: Added support for encoded format.
1939 * XmlSerializationReader.cs: changed some string literals by constants.
1940 Implemented ParseWsdlArrayType.
1941 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
1943 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
1944 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
1945 WriteAttribute to write custom attributes.
1946 * XmlSerializer.cs: added some namespace constants.
1947 * XmlTypeMapping.cs: added GetSchemaArrayName method.
1949 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
1951 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
1952 * XmlTypeMapMemberElement.cs: Little fix.
1953 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
1954 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
1956 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
1959 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
1961 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1962 * XmlMemberMapping.cs: Changed constructor.
1963 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1964 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
1965 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
1966 * XmlSerializationWriterInterpreter.cs: Changed visibility.
1968 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
1970 * XmlSerializer.cs: Fix in Deserialize() method.
1972 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
1974 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
1975 * XmlSchemas.cs: Find method: make sure the returned object belongs to
1977 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
1978 Add null checks for eventSource.
1979 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
1980 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
1981 namespece declarations. Virtual method WriteObject not needed any more.
1982 In WriteStartElement, write the provided namespaces.
1983 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
1984 Added GetTypeMap method, that returns the map for a given type. Added some
1985 virtual methods, so writer behavior can be extended at several places by
1987 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
1988 methods CreateReader and CreateWriter are not called unless no type or
1989 type mapping was provided in the constructor.
1991 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
1993 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
1994 schema type it is importing is a class or an array. It will always
1997 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
1999 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
2000 as text nodes. Support it.
2002 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2004 * CodeIdentifier.cs: Fixed MakeValid method.
2005 * TypeTranslator.cs: Added support for more primitive types. Added
2006 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
2008 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
2009 are different from the type ns and name.
2010 Generate class and field comments.
2011 Fixed default attribute generation. In elements with ref attribute, it has to be
2012 generated in the referred attribute.
2013 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
2014 Added suport for text nodes in members of type "any".
2015 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
2017 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
2018 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
2019 that have already been declared.
2020 WriteStartElement(): elements from schema namespace are always written with ns prefix.
2021 * XmlTypeMapMember.cs: Added documentation property.
2022 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
2023 represents a simple type.
2025 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
2027 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
2029 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
2030 * TypeData.cs: Added property that returns a TypeData that represents an array of
2032 * TypeTranslator.cs: Added GetArrayName() method.
2033 Added TypeDatas for missing primitive types.
2034 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
2035 XmlRootAttribute. Added the namespace to all attributes being generated.
2036 Other fixes in the generation of code.
2037 * XmlReflectionImporter: store the namespace of the type in the maps.
2038 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
2039 class can generate text. Do not export inherited attributes of a class.
2040 Use the new root namespace stored in the map when generating the root element.
2041 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
2042 namespace is the default namespace.
2043 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
2044 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
2045 namespace instead of the map namespace (which can be different if the type
2046 has a XmlRoot element).
2047 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
2048 to System.DBNull.Value.
2049 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
2050 the collection if it has not yet been created.
2051 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
2052 of the type. It may be different from the namespace of the map if the type
2053 has a XmlRoot element. Also added IsSimpleType property.
2054 In ClassMap, added AllMembers property.
2056 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
2058 * TypeData.cs: Added new constructor and variables to allow the creation of
2059 a TypeData without a Type. Added ListItemTypeData property.
2060 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
2061 array of arrays. Added also a property to get the nested array map.
2062 * XmlCodeExporter.cs: First implementation of code exporter.
2064 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
2066 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
2067 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
2070 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
2072 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
2073 maps with the same name and namespace. To avoid this, maps must be registered
2074 using the real map namespace, not the default namespace (the namespace can
2075 change if the type has a XmlType or SoapType attribute).
2076 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
2077 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
2079 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
2082 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
2084 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
2085 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
2086 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
2087 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
2088 * XmlSchemaExporter.cs: Implemented.
2089 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
2090 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
2091 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
2092 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
2093 GetStringValue() returns null if the value is null, instead of empty string.
2094 (attributes with null values are not written).
2095 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
2096 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
2097 DataType value can is now in TypeData.
2098 * XmlTypeMapMemberElement.cs: Small fix.
2099 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
2101 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2103 * AssemblyInfo.cs: Removed
2105 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
2107 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
2108 namespace declarations if they have already been defined.
2110 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
2112 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
2113 for adding elements to a list.
2115 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
2117 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
2118 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
2121 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2123 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
2124 Added support for serialization of enums with the Flags attribute.
2126 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
2128 * SoapReflectionImporter.cs: Fix support for DataType in class members.
2129 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
2130 can have other names.
2131 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
2132 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
2133 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
2134 Fix support for DataType in class members.
2135 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
2136 Added support for array of primitive types in attributes.
2138 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
2140 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
2141 be overlodaded, so it is not good for this.
2142 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
2144 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
2146 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
2147 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
2148 array if the namespace is not specified in XmlArrayItemAttribute.
2150 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
2152 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
2153 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
2154 is not specified in the xsi attribute.
2155 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
2156 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
2158 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2160 * XmlSerializationReader.cs : Synchronous fix with
2161 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
2162 * added XmlTypeMapMemberNamespace.cs.
2163 * XmlReflectionImporter,
2164 XmlSerializationReaderInterpreter.cs,
2165 XmlSerializationWriterInterpreter.cs,
2166 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
2168 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2170 * XmlSerializationWriter.cs : some QName handling fix.
2172 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2174 * XmlSerializationReader.cs: Fixed error message.
2175 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
2177 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
2179 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2181 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
2182 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
2183 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
2184 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
2186 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
2188 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
2189 * SoapReflectionImporter.cs: tiny fix.
2190 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
2191 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
2192 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
2193 * XmlSerializationWriter.cs: implemented WriteSerializable ().
2195 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
2197 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
2198 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
2199 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
2200 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
2201 * XmlSerializationWriter.cs: small fix.
2203 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2205 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
2206 Added support for DefaultValueAttribute.
2207 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
2208 the value of an enum.
2209 * XmlTypeMapMember.cs: Added DefaultValue attribute.
2210 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
2213 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2215 * XmlSerializationReader.cs: Minor fix.
2217 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
2219 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
2221 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
2223 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2224 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
2225 * XmlCustomFormatter.cs: small fixes.
2226 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
2227 * XmlSerializationWriter.cs: Implemented TopLevelElement().
2228 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
2229 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
2230 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
2233 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
2235 * SoapReflectionImporter.cs: implemented.
2236 * TypeTranslator.cs: added IsPrimitive() method
2237 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
2238 used by that one. Also added Format property, that can be literal or encoded.
2239 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
2240 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
2241 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
2242 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
2243 * XmlSerializationWriter.cs: added support for encoded format.
2244 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
2245 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
2246 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
2247 and a map is needed for them).
2248 * XmlTypeMapMemberElement.cs: small fixes.
2249 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
2250 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
2252 2003-06-01 Miguel de Icaza <miguel@ximian.com>
2254 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
2255 UnknownElement): Add line number information.
2257 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
2259 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
2260 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2261 * XmlMapping.cs: Added internal property.
2262 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
2263 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
2264 * XmlReflectionMember.cs: XmlAttributes are now created by default
2265 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
2266 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
2267 Implemented support for XmlMembersMapping.
2268 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
2270 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
2272 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
2273 from xml type to clr type.
2274 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
2275 * XmlReflectionMember.cs: Added default constructor.
2276 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
2277 * XmlSerializationWriter.cs: Several fixes.
2278 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
2279 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
2280 Added support for enums. Added support for XmlElement and XmlNode.
2281 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
2283 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
2285 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
2286 * XmlCustomFormatter.cs: Added formatting methods.
2287 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
2288 * XmlReflectionMember.cs: Added new constructor.
2289 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
2290 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
2291 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
2292 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
2294 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2296 * Added TypeTableEntry.cs.
2297 * TypeTranslator.cs : changed for non-static use.
2298 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
2299 and GetElementName(). Bugfix so that if any XmlElementAttribute
2300 exists after non-typed XmlElementAttribute then it might be ignored.
2301 Added GetElementIsNullable().
2302 * XmlSerializer.cs :
2303 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
2304 Object memberObj[4].
2305 Deserialize() now uses XmlReader.Depth to check its depth.
2306 Serialize() for non-XmlReader arguments now always write xmldecl.
2307 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
2308 and handles XmlQualifiedName.
2309 Separated SerializeType () from Serialize().
2310 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
2311 IsPropertyTypeSerializable() from SerializeMembers().
2312 SerializeMembers() is now capable of null value and actual type,
2313 which should be included by XmlIncludeAttribute and so on.
2314 Renamed SerializeArray() to SerializeArrayContent(), and added
2315 SerializeCollectionContent().
2316 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
2317 FillTypeTable() is now aware of XmlInclude attributes.
2318 FillEnum() should not have different type table content from others.
2320 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2322 * XmlSerializer.cs : this time, only replaced spaces with tabs.
2324 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2326 * ChangeLog : Added missing ChangeLog of 2003-04-25.
2327 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
2328 separators. Added experimental method ToEnum().
2329 * XmlSerializationReader.cs : unconfirmed implementation of
2330 ReadSerializable() and ToEnum().
2331 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
2332 is null then no output will be written.
2333 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
2334 to use custom formatted name.
2336 2003-05-02 Miguel de Icaza <miguel@ximian.com>
2338 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
2339 had a void return value.
2341 2003-04-26 Miguel de Icaza <miguel@ximian.com>
2343 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
2344 `AllowMultiple' flags.
2346 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2348 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
2349 * XmlReflectionImporter.cs : patch by Erik LeBel.
2350 Now uses XmlRootAttribute to determine element name.
2352 2003-03-17 Miguel de Icaza <miguel@ximian.com>
2354 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
2357 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2359 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
2360 XmlWriter argument should call WriteEndDocument.
2362 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2364 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
2365 not WriteState.Start, and never call WriteEndDocument().
2367 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
2369 * XmlCustomFormatter.cs: Correct signature, Implement
2372 * XmlSerializationWriter.cs: Fix prototype.
2374 * XmlSerializer.cs: Implements Deserialize().
2376 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2378 * XmlSerializer.cs : serializing now works for interface member.
2380 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2382 * XmlSerializer.cs : some fix handling xml node object more correct.
2384 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
2385 * XmlSerializer.cs: Array serialization for 1D arrays works
2386 * TypeTranslator: Added for translations`
2388 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2390 * XmlCustomFormatter.cs: finished.
2391 * XmlSerializationReader.cs: implemented some more methods.
2393 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2395 * XmlSerializationReader.cs: implemented a few methods.
2397 * XmlAnyElementAttribute.cs:
2398 * XmlArrayAttribute.cs:
2399 * XmlChoiceIdentifierAttribute.cs:
2400 * XmlElementAttribute.cs:
2401 * XmlMemberMapping.cs:
2402 * XmlMembersMapping.cs: class status based fixes.
2404 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2406 * CodeIdentifiers.cs:
2407 * XmlSchemaExporter.cs:
2408 * XmlSchemaImporter.cs:
2410 * XmlSerializationWriteCallback.cs:
2411 * XmlSerializationWriter.cs:
2413 * XmlSerializerNamespaces.cs: some class status based fixed and
2414 implemented a couple of methods.
2416 * SoapSchemaExporter.cs: stubbed out.
2418 2002-08-24 Tim Coleman <tim@timcoleman.com>
2419 * SoapCodeExporter.cs:
2420 Fix return value of ExportTypeMapping.
2421 * XmlCustomFormatter.cs:
2422 Change methods to be internal instead of public.
2423 * XmlSerializationWriter.cs:
2424 Modify GetPrimitiveTypeName to build on linux.
2425 Modify GetQualifiedName to return an incrementing prefix
2426 instead of the same one all the time (still need to manage
2428 Modify WriteElementString to only do special stuff is XsiType
2430 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2431 an XmlQualifiedName.
2433 2002-08-22 Tim Coleman <tim@timcoleman.com>
2434 * XmlSerializationReader.cs:
2436 * XmlSerializationWriter.cs:
2438 * XmlCustomFormatter.cs:
2439 Implemented this class.
2441 2002-08-20 Tim Coleman <tim@timcoleman.com>
2442 * XmlSerializationWriter.cs:
2443 Some implementation.
2445 2002-08-19 Tim Coleman <tim@timcoleman.com>
2448 * XmlSerializationWriter.cs:
2451 2002-08-14 Tim Coleman <tim@timcoleman.com>
2453 More reformatting of source code so I can
2454 better understand what it does.
2456 2002-08-06 Tim Coleman <tim@timcoleman.com>
2458 Some reformatting of code for readability.
2459 Modify to correctly serialize ICollection objects
2460 such as the BindingCollection of a ServiceDescription
2463 2002-08-03 Tim Coleman <tim@timcoleman.com>
2465 Changed Implements() to check based on name rather
2466 than FullName. FullName was never working correctly.
2468 2002-07-26 Tim Coleman <tim@timcoleman.com>
2470 The constructor now looks for an XmlRootAttribute attribute
2471 if one is not passed in. Various changes to make it emit
2472 proper XML, such as handling an element without a namespace
2473 prefix, and using WriteEndDocument where it should be.
2475 2002-07-24 Tim Coleman <tim@timcoleman.com>
2476 * CodeIdentifier.cs:
2477 * IXmlSerializable.cs:
2478 * XmlSerializationCollectionFixupCallback.cs:
2479 * XmlSerializationFixupCallback.cs:
2480 * XmlSerializationReadCallback.cs:
2481 * XmlSerializationReader.cs:
2482 * XmlSerializationWriteCallback.cs:
2485 * CodeIdentifiers.cs:
2486 Implement some of these classes
2487 * XmlCodeExporter.cs:
2488 Fix return type of a function
2490 2002-07-24 Tim Coleman <tim@timcoleman.com>
2491 * SoapReflectionImporter.cs:
2492 New class added to build
2493 System.Web.Services.Description.ServiceDescription.cs
2495 2002-07-22 Tim Coleman <tim@timcoleman.com>
2496 * CodeIdentifiers.cs:
2497 * SoapCodeExporter.cs:
2498 * SoapSchemaExporter.cs:
2499 * XmlCodeExporter.cs:
2500 * XmlMemberMapping.cs:
2501 * XmlMembersMapping.cs:
2502 * XmlReflectionImporter.cs:
2503 * XmlReflectionMember.cs:
2504 * XmlSchemaExporter.cs:
2505 * XmlSchemaImporter.cs:
2507 New stubbs added to aid in the linux build of
2508 System.Web.Services.
2510 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
2512 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2514 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2516 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
2518 * XmlSeriailizer: Updated Serialize() method.
2520 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2521 * XmlSerializer: Serialize() method Partially Implemented.
2523 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2525 * Soap & XmlOverrides: Implemented using TypeMember as key with
2526 suggestions from Rafael.