1 2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
3 * XmlTypeMapMember.cs: Added GlobalIndex property.
4 * XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
6 * SerializationCodeGenerator.cs:
7 * XmlSerializationWriterInterpreter.cs:
8 * XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
9 Index to get/set the values from the input array, since some Index
10 values are shared between attribute and element members. Fixes
13 2006-05-30 Atsushi Enomoto <atsushi@ximian.com>
15 * SerializationCodeGenerator.cs,
16 XmlSerializerReaderInterpreter.cs : handle CDATA section as text
17 node. Fixed bug #78536.
19 2006-05-15 Gert Driesen <drieseng@users.sourceforge.net>
21 * XmlCodeExporter.cs: Added bool argument to GenerateClass and
22 GenerateEnum methods that specifies whether we're dealing with a type
23 for a top-level element. In GenerateClass, do not always add Namespace
24 argument for XmlRootAttribute if isTopLevel is false, and do not
25 emit XmlRootAttribute if isTopLevel is false and no arguments have been
27 * SoapCodeExporter.cs: Added bool argument to GenerateClass and
29 * MapCodeGenerator.cs: Added bool argument to GenerateClass and
32 2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
34 * SerializationCodeGenerator.cs: Allow generating serializer for
35 reading an XmlElement or XmlDocument as root element.
36 Properly generate jagged array creation.
38 2006-04-28 Atsushi Enomoto <atsushi@ximian.com>
40 * XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).
42 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
44 * SerializationCodeGenerator.cs: For flag enums, we should split on all
45 whitespace chars instead of only on blanks.
46 * XmlTypeMapping.cs: Same. Added ToEnum method for converting from
47 constant name(s) to integral enum value.
49 2006-04-26 Gert Driesen <drieseng@users.sourceforge.net>
51 * SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
52 as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.
54 2006-04-24 Gert Driesen <drieseng@users.sourceforge.net>
56 * XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
57 allow XML Schema items to be added to its parent in the same order
58 as MS.NET (schema elements before complex types, ...).
60 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
62 * XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
63 GenerateProperties. Use full type name for XML serialization attributes
64 instead of shortcut (without Attribute suffix). Always add Namespace
65 argument for XmlRootAttribute on classes. Added IsNullable argument for
66 XmlRootRootAttribute on classes. For attribute members, only output
67 Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
68 ctor that takes CodeGenerationOptions.
69 * SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
70 CodeGenerationOptions.
71 * MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
72 profile, emit GeneratedCodeAttribute, SerializableAttribute,
73 DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
74 To match MS.NET, emit attribute members before element members.
75 * XmlReflectionImporter.cs: Enums are never nullable.
76 * XmlSchemaImporter.cs: Set IsNullable on map using value of
77 XmlSchemaElement.IsNillable. Added LocateElement overload that takes
80 2006-04-15 Gert Driesen <drieseng@users.sourceforge.net>
82 * XmlSchemaImporter.cs: Make sure we pass TypeData for primitive types
83 to XmlReflectionImporter and SoapReflectionImporter to keep from
84 always ending up with the XSD type that directly maps to the CLR type.
85 * XmlReflectionImporter.cs: Added overloads taking TypeData instead of
86 Type. This improves performance by avoiding the use of
87 TypeTranslator.GetTypeData for types imported from a schema and fixes
89 * SoapReflectionImporter.cs: Same.
91 2006-04-11 Lluis Sanchez Gual <lluis@novell.com>
93 * XmlSchemas.cs: In 1.1, don't allow adding two schemas
94 with the same namespaces. This is allowed in 2.0. Fixed
95 the Find() method to cope with this case. Based on a patch
98 2006-03-22 Gert Driesen <drieseng@users.sourceforge.net>
100 * XmlReflectionImporter.cs: Throw NotSupportException instead of
101 InvalidOperationException (IOE) if void is specified as type in
102 ImportTypeMapping. To match MS.NET, surround importing of type in
103 try/catch block, and wrap any IOE in another IOE adding information
104 on the type that was being reflected. In CreateTypeMapping, surround
105 creating of map member in try/catch block, and wrap any IOE in another
106 IOE adding information on the member that was being reflected.
107 Modified exception message for missing enumeration value to match
108 MS.NET. In ImportTextElementInfo, throw IOE if Type is set in
109 XmlTextAttribute, and it differs from type of reflected member when
110 schema type of member is primitive or enum. Fixed bug #77591.
112 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
114 * XmlSchemaExporter.cs: Import namespace of schema generated for
115 non-xsd primitive. Do not set zero-length TargetNamespace to avoid
116 emitting empty targetNamespace attribute in generated schema.
117 * XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
120 2006-03-10 Gert Driesen <drieseng@users.sourceforge.net>
122 * XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
123 Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
124 serialization of integral value to enum constant name, and made sure
125 the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
126 throw InvalidOperationException if no matching enum constant exists.
127 In EnumMap ctor, initialize arrays holding XML names, enum names and
129 * XmlSerializationReaderInterpreter.cs: Pass full type name to
130 EnumMapping.GetEnumName for construction of exception message.
131 * XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
132 and InvalidCastException in another InvalidOperationException to match
133 MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
134 and the inner exception for a TargetInvocationException in an
135 InvalidOperationException to match MSFT.
136 * SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
137 XmlCustomFormatter.FromEnum in order to also support serialization
138 integral value to enum constant name. In 2.0 profile, throw
139 InvalidOperationException if numeric value cannot be serialized into
140 an enum constant value. In GenerateSingleEnumValue, no longer attempt
141 to parse unknown constant value but instead report it as
142 InvalidOperationException. Use string.Length instead of "" comparison
143 to check whether a string is empty. Fixed compiler warnings in
144 generated code (possible empty statement).
145 * XmlSerializationWriterInterpreter.cs: Pass full type name to
147 * XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
148 to allow it to be used in exception messages.
149 * XmlReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
150 enum fields. Use IsDefined instead of GetCustomAttributes for checking
151 if a certain attribute is defined. Use integral value of enum constant
152 in EnumMapMember ctor.
153 * SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
154 enum fields. Use IsDefined instead of GetCustomAttributes for checking
155 if a certain attribute is defined. Use integral value of enum constant
156 in EnumMapMember ctor.
158 2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
160 * XmlReflectionImporter.cs: Ignore the element namespace if
161 the schema form is set to Unqualified. Fixes bug #75019.
163 2006-02-22 Gert Driesen <drieseng@users.sourceforge.net>
165 * SerializationCodeGenerator.cs: Omit return statement in ReadObject
166 method if GenerateReadListElement returns null. Fixes bug #77588.
168 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
170 * XmlSerializer.cs: Fix the previous fix.
172 2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
174 * XmlSerializer.cs: Added option to avoid falling back to the
175 interpreted serializer if the code generator fails. To be used
178 2006-02-16 Gert Driesen <drieseng@users.sourceforge.net>
180 * TypeData.cs: Fixed the following issues when dealing with Array
182 - if a type implements IDictionary, throw a NotSupportedException
183 - if a type implements ICollection, then an Add method must exist
184 which takes a single argument of a type to which the listitem type
185 is assignable (meaning a base type or an interface that it
186 implements). If such a method does not exist, then throw an
187 InvalidOperationException.
188 - if a type implements IEnumerable, then the listitem type is
189 determined by the type of the Current property of the (IEnumerator)
190 type returned by the GetEnumerator() method or the private
191 implementation of IEnumerable.GetEnumerator(). If there's no
192 public Current property on the IEnumerator, then System.Object
193 is assumed as listitem type. Similar as for types implementing
194 ICollection, an Add method must exist which takes a single argument
195 of a type to which the listitem type is assignable (meaning a base
196 type or an interface that it implements). If such a method does not
197 exist, then throw an InvalidOperationException.
199 2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
201 * XmlSchemaImporter.cs: Support importing complex types with
202 simple content based on enums. Fixes bug #76848.
204 2006-02-11 Gert Driesen <drieseng@users.sourceforge.net>
206 * SoapAttributeAttribute.cs: Set eol-style to CRLF.
207 * SoapElementAttribute.cs: Same.
208 * SoapEnumAttribute.cs: Same.
209 * SoapIncludeAttribute.cs: Same.
210 * SoapSchemaMember.cs: Same.
211 * SoapTypeAttribute.cs: Same.
212 * XmlArrayAttribute.cs: Same.
213 * XmlAttributeAttribute.cs: Same.
214 * XmlChoiceIdentifierAttribute.cs: Same.
215 * XmlElementAttribute.cs: Same.
216 * XmlEnumAttribute.cs: Same.
217 * XmlRootAttribute.cs: Same.
218 * XmlSchemaImporter.cs: Same.
219 * XmlTextAttribute.cs: Same.
220 * XmlTypeAttribute.cs: Same.
221 * XmlTypeMapping.cs: Same.
222 * SoapAttributeOverrides.cs: Fixed line endings. Set eol-style to CRLF.
223 * CodeIdentifiers.cs: Same.
224 * SoapCodeExporter.cs: Same.
225 * SoapAttributes.cs: Same.
226 * SoapIgnoreAttribute.cs: Same.
227 * SoapSchemaImporter.cs: Same.
228 * TypeMember.cs: Same.
229 * UnreferencedObjectEventArgs.cs: Same.
230 * XmlAnyAttributeAttribute.cs: Same.
231 * XmlAnyElementAttributes.cs: Same.
232 * XmlArrayItemAttributes.cs: Same.
233 * XmlAttributeEventArgs.cs: Same.
234 * XmlCodeExporter.cs: Same.
235 * XmlElementAttributes.cs: Same.
236 * XmlElementEventArgs.cs: Same.
237 * XmlIgnoreAttribute.cs: Same.
238 * XmlNamespaceDeclarationsAttribute.cs: Same.
239 * XmlNodeEventArgs.cs: Same.
240 * XmlReflectionMember.cs: Same.
241 * XmlSchemas.cs: Same.
242 * XmlSerializerNamespaces.cs: Same.
243 * XmlTypeMapMemberElement.cs: Set eol-style to native.
245 2006-02-10 Gert Driesen <drieseng@users.sourceforge.net>
247 * CodeExporter.cs: Set eol-style to native.
248 * CodeGenerationOptions.cs: Same.
249 * CodeIdentifier.cs: Same.
250 * ImportContext.cs: Same.
251 * IXmlSerializable.cs: Same.
252 * IXmlSerializerImplementation.cs: Same.
253 * IXmlTextParser.cs: Same.
254 * MapCodeGenerator.cs: Same.
255 * ReflectionHelper.cs: Same. Fixed line endings.
256 * SchemaImporter.cs: Same.
257 * SchemaImporterExtensionCollection.cs: Same.
258 * SchemaImporterExtension.cs: Same.
259 * SchemaTypes.cs: Same.
260 * SerializationCodeGeneratorConfiguration.cs: Same.
261 * SerializationCodeGenerator.cs: Same.
262 * SerializationSource.cs: Same.
263 * SoapReflectionImporter.cs: Same.
264 * SoapSchemaExporter.cs: Same.
266 * TypeTranslator.cs: Same.
267 * UnreferencedObjectEventHandler.cs: Same.
268 * XmlAnyElementAttribute.cs: Same.
269 * XmlArrayItemAttribute.cs: Same.
270 * XmlAttributeEventHandler.cs: Same.
271 * XmlAttributeOverrides.cs: Same.
272 * XmlAttributes.cs: Same.
273 * XmlDeserializationEvents.cs: Same.
274 * XmlElementEventHandler.cs: Same.
275 * XmlIncludeAttribute.cs: Same.
276 * XmlMapping.cs: Same.
277 * XmlMemberMapping.cs: Same.
278 * XmlMembersMapping.cs: Same.
279 * XmlNodeEventHandler.cs: Same.
280 * XmlReflectionImporter.cs: Same.
281 * XmlSchemaExporter.cs: Same.
282 * XmlSchemaProviderAttribute.cs: Same.
283 * XmlSerializationCollectionFixupCallback.cs: Same.
284 * XmlSerialiationFixupCallback.cs: Same.
285 * XmlSerializationGeneratedCode.cs: Same.
286 * XmlSerializationReadCallback.cs: Same.
287 * XmlSerializationReader.cs: Same.
288 * XmlSerializationReaderInterpreter.cs: Same.
289 * XmlSerializationWriteCallback.cs: Same.
290 * XmlSerializationWriterInterpreter.cs: Same.
291 * XmlSerializerAssemblyAttribute.cs: Same.
292 * XmlSerializer.cs: Same.
293 * XmlSerializerFactory.cs: Same.
294 * XmlSerializerVersionAttribute.cs: Same.
295 * XmlTypeMapElementInfo.cs: Same.
296 * XmlTypeMapMemberAttribute.cs: Same.
297 * XmlTypeMapMember.cs: Same.
298 * XmlTypeMapMemberNamespaces.cs: Same.
300 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
302 * XmlTypeMapping.cs: Modified GetRealTypeMap to return current map
303 if map represents enum. Fixes bug #77501.
305 2006-02-09 Gert Driesen <drieseng@users.sourceforge.net>
307 * XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
308 CreateInvalidEnumValueException. Set eol-style to native.
309 * XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
310 enum for which string value must be created. Set eol-style to native.
311 Modified FromEnum to behave more like MSFT's implementation:
312 - treat value as bit field.
313 - no longer return empty string if the value matches an id for which there's no corresponding
315 - if one of the ids has value 0 and there's a match for the enum value
316 (with a zero length XML name) or the enum value is 0, then return the
317 corresponding XML for the id with value 0.
318 - in 2.0 profile, throw InvalidOperationException if no match is found
319 for (part of) the enum value.
320 Modifies ToEnum to match the MSFT implementation (as described in
322 - Expect hashtable containing enum names as key, and corresponding
323 integral numbers as value.
324 - Do not report exception for whitespace-only value.
325 - Support space (MS docs are not clear about this) delimited list
327 - typeName is only used to construct exception message.
329 2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
331 * System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
332 looking for the correct element definition for a member,
333 based on the value type, take into account subypes of the
334 declared types. Fixes bug #77447.
336 2006-02-07 Konstantin Triger <kostat@mainsoft.com>
338 * XmlReflectionImporter.cs: remove local name encoding for enums.
340 2006-01-08 Gert Driesen <drieseng@users.sourceforge.net>
342 * XmlSchemaImporter.cs: Fixed line endings (to CRLF).
344 2006-01-07 Gert Driesen <drieseng@users.sourceforge.net>
346 * XmlTypeMapping.cs: Fixed line endings.
347 * TypeTranslator.cs: Fixed line endings.
349 2005-12-07 Lluis Sanchez Gual <lluis@novell.com>
351 * XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
352 collection, don't create a new collection if the property already has a
354 * SerializationCodeGenerator.cs: same as above. Also return an empty
355 string for flag enum default values.
357 2005-12-06 Konstantin Triger <kostat@mainsoft.com>
359 * TypeTranslator.cs: TARGET_JVM: save additional types per AppDomain.
361 2005-12-05 Lluis Sanchez Gual <lluis@novell.com>
363 * XmlSerializationReaderInterpreter.cs:
364 * SerializationCodeGenerator.cs: When deserializing a collection,
365 don't create a new collection if the property already has a
366 collection instance. This does not apply to arrays. Changed how nullabe
367 array properties are set. Setting IsNullable=false to the property means
368 that it won't be set if the read array is null (so, if the property
369 already has a value, it will be kept).
370 Another change is that can't never be null (only arrays can).
372 2005-12-01 Lluis Sanchez Gual <lluis@novell.com>
374 * TypeTranslator.cs: In GetTypeData, if an xmlType is specified for
375 a cli array type, consider it refering to the type of array elements.
376 This fixes bug #76860. Also added some locking.
378 2005-11-27 Konstantin Triger <kostat@mainsoft.com>
380 * TypeData.cs, XmlSchemaExporter.cs, TypeTranslator.cs: correctly
381 export non-xsd primitive types.
383 2005-11-24 Vladimir Krasnov <vladimirk@mainsoft.com>
385 * XmlTypeMapping.cs: fixed GetXmlName method, added difference
386 of value serialization of flags and non-flags enums
388 2005-11-23 Konstantin Triger <kostat@mainsoft.com>
390 * XmlSchemaExporter.cs: do not import empty namespaces.
392 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
394 * XmlSerializationReaderInterpreter.cs: fixed ReadEnumElement
395 method, ReadEndElement should check XmlNodeType.
396 * XmlTypeMapping.cs: fixed GetXmlName method, it should not
397 write zero as default enum value.
399 2005-11-16 Vladimir Krasnov <vladimirk@mainsoft.com>
401 * XmlReflectionImporter.cs: fixed field order returned by
402 reflection in method GetReflectionMembers. TARGET_JVM only.
404 2005-11-07 Lluis Sanchez Gual <lluis@novell.com>
406 * XmlSchemaImporter.cs: Added support for restrictions with
407 embedded simple type definitions.
409 2005-11-04 Atsushi Enomoto <atsushi@ximian.com>
411 * XmlElementAttribute.cs : gimme Order; it fixes 100 or more
412 sys.xml.schema corcompare diffs.
414 2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
416 * SerializationCodeGenerator.cs:
417 * XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
418 need to be all XmlElments. Fix by Atsushi for bug #76288.
420 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
422 * XmlTypeMapping.cs: Added ChoiceMember to ListMap.
423 In ListMap.FindElement, take into account the ChoiceMember
425 * SerializationCodeGenerator.cs:
426 * XmlSerializationReaderInterpreter.cs: For lists with a choice
427 member, fill the member with the corresponding enum values.
428 * XmlReflectionImporter.cs: Properly reflect the choice member
429 when applied to a list.
430 * XmlSerializationWriterInterpreter.cs: Track class changes.
431 * XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
432 All this fixes bug #76203.
434 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
436 * SoapReflectionImporter.cs: Check the correct defaults
439 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
441 * SerializationSource.cs: Fix nullref.
442 * XmlReflectionImporter.cs: When registering a type using
443 IncludeType(), make sure it is added as a subtype and the
444 map for typeof(object) if it has already been imported.
447 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
449 * XmlSerializationWriter.cs: Also internally serialize
450 arrays of object (see previous change).
452 2005-09-21 Lluis Sanchez Gual <lluis@novell.com>
454 * XmlSerializationWriter.cs: Properly serialize arrays
455 of primitive types when not explicitely specified in
456 a container class. Based on a patch by Konstantin Triger.
459 2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
461 * TypeData.cs: Reset the hasPublicConstructor flag when the
462 type is an interface.
463 * XmlSerializationWriterInterpreter.cs: Get the Count property
464 from the object type instead of the property type (it didn't
466 * ReflectionHelper.cs: In CheckSerializableType, don't trow
467 if the type is a collection interface. All this fixes
470 2005-08-06 Lluis Sanchez Gual <lluis@novell.com>
472 * XmlTypeMapping.cs: Added null check.
474 2005-08-05 Lluis Sanchez Gual <lluis@novell.com>
476 * XmlTypeMapping.cs: Added ListMembers property that returns
477 members which are collections.
478 * SerializationCodeGenerator.cs:
479 * XmlSerializationReaderInterpreter.cs: Initialize collection
480 members to an empty collection by default. Fixes bug #75662.
482 2005-08-01 Gert Driesen <drieseng@users.sourceforge.net>
484 * XmlMapping.cs: API compatibility fixes. Ctor is not protected
485 in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
487 2005-07-31 Gert Driesen <drieseng@users.sourceforge.net>
489 * SoapAttributeAttribute.cs: Return zero-length string if
490 AttributeName or DataType are null.
491 * SoapEnumAttribute.cs: Return zero-length string if Name is null.
492 * SoapIncludeAttribute.cs: Avoid using property in ctor.
493 * SoapSchemaMember.cs: Return zero-length string if MemberName is
494 null. MemberType should be XmlQualifiedName.Empty by default.
495 * SoapTypeAttribute.cs: Return zero-length string if TypeName is
496 null. Avoid using property in ctor.
497 * XmlArrayAttribute.cs: Return zero-length string if ElementName is
498 null. Avoid using property in ctor.
499 * XmlArrayItemAttribute.cs: IsNullable must be false by default.
500 Return zero-length string if DataType or ElementName are null. Avoid
501 using property in ctor.
502 * SoapElementAttribute.cs: Return zero-length string when DataType
503 or ElementName are null. Avoid using property in ctor.
504 * XmlAnyElementAttribute.cs: Return zero-length string when Name is
505 null. Avoid using property in ctor.
506 * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
507 zero-length string if AttributeName or DataType are null.
508 * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
510 * XmlElementAttribute.cs: Return zero-length string when DataType or
511 ElementName are null. Avoid using property in ctor.
512 * XmlEnumAttribute.cs: Avoid using property in ctor.
513 * XmlIncludeAttribute.cs: Avoid using property in ctor.
514 * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
515 can no longer be null. Use check for zero-length string to determine
516 whether they are set. Corrected exception message when DataType is
517 set for complex type.
518 * XmlRootAttribute.cs: Return zero-length string if DataType or
519 ElementName are null. Avoid using property in ctor.
520 * XmlTextAttribute.cs: Return zero-length string if DataType is null.
521 * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
523 2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
525 * SerializationCodeGenerator.cs: In the generated serializer always
526 use the Object equality operator when comparing objects to serialize
527 to null, since those objects may have the equality operator
528 overloaded. This fixes bug #75543.
530 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
532 * XmlCustomFormatter.cs: Properly read/write duration values.
534 2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
536 * XmlSerializer.cs: Fix race between XmlSerializer and the
537 serializer generator.
539 2005-06-14 Lluis Sanchez Gual <lluis@novell.com>
541 * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
542 getting the real xml type name of a member.
543 * XmlSerializationWriterInterpreter.cs: Use that new property
544 to get the type name of primitive types. This should fix bug #75180.
546 2005-06-07 Lluis Sanchez Gual <lluis@novell.com>
548 * SerializationCodeGenerator.cs: When reading members by order,
549 call a MoveToContext after each member read. In the fixup method
550 don't cast returned values if it is reading an object array.
552 * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
553 being imported is a primitive type, create a wrapper class that
554 inherits from the provided one. This fixes bug #68809.
556 * XmlSerializationReader.cs: Properly report unreferenced objects.
557 Created an overload of ReadTypedPrimitive that reports elements of
558 unknown type. Implemented Referenced().
560 2005-05-30 Lluis Sanchez Gual <lluis@novell.com>
562 * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
563 set to the default namespace. This fixes bug #73035.
565 2005-05-12 Lluis Sanchez Gual <lluis@novell.com>
567 * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
568 types indirectly imported by this method use the same namespace.
570 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
572 * TypeTableEntry.cs : removed obsolete code.
574 2005-04-26 Lluis Sanchez Gual <lluis@novell.com>
576 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
577 properties which are read only. Fixes bug #74723.
579 2005-04-14 Lluis Sanchez Gual <lluis@novell.com>
581 * XmlReflectionImporter.cs:
582 * SoapReflectionImporter.cs:
583 * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
584 where needed. Based on a patch by Konstantin Triger.
586 2005-04-12 Lluis Sanchez Gual <lluis@novell.com>
588 * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
589 * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
590 export the schema that it defines. In ImportNamespace, removed
591 check for default namespace, since it may be included from a non
593 * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
594 types. All this based on a patch by Konstantin Triger.
596 * SerializationCodeGenerator.cs:
598 * XmlSerializationReaderInterpreter.cs:
599 * SoapCodeExporter.cs:
600 * XmlTypeMapMemberAttribute.cs:
601 * XmlSerializationReader.cs:
602 * XmlCodeExporter.cs: Fixed some warnings.
604 2005-04-10 Andrew Skiba <andrews@mainsoft.com>
606 * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
608 2005-04-03 Andrew Skiba <andrews@mainsoft.com>
610 * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
613 2005-03-30 Lluis Sanchez Gual <lluis@novell.com>
615 * SerializationCodeGenerator.cs:
616 * XmlSerializationReaderInterpreter.cs: If the element being read is
617 bound to a choice member, set the corresponding value.
618 * XmlTypeMapMember.cs: Added helper SetValue method.
619 * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
620 since now stores the enum value.
621 * XmlReflectionImporter.cs: Properly import choice values.
622 * XmlTypeMapMemberElement.cs: Added setter for the choice.
624 2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
626 * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
627 This fixes bug #73901 and should fix #70384.
628 * XmlSerializationReader.cs: When reading an object element, return
629 an Object instance if the element has no children. This fixes bug #73974.
630 * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
631 type (it is written as an element with those nodes as children).
633 2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
635 * XmlSchemaImporter.cs: Support importing schemas that define
636 extra types in the standard xml schema namespace. When using encoded
637 format, support the primitive types defined by the SOAP encoding
640 2005-03-04 Lluis Sanchez Gual <lluis@novell.com>
642 * ReflectionHelper.cs: Avoid endless loop.
643 * XmlSchemas.cs: Added null check. Patches from MainSoft.
645 2005-02-07 Lluis Sanchez Gual <lluis@novell.com>
647 * XmlSerializationReader.cs: After reading an href element, skip the
648 whole element (it may not be an empty element). This fixes bug #72265.
650 2005-01-25 Lluis Sanchez Gual <lluis@novell.com>
652 * XmlSchemaImporter.cs: When importing a default value of type enum,
653 translate it from the schema value to the clr value.
655 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
657 * XmlSerializer.cs: only print the results if there's an error
660 2005-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
662 * SerializationCodeGenerator.cs: don't use _config if it has not been
665 2005-01-18 Lluis Sanchez Gual <lluis@novell.com>
667 * XmlReflectionImporter.cs: Don't check the property type if it has
668 an [XmlIgnore] attribute. This fixes bug #71332.
670 2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
672 * SerializationCodeGenerator.cs,
673 XmlSerializationWriterInterpreter.cs : exchanged attribute
674 serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
675 xmlns attributes in XmlAnyAttribute are not written.
677 2005-01-12 Atsushi Enomoto <atsushi@ximian.com>
679 * SerializationCodeGeneratorConfiguration.cs,
680 SerializationCodeGenerator.cs : Added some generation configuration:
682 write custom reader/writer as internal classes.
683 <noreader>, <nowriter>
684 They make generation of reader and/or writer optional.
685 * XmlSerializerNamespaces.cs :
686 Now it uses ListDictionary instead of Hashtable.
687 * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
688 written unless there is already the same prefix-ns mapping.
690 2005-01-12 Lluis Sanchez Gual <lluis@novell.com>
692 * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
693 * XmlSchemaImporter.cs: When importing a base type of a complex type,
694 make sure that the base class is always imported as a class and not
695 as an array. If it has been imported as array, import it again.
696 This fixes bug #70839. Other minor fixes as well.
697 * XmlSerializationWriter.cs: Fixed warning.
699 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
701 * SerializationCodeGenerator.cs: Yet another generation fix.
703 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
705 * SerializationCodeGenerator.cs: Fixed generation of enum literals.
707 2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
709 * XmlReflectionMember.cs: Added DeclaringType member.
710 * XmlReflectionImporter.cs: When importing fields that belong to a
711 base class, use the xml namespace of the base map for the member.
712 This fixes bug #70309.
714 2004-11-30 Lluis Sanchez Gual <lluis@novell.com>
716 * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
717 compilation warnings.
719 2004-11-24 Lluis Sanchez Gual <lluis@novell.com>
721 * SerializationSource.cs: Made SerializationSource abstract, and
722 renamed Equals to BaseEquals to avoid missing GetHashCode warning
723 (it does not really make sense in this case).
724 * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
725 XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
726 XmlSerializationReader.cs: Fixed warnings.
728 2004-10-19 Atsushi Enomoto <atsushi@ximian.com>
730 * XmlSerializationWriter.cs : When namespace is an empty string,
731 XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
734 2004-10-01 Lluis Sanchez Gual <lluis@novell.com>
736 * MapCodeGenerator.cs: When the Object type is exported, export all
737 derived maps. This was done in IncludeMetadata, but this method is
738 not called by the xsd tool.
739 * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
740 attribute for primitive types and arrays.
741 * XmlSchemaImporter.cs: Only export all object-derived maps if the
742 Object type is explicitly referenced by an element.
743 * XmlSerializationWriter.cs: Minor fix.
745 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
747 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
748 This fixes bug #66877.
750 2004-09-21 Lluis Sanchez Gual <lluis@novell.com>
752 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
753 when reading a primitive value in encoded format using
754 ReadReferencingElement, provide the type name and namespace
755 since the xsi type may not be present in the xml element. This
758 2004-09-15 Lluis Sanchez Gual <lluis@novell.com>
760 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
761 ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
762 * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
763 ImportIncludedTypes to the end, to make sure that the current map has all
764 needed data before derived maps are constructed.
765 * XmlSchemaExporter.cs: Generate the base class of simple types that are
766 not primitive types. Set the correct value for IsMixed in extended types.
767 * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
768 the base class of a simple type doesn't need to be a xsd type.
769 All those patches fix bug #65654.
771 2004-09-03 Lluis Sanchez Gual <lluis@novell.com>
773 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
774 Normalization==true by default.
776 2004-09-02 Lluis Sanchez Gual <lluis@novell.com>
778 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
779 In CheckSerializableType, add the option of ignoring types with private
780 constructors. Some kind of lists can be deserialized
781 even if the constructor is private. See bug #61464.
782 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
783 Before creating a list, check that it has a public constructor.
784 * TypeData.cs: Added HasPublicConstructor property.
786 2004-09-01 Lluis Sanchez Gual <lluis@novell.com>
788 * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
789 value list serialization.
790 * XmlSchemaImporter.cs: Added some null checks.
792 2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
794 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
795 When deserializing an encoded method response, assign to the return value
796 the first element of the message, whatever it is. The return type doesn't
797 need to be Object, it seems to be true for all return types.
799 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
801 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
802 no need to add it after the call.
803 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
805 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
807 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
808 * ImportContext.cs: Implemented.
809 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
810 options for 2.0. Implemented support for generating properties instead of
812 * XmlSchemaImporter.cs: Added support for sharing types.
814 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
816 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
817 xsd type is not part of the last schema specification, but the google api
818 uses it and ms.net accepts it.
820 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
822 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
823 Thanks to Juan C. Olivares.
825 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
827 * CodeExporter.cs: Added private constructor.
828 * CodeGenerationOptions.cs: Set the correct enum values.
829 * CodeIdentifier.cs: Added private constructor.
830 * SchemaImporter.cs: Added internal constructor.
831 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
832 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
833 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
834 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
835 * XmlSerializationReader.cs: Added missing setter for DecodeName.
837 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
839 * XmlSerializer.cs: Fix fix.
841 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
843 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
844 * ReflectionHelper.cs: New method for generating map keys.
845 * SerializationCodeGenerator.cs: Added support for generating the serializer
846 contract class, needed for 2.0.
847 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
849 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
850 as Type[]. Added check that makes sure that enums being serialized are
852 * XmlMapping.cs: Added internal GetKey method.
853 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
854 Added first bits to support loading of serializers from pre-generated
856 * XmlSerializerFactory.cs: Mostly implemeted.
858 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
860 * CodeIdentifier.cs: Removed constructor for NET_2_0.
861 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
862 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
863 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
864 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
865 XmlSerializerNamespaces.cs: Added 2.0 stubs.
866 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
867 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
868 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
869 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
870 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
871 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
872 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
874 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
876 * SerializationCodeGenerator.cs: Generate check that the object being
877 serialized has a known type. Little cast fix.
878 * XmlCustomFormatter.cs: Little fix in Single conversion.
880 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
882 * TypeData.cs: In the constructor, set the correct xml type name if the
883 type is an array (for example, instead of StringCollection, use
886 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
888 * ReflectionHelper.cs: Correctly detect private types.
889 * XmlCodeExporter.cs: Implemented missing method.
890 * XmlSchemaImporter.cs: Allow import of root primitive types.
892 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
894 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
895 SerializationCodeGenerator.cs, SerializationSource.cs,
896 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
897 XmlSerializationReader.cs, XmlSerializationWriter.cs,
898 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
899 : Globalization fixes.
900 In XmlCustomFormatter.GenerateToXmlString() time was not
902 Replaced all CRLF XmlAttributeOverrides.cs into LF.
904 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
906 * XmlSerializationWriter.cs: changed signature of protected method
907 FromByteArrayBase64 to match MS.NET
909 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
911 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
912 attributes that MS.NET generates.
913 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
915 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
916 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
917 MS.NET member ordering. Patch by David Taylor.
918 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
919 flag. The generated enum must also not be included in the schema.
920 * XmlTypeMapMember.cs: Added ignore flag.
921 * XmlTypeMapping.cs: The AttributeMembers property now returns the
922 attributes in the correct order.
924 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
926 * XmlSerializationReader.cs: added missing protected members
927 to fix API compatibility with MS.NET
928 * XmlSerializationWriter.cs: added missing protected members
929 to fix API compatibility with MS.NET
931 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
933 * XmlSerializationReader.cs: Support schamea instance namespaces other than
934 the 2001 one when reading the xsi type.
935 * MapCodeGenerator.cs: Take into account that the root namespace and element
936 name may have changed from one export to another of the same type. In
937 this case the class attributes need to be regenerated.
938 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
939 not ElementName. Idem for namespace.
940 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
941 * XmlRootAttribute.cs: Default value for nullable is true.
942 * XmlSchemaImporter.cs: The root name for a class may change in some
943 scenarios (for example, when the type is initially exported as part of
944 another type and later exported as a root type).
945 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
946 found using the standard namespace, try getting the type using
947 the 2000/10 and 1999 namespaces.
948 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
950 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
952 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
953 In encoded format, primitive types can be null. Read them using
954 ReadReferencingElement, that already checks for the null tag.
956 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
958 * XmlSerializationReader.cs: Check for empty element when reading an array
959 element. This fixes bug #59003. Thanks Atsushi!
961 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
963 * XmlSerializationWriter.cs: Implemented some missing methods.
964 In .NET 1.0, encoded null elements use the attribute null="1", while in
965 1.1 the attribute is nil="true".
966 * XmlTypeMapping.cs: Little fix for nested classes.
968 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
970 * XmlReflectionImporter.cs: Don't reset the internal tables at every
971 ImportMembersMapping call. This fixes bug #58112. The problem is that
972 it imported two different arrays (only different in the array item
973 namespace) with the same name. Not sure what was this Reset needed for,
974 everyting seems to work without it.
976 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
978 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
979 When deserializing an encoded method response, if the return type of the
980 method is Object, assign to it the first element of the message, whatever
982 * XmlSerializationReader.cs:
983 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
985 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
986 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
987 a given xsi type is not found. Just read it as primitive type.
988 * XmlTypeMapMember.cs: Added IsReturnValue property.
989 * XmlTypeMapping.cs: Added ReturnMember property.
990 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
992 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
994 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
995 When reading an object using the typeof(object) map, an emty xsi:type
996 means that it has to read the contents into an XmlNode[].
997 * TypeData.cs: Return the correct full name for inner classes.
998 * XmlSchemaImporter.cs: Improved detection of types that represent
999 "anyType", and must be mapped to XmlElement, XmlNode or Object.
1000 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
1001 the correct namespace.
1002 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
1005 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
1007 * XmlSerializationWriter.cs : It do not have to handle schema
1008 namespace as special one.
1010 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1012 * XmlSerializationReaderInterpreter.cs: Removed the check for null
1013 AttributeMembers collection. Even if there are no attribute members,
1014 attributes need to be read.
1016 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1018 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
1019 the IXmlSerializable object may not read all the EndElement it read.
1020 This fixes bug #57413.
1022 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
1024 * XmlSerializer.cs: Enable serializer generation by default.
1026 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
1028 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
1029 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
1030 turns out that it is an array, import it again as array. This fixes
1033 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
1035 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
1036 don't use type name for array types, since we can have different classes
1037 that represent the same array type (for example StringCollection and
1040 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
1042 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
1043 not present in MS.NET.
1044 * XmlSerializationWriter.cs: Improved error message.
1046 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
1048 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
1049 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
1050 Support deserialization of members of type XmlDocument. This fixes #56169.
1052 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
1054 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
1055 Use a special method to generate default values, since default enum values
1056 will come as integers, so a special cast is needed.
1057 * XmlSerializationReaderInterpreter.cs,
1058 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
1059 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
1060 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
1061 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
1062 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
1063 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
1064 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
1065 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
1066 of SerializationSource. It can't keep and use the XmlAttributeOverride
1067 instances as key values, since those instances can be modified after the
1068 xml map has been generated. Now, SerializationSource generates a unique
1069 string hash from XmlAttributeOverride and uses it for comparisons.
1071 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
1073 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
1074 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
1075 the adequate type. Set the default value of members that do have a default
1076 value. Other minor fixes.
1077 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
1078 from typeof(object) map, even those that have another base class.
1079 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
1080 It must serialize the char as number, not as character.
1081 * XmlSerializationReaderInterpreter.cs: Set the default value of members
1082 that do have a default value.
1083 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
1084 of members that have a default value.
1086 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
1088 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
1089 This fixes bug #55547.
1091 2004-03-13 David Sheldon <dave-mono@earth.li>
1093 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
1096 2004-03-13 David Sheldon <dave-mono@earth.li>
1098 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
1099 fixes test case that tests for this directly.
1100 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
1101 it. Treat it as null.
1103 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
1105 * CodeIdentifier.cs: Limit the length of identifiers.
1106 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
1107 Generate types using GetDomType, so if the type is an array, it creates
1108 the correct combination of types.
1109 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
1110 an enum, if the string is empty and the enum has [Flags], then return 0
1111 as value. This fixes bug #55509.
1112 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
1113 are not supported. Another check: a simple type cannot be enum if it does
1114 not have any enum facet.
1115 And another fix: use string as default type for attribtues.
1116 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
1117 other schemas. An imported schema would not be in the table, but its
1118 elements (although from another namespace) would be in the schema that
1119 imported it. So, we need know to check for every schema in the table.
1120 * XmlSerializer.cs: Added environment variable to help debugging code
1123 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
1125 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
1126 of XmlInclude attributes needed for the service class.
1127 IsMapExported: Removed check for object type, since it can now be exported.
1128 SetMapExported: Use the type name as key, since different importers may
1129 be used to create a map for the same type.
1130 GenerateClassInclude: Updated signature.
1131 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1132 GenerateClassInclude(): Updated signature.
1133 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
1134 Implemented IncludeTypes.
1135 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
1136 GenerateClassInclude(): Updated signature.
1137 * XmlMemberMapping.cs: Added missing property.
1138 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
1139 Implemented IncludeTypes().
1140 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
1141 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
1142 Now, it does a regular import and then assign the required base class to
1143 the imported map. In this way it is possible to assign a base type for a
1144 map that was previously imported without a base type.
1145 * XmlTypeMapping.cs: Added internal method SetRoot().
1147 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
1149 * SerializationCodeGenerator.cs: Added support for generation of readers
1150 and writers for several maps in a single class. Added support for
1151 XmlMemberMapping. Fixed generation of serializers that use encoded format.
1152 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
1153 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
1154 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
1155 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
1156 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
1157 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
1158 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
1159 Added InternalEquals method.
1160 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
1161 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
1162 * XmlCustomFormatter.cs: Fixed little bug.
1163 * XmlMapping.cs: Added Source property. This a global identifier of the map.
1164 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
1165 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
1167 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
1168 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
1170 * XmlSerializer.cs: Added support for generation of serializers.
1172 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
1174 * SerializationCodeGenerator.cs,
1175 SerializationCodeGeneratorConfiguration.cs:
1176 Added <namespaceImports> feature ("using XXX;" generation) support.
1178 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
1180 * XmlSerializationWriter.cs: When writing the root element, use a prefix
1181 if the namespace of the element is defined in the list of namespaces
1182 provided to the XmlSerializer. This fixes bug #54427.
1184 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
1186 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
1187 Those are basically methods to add custom attributes to element and
1189 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
1190 * XmlCodeExporter.cs: Better support for custom attribute generation for
1192 * XmlCustomFormatter.cs: Added null check.
1193 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
1194 attributes that are required.
1195 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
1198 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
1200 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
1201 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
1202 string, not string[].
1203 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
1204 for array parameters. In general, improved generation of schema Form
1206 * XmlMemberMapping.cs: Added Form property.
1207 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
1208 simple types. Added a check for this.
1209 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
1210 Form. The key used to determine if a map has been already generated must
1211 include the XmlType, since there can be two xml types with the same CLR
1212 type and namespace (for example, they may differ in the Form property).
1213 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
1214 also return the corresponding map. There can be two maps that have the
1215 same TypeData, so given a TypeData is not always possible to get the
1216 correct corresponding map (for example two arrays that only differ in the
1218 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
1221 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1223 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
1224 normalizedString schema type.
1226 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
1228 * XmlReflectionImporter.cs: Get the class members using the right order.
1229 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
1230 A member with the Any attribute can also contain text. Support this.
1231 * XmlTypeMapMemberElement.cs: Added CanBeText property.
1233 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1235 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
1238 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
1240 * MapCodeGenerator.cs: Added helper method for generating an attribute
1241 parameter of type enum.
1242 * XmlAttributeAttribute.cs: little fix.
1243 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
1244 for method parameters.
1245 * XmlMemberMapping.cs: Improved support for members of type "any".
1246 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
1247 If the namespace is explicitly specified, then the form should be
1248 qualified. Also fixed issues with the namespace assigned to attributes.
1249 This should fix bug #53384.
1250 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
1251 methods that return values of type "any". Changed the methods
1252 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
1253 element, return it, and the caller must add it to the collection.
1254 Other fixes in attribute generation.
1255 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
1256 generate the AnyType mapping from the type described in the schema.
1257 Small fixes regarding IsMixed property of complex types (it means that
1258 the type can contain text, so the XmlTextAttribute must be generated).
1259 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
1260 be only used in the bare+encoded format.
1262 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
1264 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
1265 to be derived types of the one that has the attribute.
1266 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
1267 map to the parent map. This fixes #53246.
1268 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
1270 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
1272 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
1273 do not check the root element name, since it can be any name. This fixes
1276 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1278 * XmlReflectionImporter.cs: Throw exception if a value type member has the
1279 IsNullable=true flag. This fixes bug #52906.
1281 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1283 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
1284 so a 'specified' member has always to be generated.
1285 * TypeData.cs: Fixed check for value type.
1287 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1289 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
1290 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
1291 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
1292 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
1293 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
1294 Added support for value specifiers members. This fixes bug #53024.
1296 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
1298 * XmlSchemaExporter.cs: Don't create referenced element if it has already
1299 been created (two types could be referencing the same schema element).
1301 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
1303 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
1304 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
1305 arrays. This fixes bug #53018.
1307 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
1309 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
1310 default namespace for members.
1311 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
1312 * XmlReflectionImporter.cs: Fixed the assignment of root and type
1314 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
1315 default namespace for members. In AddSchemaElement, if the element is
1316 a root element never use a "ref" attribute.
1317 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
1319 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1321 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1322 XmlTypeMapping.cs: more namespace fixes.
1324 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
1326 * XmlReflectionImporter.cs: type namespace must never be used as root
1327 namespace. This fixes bug #52772.
1329 2004-01-08 Nick Drochak <ndrochak@ieee.org>
1331 * XmlSchemaImporter.cs: Removed unused variable.
1333 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
1335 * XmlReflectionImporter.cs: Ignore Namespace property when applying
1336 the [XmlType] attribute to an enum. This fixes bug #52607.
1338 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
1340 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
1341 option that allow serialization of private types.
1343 2003-12-18 Eran Domb <erand@mainsoft.com>
1345 * TypeTranslator.cs : Change primtive types map.
1347 2003-12-18 Eran Domb <erand@mainsoft.com>
1349 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
1352 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1354 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
1355 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
1356 primitive types are not the same as XML primitive types. Patch proposed
1357 by Mordechai Taitelman. This fixes bug #52228.
1358 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
1360 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1362 * XmlReflectionImporter.cs: Little fix.
1364 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
1366 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
1367 need to be derived types of the includer. This fixes bug #52152.
1368 Added null check for Name property of XmlEnumAttribute. This fixes
1370 * XmlSerializationReader.cs: Fixed some error messages.
1371 * XmlSerializationReaderInterpreter.cs: Check that the root element has
1372 the correct local name and namespace. This fixes bug #52038.
1373 Throw exception if enum value can't be parsed.
1374 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
1377 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
1379 * MapCodeGenerator.cs: Added support for [Flags] enum.
1380 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
1381 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
1382 encoded array type. Added support for enums with [Flags].
1383 In encoded format, unqualified types are schema types by default.
1385 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
1387 * XmlCodeExporter.cs: Little fix.
1388 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
1389 same name have the same type.
1390 * XmlSchemaImporter.cs: Support xml:lang.
1391 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
1392 fixed wrong namespace for the arrayType attribute.
1394 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
1396 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
1397 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
1398 When using rpc format on a web service, members don't need to have any
1399 specific namespace. Added a flag for turning namespace check on/off.
1401 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1403 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
1404 delayedListFixups.Count cannot be used because elementes from
1405 delayedListFixups are deleted sometimes.
1407 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
1409 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
1410 This fixes bug #51060.
1412 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
1414 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
1415 If type is Enum the code use type.GetElememtType() instead of
1416 Enum.GetUnderlyingType().
1418 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
1420 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
1421 Removed several TODOs already done.
1423 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
1425 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
1428 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1430 * ReflectionHelper.cs: In CheckSerializableType() check that the type
1432 * XmlSerializationWriter.cs: Added check for circular references.
1433 This fixes bug #49879.
1435 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
1437 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
1438 can't be serialized. This fixes bug #49878.
1439 * TypeData.cs: In ListItemType check that the collection has a valid
1440 Add method and report an error if not.
1441 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
1442 reflecting a collection.
1444 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
1446 * SoapReflectionImporter.cs: Support element references for enum values in
1447 encoding format. This fixes bug #49568.
1448 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
1449 the name and namespace of the wrapper element. MS.NET doesn't do it.
1450 This fixes bug #49729.
1452 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1454 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
1456 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
1458 * MapCodeGenerator.cs: New file. Moved here all code that is common
1459 between XmlCodeExporter and SoapCodeExporter.
1460 * SoapCodeExporter.cs: Implemented.
1461 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
1462 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
1463 encoded bare parameter list.
1464 * XmlTypeMapping.cs: Added method for getting member element by index.
1466 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1468 * XmlSchemas.cs : Implemented IsDataSet().
1470 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
1472 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
1473 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
1474 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
1475 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
1476 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
1477 and whether it uses encoded or literal format.
1478 * XmlSchemaExporter.cs: Little fixes.
1480 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1482 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
1483 need to be of type SOAP-ENC:Array, it can be a restriction of it.
1485 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
1487 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
1488 Read only properties are only serialized if the type is an array.
1490 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
1492 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
1493 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
1494 is not needed for value types.
1496 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
1498 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
1499 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
1501 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
1503 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
1505 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
1507 * XmlSchemaExporter.cs: Keep track of elements being exported.
1508 * XmlSchemas.cs: Removed unneeded catch.
1510 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
1512 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
1513 Fixed handling of members with XmlTextAttribute that are arrays.
1514 * TypeData.cs: IsComplexType now returns true for XmlNode.
1515 * XmlSerializer.cs: Added check for null mapping in FromMappings.
1516 * XmlTypeMapping.cs: Added helper method FindTextElement.
1518 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
1520 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
1521 Added support for IncludeInSchema flag.
1522 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1523 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
1524 methods. Added support for IncludeInSchema flag.
1525 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
1526 Added support for IncludeInSchema flag.
1527 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
1528 * XmlTypeMapping.cs: Added IncludeInSchema property.
1530 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
1532 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
1534 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
1536 * XmlCustomFormatter.cs: added support for additional string types in
1537 GenerateToXmlString().
1538 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
1541 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
1543 * SoapSchemaImporter.cs: implemented.
1544 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
1545 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
1546 * XmlSchemaImporter.cs: more support for encoded format.
1548 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
1550 * SerializationCodeGenerator.cs: Minor fixes.
1551 * SoapReflectionImporter.cs: More fixes.
1552 * SoapSchemaExporter.cs: implemented.
1553 * SoapSchemaImporter.cs: Initial implementation.
1554 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
1556 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
1557 * XmlMemberMapping.cs: Minor fixes.
1558 * XmlMembersMapping.cs: added some convenient constructors.
1559 * XmlSchemaExporter.cs: Added support for encoded format.
1560 * XmlSchemaImporter.cs: Added support for encoded format.
1561 * XmlSerializationReader.cs: changed some string literals by constants.
1562 Implemented ParseWsdlArrayType.
1563 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
1565 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
1566 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
1567 WriteAttribute to write custom attributes.
1568 * XmlSerializer.cs: added some namespace constants.
1569 * XmlTypeMapping.cs: added GetSchemaArrayName method.
1571 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
1573 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
1574 * XmlTypeMapMemberElement.cs: Little fix.
1575 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
1576 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
1578 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
1581 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
1583 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1584 * XmlMemberMapping.cs: Changed constructor.
1585 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
1586 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
1587 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
1588 * XmlSerializationWriterInterpreter.cs: Changed visibility.
1590 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
1592 * XmlSerializer.cs: Fix in Deserialize() method.
1594 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
1596 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
1597 * XmlSchemas.cs: Find method: make sure the returned object belongs to
1599 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
1600 Add null checks for eventSource.
1601 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
1602 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
1603 namespece declarations. Virtual method WriteObject not needed any more.
1604 In WriteStartElement, write the provided namespaces.
1605 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
1606 Added GetTypeMap method, that returns the map for a given type. Added some
1607 virtual methods, so writer behavior can be extended at several places by
1609 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
1610 methods CreateReader and CreateWriter are not called unless no type or
1611 type mapping was provided in the constructor.
1613 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
1615 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
1616 schema type it is importing is a class or an array. It will always
1619 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
1621 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
1622 as text nodes. Support it.
1624 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
1626 * CodeIdentifier.cs: Fixed MakeValid method.
1627 * TypeTranslator.cs: Added support for more primitive types. Added
1628 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
1630 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
1631 are different from the type ns and name.
1632 Generate class and field comments.
1633 Fixed default attribute generation. In elements with ref attribute, it has to be
1634 generated in the referred attribute.
1635 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
1636 Added suport for text nodes in members of type "any".
1637 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
1639 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
1640 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
1641 that have already been declared.
1642 WriteStartElement(): elements from schema namespace are always written with ns prefix.
1643 * XmlTypeMapMember.cs: Added documentation property.
1644 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
1645 represents a simple type.
1647 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
1649 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
1651 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
1652 * TypeData.cs: Added property that returns a TypeData that represents an array of
1654 * TypeTranslator.cs: Added GetArrayName() method.
1655 Added TypeDatas for missing primitive types.
1656 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
1657 XmlRootAttribute. Added the namespace to all attributes being generated.
1658 Other fixes in the generation of code.
1659 * XmlReflectionImporter: store the namespace of the type in the maps.
1660 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
1661 class can generate text. Do not export inherited attributes of a class.
1662 Use the new root namespace stored in the map when generating the root element.
1663 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
1664 namespace is the default namespace.
1665 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
1666 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
1667 namespace instead of the map namespace (which can be different if the type
1668 has a XmlRoot element).
1669 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
1670 to System.DBNull.Value.
1671 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
1672 the collection if it has not yet been created.
1673 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
1674 of the type. It may be different from the namespace of the map if the type
1675 has a XmlRoot element. Also added IsSimpleType property.
1676 In ClassMap, added AllMembers property.
1678 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
1680 * TypeData.cs: Added new constructor and variables to allow the creation of
1681 a TypeData without a Type. Added ListItemTypeData property.
1682 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
1683 array of arrays. Added also a property to get the nested array map.
1684 * XmlCodeExporter.cs: First implementation of code exporter.
1686 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1688 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
1689 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
1692 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
1694 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
1695 maps with the same name and namespace. To avoid this, maps must be registered
1696 using the real map namespace, not the default namespace (the namespace can
1697 change if the type has a XmlType or SoapType attribute).
1698 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
1699 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
1701 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
1704 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
1706 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
1707 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
1708 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
1709 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
1710 * XmlSchemaExporter.cs: Implemented.
1711 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
1712 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
1713 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
1714 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
1715 GetStringValue() returns null if the value is null, instead of empty string.
1716 (attributes with null values are not written).
1717 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
1718 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
1719 DataType value can is now in TypeData.
1720 * XmlTypeMapMemberElement.cs: Small fix.
1721 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
1723 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1725 * AssemblyInfo.cs: Removed
1727 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
1729 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
1730 namespace declarations if they have already been defined.
1732 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
1734 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
1735 for adding elements to a list.
1737 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
1739 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
1740 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
1743 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
1745 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
1746 Added support for serialization of enums with the Flags attribute.
1748 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
1750 * SoapReflectionImporter.cs: Fix support for DataType in class members.
1751 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
1752 can have other names.
1753 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
1754 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
1755 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
1756 Fix support for DataType in class members.
1757 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
1758 Added support for array of primitive types in attributes.
1760 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
1762 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
1763 be overlodaded, so it is not good for this.
1764 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
1766 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
1768 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
1769 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
1770 array if the namespace is not specified in XmlArrayItemAttribute.
1772 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
1774 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
1775 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
1776 is not specified in the xsi attribute.
1777 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
1778 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
1780 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1782 * XmlSerializationReader.cs : Synchronous fix with
1783 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
1784 * added XmlTypeMapMemberNamespace.cs.
1785 * XmlReflectionImporter,
1786 XmlSerializationReaderInterpreter.cs,
1787 XmlSerializationWriterInterpreter.cs,
1788 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
1790 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1792 * XmlSerializationWriter.cs : some QName handling fix.
1794 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
1796 * XmlSerializationReader.cs: Fixed error message.
1797 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
1799 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
1801 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
1803 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
1804 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
1805 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
1806 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
1808 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
1810 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
1811 * SoapReflectionImporter.cs: tiny fix.
1812 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
1813 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
1814 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
1815 * XmlSerializationWriter.cs: implemented WriteSerializable ().
1817 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
1819 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
1820 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1821 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
1822 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
1823 * XmlSerializationWriter.cs: small fix.
1825 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
1827 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
1828 Added support for DefaultValueAttribute.
1829 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
1830 the value of an enum.
1831 * XmlTypeMapMember.cs: Added DefaultValue attribute.
1832 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
1835 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
1837 * XmlSerializationReader.cs: Minor fix.
1839 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
1841 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
1843 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1845 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
1846 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
1847 * XmlCustomFormatter.cs: small fixes.
1848 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
1849 * XmlSerializationWriter.cs: Implemented TopLevelElement().
1850 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
1851 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
1852 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
1855 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
1857 * SoapReflectionImporter.cs: implemented.
1858 * TypeTranslator.cs: added IsPrimitive() method
1859 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
1860 used by that one. Also added Format property, that can be literal or encoded.
1861 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
1862 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
1863 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
1864 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
1865 * XmlSerializationWriter.cs: added support for encoded format.
1866 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
1867 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
1868 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
1869 and a map is needed for them).
1870 * XmlTypeMapMemberElement.cs: small fixes.
1871 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
1872 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
1874 2003-06-01 Miguel de Icaza <miguel@ximian.com>
1876 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
1877 UnknownElement): Add line number information.
1879 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
1881 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
1882 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
1883 * XmlMapping.cs: Added internal property.
1884 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
1885 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
1886 * XmlReflectionMember.cs: XmlAttributes are now created by default
1887 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
1888 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
1889 Implemented support for XmlMembersMapping.
1890 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
1892 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
1894 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
1895 from xml type to clr type.
1896 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
1897 * XmlReflectionMember.cs: Added default constructor.
1898 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
1899 * XmlSerializationWriter.cs: Several fixes.
1900 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1901 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
1902 Added support for enums. Added support for XmlElement and XmlNode.
1903 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
1905 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1907 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
1908 * XmlCustomFormatter.cs: Added formatting methods.
1909 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
1910 * XmlReflectionMember.cs: Added new constructor.
1911 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
1912 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
1913 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
1914 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
1916 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1918 * Added TypeTableEntry.cs.
1919 * TypeTranslator.cs : changed for non-static use.
1920 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
1921 and GetElementName(). Bugfix so that if any XmlElementAttribute
1922 exists after non-typed XmlElementAttribute then it might be ignored.
1923 Added GetElementIsNullable().
1924 * XmlSerializer.cs :
1925 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
1926 Object memberObj[4].
1927 Deserialize() now uses XmlReader.Depth to check its depth.
1928 Serialize() for non-XmlReader arguments now always write xmldecl.
1929 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
1930 and handles XmlQualifiedName.
1931 Separated SerializeType () from Serialize().
1932 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
1933 IsPropertyTypeSerializable() from SerializeMembers().
1934 SerializeMembers() is now capable of null value and actual type,
1935 which should be included by XmlIncludeAttribute and so on.
1936 Renamed SerializeArray() to SerializeArrayContent(), and added
1937 SerializeCollectionContent().
1938 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
1939 FillTypeTable() is now aware of XmlInclude attributes.
1940 FillEnum() should not have different type table content from others.
1942 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1944 * XmlSerializer.cs : this time, only replaced spaces with tabs.
1946 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1948 * ChangeLog : Added missing ChangeLog of 2003-04-25.
1949 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
1950 separators. Added experimental method ToEnum().
1951 * XmlSerializationReader.cs : unconfirmed implementation of
1952 ReadSerializable() and ToEnum().
1953 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
1954 is null then no output will be written.
1955 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
1956 to use custom formatted name.
1958 2003-05-02 Miguel de Icaza <miguel@ximian.com>
1960 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
1961 had a void return value.
1963 2003-04-26 Miguel de Icaza <miguel@ximian.com>
1965 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
1966 `AllowMultiple' flags.
1968 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1970 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
1971 * XmlReflectionImporter.cs : patch by Erik LeBel.
1972 Now uses XmlRootAttribute to determine element name.
1974 2003-03-17 Miguel de Icaza <miguel@ximian.com>
1976 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
1979 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1981 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
1982 XmlWriter argument should call WriteEndDocument.
1984 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1986 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
1987 not WriteState.Start, and never call WriteEndDocument().
1989 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
1991 * XmlCustomFormatter.cs: Correct signature, Implement
1994 * XmlSerializationWriter.cs: Fix prototype.
1996 * XmlSerializer.cs: Implements Deserialize().
1998 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2000 * XmlSerializer.cs : serializing now works for interface member.
2002 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2004 * XmlSerializer.cs : some fix handling xml node object more correct.
2006 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
2007 * XmlSerializer.cs: Array serialization for 1D arrays works
2008 * TypeTranslator: Added for translations`
2010 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2012 * XmlCustomFormatter.cs: finished.
2013 * XmlSerializationReader.cs: implemented some more methods.
2015 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2017 * XmlSerializationReader.cs: implemented a few methods.
2019 * XmlAnyElementAttribute.cs:
2020 * XmlArrayAttribute.cs:
2021 * XmlChoiceIdentifierAttribute.cs:
2022 * XmlElementAttribute.cs:
2023 * XmlMemberMapping.cs:
2024 * XmlMembersMapping.cs: class status based fixes.
2026 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2028 * CodeIdentifiers.cs:
2029 * XmlSchemaExporter.cs:
2030 * XmlSchemaImporter.cs:
2032 * XmlSerializationWriteCallback.cs:
2033 * XmlSerializationWriter.cs:
2035 * XmlSerializerNamespaces.cs: some class status based fixed and
2036 implemented a couple of methods.
2038 * SoapSchemaExporter.cs: stubbed out.
2040 2002-08-24 Tim Coleman <tim@timcoleman.com>
2041 * SoapCodeExporter.cs:
2042 Fix return value of ExportTypeMapping.
2043 * XmlCustomFormatter.cs:
2044 Change methods to be internal instead of public.
2045 * XmlSerializationWriter.cs:
2046 Modify GetPrimitiveTypeName to build on linux.
2047 Modify GetQualifiedName to return an incrementing prefix
2048 instead of the same one all the time (still need to manage
2050 Modify WriteElementString to only do special stuff is XsiType
2052 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
2053 an XmlQualifiedName.
2055 2002-08-22 Tim Coleman <tim@timcoleman.com>
2056 * XmlSerializationReader.cs:
2058 * XmlSerializationWriter.cs:
2060 * XmlCustomFormatter.cs:
2061 Implemented this class.
2063 2002-08-20 Tim Coleman <tim@timcoleman.com>
2064 * XmlSerializationWriter.cs:
2065 Some implementation.
2067 2002-08-19 Tim Coleman <tim@timcoleman.com>
2070 * XmlSerializationWriter.cs:
2073 2002-08-14 Tim Coleman <tim@timcoleman.com>
2075 More reformatting of source code so I can
2076 better understand what it does.
2078 2002-08-06 Tim Coleman <tim@timcoleman.com>
2080 Some reformatting of code for readability.
2081 Modify to correctly serialize ICollection objects
2082 such as the BindingCollection of a ServiceDescription
2085 2002-08-03 Tim Coleman <tim@timcoleman.com>
2087 Changed Implements() to check based on name rather
2088 than FullName. FullName was never working correctly.
2090 2002-07-26 Tim Coleman <tim@timcoleman.com>
2092 The constructor now looks for an XmlRootAttribute attribute
2093 if one is not passed in. Various changes to make it emit
2094 proper XML, such as handling an element without a namespace
2095 prefix, and using WriteEndDocument where it should be.
2097 2002-07-24 Tim Coleman <tim@timcoleman.com>
2098 * CodeIdentifier.cs:
2099 * IXmlSerializable.cs:
2100 * XmlSerializationCollectionFixupCallback.cs:
2101 * XmlSerializationFixupCallback.cs:
2102 * XmlSerializationReadCallback.cs:
2103 * XmlSerializationReader.cs:
2104 * XmlSerializationWriteCallback.cs:
2107 * CodeIdentifiers.cs:
2108 Implement some of these classes
2109 * XmlCodeExporter.cs:
2110 Fix return type of a function
2112 2002-07-24 Tim Coleman <tim@timcoleman.com>
2113 * SoapReflectionImporter.cs:
2114 New class added to build
2115 System.Web.Services.Description.ServiceDescription.cs
2117 2002-07-22 Tim Coleman <tim@timcoleman.com>
2118 * CodeIdentifiers.cs:
2119 * SoapCodeExporter.cs:
2120 * SoapSchemaExporter.cs:
2121 * XmlCodeExporter.cs:
2122 * XmlMemberMapping.cs:
2123 * XmlMembersMapping.cs:
2124 * XmlReflectionImporter.cs:
2125 * XmlReflectionMember.cs:
2126 * XmlSchemaExporter.cs:
2127 * XmlSchemaImporter.cs:
2129 New stubbs added to aid in the linux build of
2130 System.Web.Services.
2132 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
2134 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
2136 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
2138 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
2140 * XmlSeriailizer: Updated Serialize() method.
2142 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
2143 * XmlSerializer: Serialize() method Partially Implemented.
2145 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
2147 * Soap & XmlOverrides: Implemented using TypeMember as key with
2148 suggestions from Rafael.