1 2004-07-26 Lluis Sanchez Gual <lluis@ximian.com>
3 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
4 no need to add it after the call.
5 * SoapSchemaImporter.cs: Implemented 2.0 constructors.
7 2004-07-23 Lluis Sanchez Gual <lluis@novell.com>
9 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
10 * ImportContext.cs: Implemented.
11 * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
12 options for 2.0. Implemented support for generating properties instead of
14 * XmlSchemaImporter.cs: Added support for sharing types.
16 2004-07-15 Lluis Sanchez Gual <lluis@novell.com>
18 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
19 xsd type is not part of the last schema specification, but the google api
20 uses it and ms.net accepts it.
22 2004-07-12 Lluis Sanchez Gual <lluis@ximian.com>
24 * ReflectionHelper.cs: Fixed bug when registering a map as exported.
25 Thanks to Juan C. Olivares.
27 2004-07-10 Lluis Sanchez Gual <lluis@ximian.com>
29 * CodeExporter.cs: Added private constructor.
30 * CodeGenerationOptions.cs: Set the correct enum values.
31 * CodeIdentifier.cs: Added private constructor.
32 * SchemaImporter.cs: Added internal constructor.
33 * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
34 * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
35 * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
36 XmlSerializerVersionAttribute.cs: Set correct attribute usage.
37 * XmlSerializationReader.cs: Added missing setter for DecodeName.
39 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
41 * XmlSerializer.cs: Fix fix.
43 2004-07-08 Lluis Sanchez Gual <lluis@ximian.com>
45 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
46 * ReflectionHelper.cs: New method for generating map keys.
47 * SerializationCodeGenerator.cs: Added support for generating the serializer
48 contract class, needed for 2.0.
49 * SerializationSource.cs: Use Type[] instead of ArrayList for storing
51 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
52 as Type[]. Added check that makes sure that enums being serialized are
54 * XmlMapping.cs: Added internal GetKey method.
55 * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
56 Added first bits to support loading of serializers from pre-generated
58 * XmlSerializerFactory.cs: Mostly implemeted.
60 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
62 * CodeIdentifier.cs: Removed constructor for NET_2_0.
63 * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
64 XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
65 XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
66 XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
67 XmlSerializerNamespaces.cs: Added 2.0 stubs.
68 * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
69 * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
70 ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
71 SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
72 XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
73 XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
74 XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
76 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
78 * SerializationCodeGenerator.cs: Generate check that the object being
79 serialized has a known type. Little cast fix.
80 * XmlCustomFormatter.cs: Little fix in Single conversion.
82 2004-07-01 Lluis Sanchez Gual <lluis@ximian.com>
84 * TypeData.cs: In the constructor, set the correct xml type name if the
85 type is an array (for example, instead of StringCollection, use
88 2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
90 * ReflectionHelper.cs: Correctly detect private types.
91 * XmlCodeExporter.cs: Implemented missing method.
92 * XmlSchemaImporter.cs: Allow import of root primitive types.
94 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
96 * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
97 SerializationCodeGenerator.cs, SerializationSource.cs,
98 TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
99 XmlSerializationReader.cs, XmlSerializationWriter.cs,
100 XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
101 : Globalization fixes.
102 In XmlCustomFormatter.GenerateToXmlString() time was not
104 Replaced all CRLF XmlAttributeOverrides.cs into LF.
106 2004-06-13 Gert Driesen <drieseng@users.sourceforge.net>
108 * XmlSerializationWriter.cs: changed signature of protected method
109 FromByteArrayBase64 to match MS.NET
111 2004-06-10 Lluis Sanchez Gual <lluis@ximian.com>
113 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
114 attributes that MS.NET generates.
115 * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
117 * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
118 * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
119 MS.NET member ordering. Patch by David Taylor.
120 * XmlSchemaImporter.cs: When generating a choice member, set the ignore
121 flag. The generated enum must also not be included in the schema.
122 * XmlTypeMapMember.cs: Added ignore flag.
123 * XmlTypeMapping.cs: The AttributeMembers property now returns the
124 attributes in the correct order.
126 2004-06-03 Gert Driesen <drieseng@users.sourceforge.net>
128 * XmlSerializationReader.cs: added missing protected members
129 to fix API compatibility with MS.NET
130 * XmlSerializationWriter.cs: added missing protected members
131 to fix API compatibility with MS.NET
133 2004-06-02 Lluis Sanchez Gual <lluis@ximian.com>
135 * XmlSerializationReader.cs: Support schamea instance namespaces other than
136 the 2001 one when reading the xsi type.
137 * MapCodeGenerator.cs: Take into account that the root namespace and element
138 name may have changed from one export to another of the same type. In
139 this case the class attributes need to be regenerated.
140 * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
141 not ElementName. Idem for namespace.
142 * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
143 * XmlRootAttribute.cs: Default value for nullable is true.
144 * XmlSchemaImporter.cs: The root name for a class may change in some
145 scenarios (for example, when the type is initially exported as part of
146 another type and later exported as a root type).
147 * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
148 found using the standard namespace, try getting the type using
149 the 2000/10 and 1999 namespaces.
150 * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
152 2004-05-26 Lluis Sanchez Gual <lluis@ximian.com>
154 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
155 In encoded format, primitive types can be null. Read them using
156 ReadReferencingElement, that already checks for the null tag.
158 2004-05-25 Lluis Sanchez Gual <lluis@ximian.com>
160 * XmlSerializationReader.cs: Check for empty element when reading an array
161 element. This fixes bug #59003. Thanks Atsushi!
163 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
165 * XmlSerializationWriter.cs: Implemented some missing methods.
166 In .NET 1.0, encoded null elements use the attribute null="1", while in
167 1.1 the attribute is nil="true".
168 * XmlTypeMapping.cs: Little fix for nested classes.
170 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
172 * XmlReflectionImporter.cs: Don't reset the internal tables at every
173 ImportMembersMapping call. This fixes bug #58112. The problem is that
174 it imported two different arrays (only different in the array item
175 namespace) with the same name. Not sure what was this Reset needed for,
176 everyting seems to work without it.
178 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
180 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
181 When deserializing an encoded method response, if the return type of the
182 method is Object, assign to it the first element of the message, whatever
184 * XmlSerializationReader.cs:
185 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
187 * TypeTranslator.cs: Added method to safely get a primitive TypeData.
188 * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
189 a given xsi type is not found. Just read it as primitive type.
190 * XmlTypeMapMember.cs: Added IsReturnValue property.
191 * XmlTypeMapping.cs: Added ReturnMember property.
192 * XmlSerializer.cs: Reference System.Data when compiling the serializer.
194 2004-05-05 Lluis Sanchez Gual <lluis@ximian.com>
196 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
197 When reading an object using the typeof(object) map, an emty xsi:type
198 means that it has to read the contents into an XmlNode[].
199 * TypeData.cs: Return the correct full name for inner classes.
200 * XmlSchemaImporter.cs: Improved detection of types that represent
201 "anyType", and must be mapped to XmlElement, XmlNode or Object.
202 * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
203 the correct namespace.
204 In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
207 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
209 * XmlSerializationWriter.cs : It do not have to handle schema
210 namespace as special one.
212 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
214 * XmlSerializationReaderInterpreter.cs: Removed the check for null
215 AttributeMembers collection. Even if there are no attribute members,
216 attributes need to be read.
218 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
220 * XmlSerializationReader.cs: In ReadSerializable(), take into account that
221 the IXmlSerializable object may not read all the EndElement it read.
222 This fixes bug #57413.
224 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
226 * XmlSerializer.cs: Enable serializer generation by default.
228 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
230 * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
231 * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
232 turns out that it is an array, import it again as array. This fixes
235 2004-04-15 Lluis Sanchez Gual <lluis@ximian.com>
237 * XmlSchemaExporter.cs: When checking if a map has been exported or not,
238 don't use type name for array types, since we can have different classes
239 that represent the same array type (for example StringCollection and
242 2004-04-14 Lluis Sanchez Gual <lluis@ximian.com>
244 * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
245 not present in MS.NET.
246 * XmlSerializationWriter.cs: Improved error message.
248 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
250 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
251 XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
252 Support deserialization of members of type XmlDocument. This fixes #56169.
254 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
256 * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
257 Use a special method to generate default values, since default enum values
258 will come as integers, so a special cast is needed.
259 * XmlSerializationReaderInterpreter.cs,
260 * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
261 SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
262 SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
263 XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
264 XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
265 XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
266 XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
267 XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
268 of SerializationSource. It can't keep and use the XmlAttributeOverride
269 instances as key values, since those instances can be modified after the
270 xml map has been generated. Now, SerializationSource generates a unique
271 string hash from XmlAttributeOverride and uses it for comparisons.
273 2004-03-24 Lluis Sanchez Gual <lluis@ximian.com>
275 * SerializationCodeGenerator.cs: Several fixes: generate valid names for
276 WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
277 the adequate type. Set the default value of members that do have a default
278 value. Other minor fixes.
279 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
280 from typeof(object) map, even those that have another base class.
281 * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
282 It must serialize the char as number, not as character.
283 * XmlSerializationReaderInterpreter.cs: Set the default value of members
284 that do have a default value.
285 * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
286 of members that have a default value.
288 2004-03-15 Lluis Sanchez Gual <lluis@ximian.com>
290 * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
291 This fixes bug #55547.
293 2004-03-13 David Sheldon <dave-mono@earth.li>
295 * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
298 2004-03-13 David Sheldon <dave-mono@earth.li>
300 * XmlTextAttribute.cs: Initialise dataType with zero-length string.
301 fixes test case that tests for this directly.
302 * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
303 it. Treat it as null.
305 2004-03-12 Lluis Sanchez Gual <lluis@ximian.com>
307 * CodeIdentifier.cs: Limit the length of identifiers.
308 * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
309 Generate types using GetDomType, so if the type is an array, it creates
310 the correct combination of types.
311 * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
312 an enum, if the string is empty and the enum has [Flags], then return 0
313 as value. This fixes bug #55509.
314 * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
315 are not supported. Another check: a simple type cannot be enum if it does
316 not have any enum facet.
317 And another fix: use string as default type for attribtues.
318 * XmlSchemas.cs: Fixed search for schema elements. An schema may import
319 other schemas. An imported schema would not be in the table, but its
320 elements (although from another namespace) would be in the schema that
321 imported it. So, we need know to check for every schema in the table.
322 * XmlSerializer.cs: Added environment variable to help debugging code
325 2004-02-27 Lluis Sanchez Gual <lluis@ximian.com>
327 * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
328 of XmlInclude attributes needed for the service class.
329 IsMapExported: Removed check for object type, since it can now be exported.
330 SetMapExported: Use the type name as key, since different importers may
331 be used to create a map for the same type.
332 GenerateClassInclude: Updated signature.
333 * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
334 GenerateClassInclude(): Updated signature.
335 * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
336 Implemented IncludeTypes.
337 * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
338 GenerateClassInclude(): Updated signature.
339 * XmlMemberMapping.cs: Added missing property.
340 * XmlReflectionImporter.cs: GetReflectionMembers must be private.
341 Implemented IncludeTypes().
342 * XmlSchemaExporter.cs: Added support for exporting typeof(object).
343 * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
344 Now, it does a regular import and then assign the required base class to
345 the imported map. In this way it is possible to assign a base type for a
346 map that was previously imported without a base type.
347 * XmlTypeMapping.cs: Added internal method SetRoot().
349 2004-02-24 Lluis Sanchez Gual <lluis@ximian.com>
351 * SerializationCodeGenerator.cs: Added support for generation of readers
352 and writers for several maps in a single class. Added support for
353 XmlMemberMapping. Fixed generation of serializers that use encoded format.
354 * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
355 SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
356 XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
357 XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
358 XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
359 XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
360 XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
361 Added InternalEquals method.
362 * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
363 * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
364 * XmlCustomFormatter.cs: Fixed little bug.
365 * XmlMapping.cs: Added Source property. This a global identifier of the map.
366 * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
367 * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
369 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
370 * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
372 * XmlSerializer.cs: Added support for generation of serializers.
374 2004-02-18 Atsushi Enomoto <atsushi@ximian.com>
376 * SerializationCodeGenerator.cs,
377 SerializationCodeGeneratorConfiguration.cs:
378 Added <namespaceImports> feature ("using XXX;" generation) support.
380 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
382 * XmlSerializationWriter.cs: When writing the root element, use a prefix
383 if the namespace of the element is defined in the list of namespaces
384 provided to the XmlSerializer. This fixes bug #54427.
386 2004-02-16 Lluis Sanchez Gual <lluis@ximian.com>
388 * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
389 Those are basically methods to add custom attributes to element and
391 * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
392 * XmlCodeExporter.cs: Better support for custom attribute generation for
394 * XmlCustomFormatter.cs: Added null check.
395 * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
396 attributes that are required.
397 * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
400 2004-02-11 Lluis Sanchez Gual <lluis@ximian.com>
402 * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
403 * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
404 string, not string[].
405 * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
406 for array parameters. In general, improved generation of schema Form
408 * XmlMemberMapping.cs: Added Form property.
409 * XmlReflectionImporter.cs: Types that inherit from other types cannot be
410 simple types. Added a check for this.
411 * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
412 Form. The key used to determine if a map has been already generated must
413 include the XmlType, since there can be two xml types with the same CLR
414 type and namespace (for example, they may differ in the Form property).
415 * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
416 also return the corresponding map. There can be two maps that have the
417 same TypeData, so given a TypeData is not always possible to get the
418 correct corresponding map (for example two arrays that only differ in the
420 * XmlTypeMapping.cs: Added method to set if a map can represent a simple
423 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
425 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
426 normalizedString schema type.
428 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
430 * XmlReflectionImporter.cs: Get the class members using the right order.
431 * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
432 A member with the Any attribute can also contain text. Support this.
433 * XmlTypeMapMemberElement.cs: Added CanBeText property.
435 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
437 * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
440 2004-01-27 Lluis Sanchez Gual <lluis@ximian.com>
442 * MapCodeGenerator.cs: Added helper method for generating an attribute
443 parameter of type enum.
444 * XmlAttributeAttribute.cs: little fix.
445 * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
446 for method parameters.
447 * XmlMemberMapping.cs: Improved support for members of type "any".
448 * XmlReflectionImporter.cs: Improved assignment of the attribute form.
449 If the namespace is explicitly specified, then the form should be
450 qualified. Also fixed issues with the namespace assigned to attributes.
451 This should fix bug #53384.
452 * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
453 methods that return values of type "any". Changed the methods
454 AddSchemaArrayElement and AddSchemaElement, so instead of adding the
455 element, return it, and the caller must add it to the collection.
456 Other fixes in attribute generation.
457 * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
458 generate the AnyType mapping from the type described in the schema.
459 Small fixes regarding IsMixed property of complex types (it means that
460 the type can contain text, so the XmlTextAttribute must be generated).
461 * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
462 be only used in the bare+encoded format.
464 2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
466 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
467 to be derived types of the one that has the attribute.
468 * XmlReflectionImporter.cs: Recursively register the derived maps of a given
469 map to the parent map. This fixes #53246.
470 * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
472 2004-01-22 Lluis Sanchez Gual <lluis@ximian.com>
474 * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
475 do not check the root element name, since it can be any name. This fixes
478 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
480 * XmlReflectionImporter.cs: Throw exception if a value type member has the
481 IsNullable=true flag. This fixes bug #52906.
483 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
485 * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
486 so a 'specified' member has always to be generated.
487 * TypeData.cs: Fixed check for value type.
489 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
491 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
492 XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
493 XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
494 XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
495 XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
496 Added support for value specifiers members. This fixes bug #53024.
498 2004-01-20 Lluis Sanchez Gual <lluis@ximian.com>
500 * XmlSchemaExporter.cs: Don't create referenced element if it has already
501 been created (two types could be referencing the same schema element).
503 2004-01-19 Lluis Sanchez Gual <lluis@ximian.com>
505 * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
506 * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
507 arrays. This fixes bug #53018.
509 2004-01-14 Lluis Sanchez Gual <lluis@ximian.com>
511 * MapCodeGenerator.cs: Use type namespace instead of root namespace as
512 default namespace for members.
513 * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
514 * XmlReflectionImporter.cs: Fixed the assignment of root and type
516 * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
517 default namespace for members. In AddSchemaElement, if the element is
518 a root element never use a "ref" attribute.
519 * XmlSchemaImporter.cs: Fixed issue when importing root elements.
521 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
523 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
524 XmlTypeMapping.cs: more namespace fixes.
526 2004-01-13 Lluis Sanchez Gual <lluis@ximian.com>
528 * XmlReflectionImporter.cs: type namespace must never be used as root
529 namespace. This fixes bug #52772.
531 2004-01-08 Nick Drochak <ndrochak@ieee.org>
533 * XmlSchemaImporter.cs: Removed unused variable.
535 2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
537 * XmlReflectionImporter.cs: Ignore Namespace property when applying
538 the [XmlType] attribute to an enum. This fixes bug #52607.
540 2003-12-19 Lluis Sanchez Gual <lluis@ximian.com>
542 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
543 option that allow serialization of private types.
545 2003-12-18 Eran Domb <erand@mainsoft.com>
547 * TypeTranslator.cs : Change primtive types map.
549 2003-12-18 Eran Domb <erand@mainsoft.com>
551 * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
554 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
556 * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
557 to check if a type is primitive, instead of Type.IsPrimitive, since CLR
558 primitive types are not the same as XML primitive types. Patch proposed
559 by Mordechai Taitelman. This fixes bug #52228.
560 * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
562 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
564 * XmlReflectionImporter.cs: Little fix.
566 2003-12-15 Lluis Sanchez Gual <lluis@ximian.com>
568 * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
569 need to be derived types of the includer. This fixes bug #52152.
570 Added null check for Name property of XmlEnumAttribute. This fixes
572 * XmlSerializationReader.cs: Fixed some error messages.
573 * XmlSerializationReaderInterpreter.cs: Check that the root element has
574 the correct local name and namespace. This fixes bug #52038.
575 Throw exception if enum value can't be parsed.
576 * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
579 2003-12-12 Lluis Sanchez Gual <lluis@ximian.com>
581 * MapCodeGenerator.cs: Added support for [Flags] enum.
582 * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
583 * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
584 encoded array type. Added support for enums with [Flags].
585 In encoded format, unqualified types are schema types by default.
587 2003-12-11 Lluis Sanchez Gual <lluis@ximian.com>
589 * XmlCodeExporter.cs: Little fix.
590 * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
591 same name have the same type.
592 * XmlSchemaImporter.cs: Support xml:lang.
593 * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
594 fixed wrong namespace for the arrayType attribute.
596 2003-12-08 Lluis Sanchez Gual <lluis@ximian.com>
598 * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
599 XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
600 When using rpc format on a web service, members don't need to have any
601 specific namespace. Added a flag for turning namespace check on/off.
603 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
605 * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
606 delayedListFixups.Count cannot be used because elementes from
607 delayedListFixups are deleted sometimes.
609 2003-11-27 Lluis Sanchez Gual <lluis@ximian.com>
611 * XmlReflectionImporter.cs: Indexer properties must not be serialized.
612 This fixes bug #51060.
614 2003-11-24 Lluis Sanchez Gual <lluis@ximian.com>
616 * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
617 If type is Enum the code use type.GetElememtType() instead of
618 Enum.GetUnderlyingType().
620 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
622 * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
623 Removed several TODOs already done.
625 2003-11-03 Lluis Sanchez Gual <lluis@ximian.com>
627 * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
630 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
632 * ReflectionHelper.cs: In CheckSerializableType() check that the type
634 * XmlSerializationWriter.cs: Added check for circular references.
635 This fixes bug #49879.
637 2003-10-20 Lluis Sanchez Gual <lluis@ximian.com>
639 * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
640 can't be serialized. This fixes bug #49878.
641 * TypeData.cs: In ListItemType check that the collection has a valid
642 Add method and report an error if not.
643 * XmlReflectionImporter.cs: Added CheckSerializableType check call when
644 reflecting a collection.
646 2003-10-18 Lluis Sanchez Gual <lluis@ximian.com>
648 * SoapReflectionImporter.cs: Support element references for enum values in
649 encoding format. This fixes bug #49568.
650 * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
651 the name and namespace of the wrapper element. MS.NET doesn't do it.
652 This fixes bug #49729.
654 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
656 * MapCodeGenerator.cs: Made MapCodeGenerator internal.
658 2003-10-15 Lluis Sanchez Gual <lluis@ximian.com>
660 * MapCodeGenerator.cs: New file. Moved here all code that is common
661 between XmlCodeExporter and SoapCodeExporter.
662 * SoapCodeExporter.cs: Implemented.
663 * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
664 * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
665 encoded bare parameter list.
666 * XmlTypeMapping.cs: Added method for getting member element by index.
668 2003-10-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
670 * XmlSchemas.cs : Implemented IsDataSet().
672 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
674 * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
675 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
676 in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
677 * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
678 * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
679 and whether it uses encoded or literal format.
680 * XmlSchemaExporter.cs: Little fixes.
682 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
684 * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
685 need to be of type SOAP-ENC:Array, it can be a restriction of it.
687 2003-10-10 Lluis Sanchez Gual <lluis@ximian.com>
689 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
690 Read only properties are only serialized if the type is an array.
692 2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
694 * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
695 SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
696 is not needed for value types.
698 2003-10-08 Lluis Sanchez Gual <lluis@ximian.com>
700 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
701 (XmlSerializer.Serialize() handles namespace parameter incorrectly)
703 2003-10-05 Lluis Sanchez Gual <lluis@ximian.com>
705 * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
707 2003-10-04 Lluis Sanchez Gual <lluis@ximian.com>
709 * XmlSchemaExporter.cs: Keep track of elements being exported.
710 * XmlSchemas.cs: Removed unneeded catch.
712 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
714 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
715 Fixed handling of members with XmlTextAttribute that are arrays.
716 * TypeData.cs: IsComplexType now returns true for XmlNode.
717 * XmlSerializer.cs: Added check for null mapping in FromMappings.
718 * XmlTypeMapping.cs: Added helper method FindTextElement.
720 2003-09-28 Lluis Sanchez Gual <lluis@ximian.com>
722 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
723 Added support for IncludeInSchema flag.
724 * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
725 * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
726 methods. Added support for IncludeInSchema flag.
727 * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
728 Added support for IncludeInSchema flag.
729 * XmlTypeAttribute.cs: Set includeInSchema to true by default.
730 * XmlTypeMapping.cs: Added IncludeInSchema property.
732 2003-09-25 Lluis Sanchez Gual <lluis@ximian.com>
734 * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
736 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
738 * XmlCustomFormatter.cs: added support for additional string types in
739 GenerateToXmlString().
740 * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
743 2003-09-11 Lluis Sanchez Gual <lluis@ximian.com>
745 * SoapSchemaImporter.cs: implemented.
746 * XmlReflectionImporter.cs: Changed nullable default for array items to true.
747 * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
748 * XmlSchemaImporter.cs: more support for encoded format.
750 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
752 * SerializationCodeGenerator.cs: Minor fixes.
753 * SoapReflectionImporter.cs: More fixes.
754 * SoapSchemaExporter.cs: implemented.
755 * SoapSchemaImporter.cs: Initial implementation.
756 * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
758 * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
759 * XmlMemberMapping.cs: Minor fixes.
760 * XmlMembersMapping.cs: added some convenient constructors.
761 * XmlSchemaExporter.cs: Added support for encoded format.
762 * XmlSchemaImporter.cs: Added support for encoded format.
763 * XmlSerializationReader.cs: changed some string literals by constants.
764 Implemented ParseWsdlArrayType.
765 * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
767 * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
768 * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
769 WriteAttribute to write custom attributes.
770 * XmlSerializer.cs: added some namespace constants.
771 * XmlTypeMapping.cs: added GetSchemaArrayName method.
773 2003-09-01 Lluis Sanchez Gual <lluis@ximian.com>
775 * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
776 * XmlTypeMapMemberElement.cs: Little fix.
777 * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
778 * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
780 * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
783 2003-08-29 Lluis Sanchez Gual <lluis@ximian.com>
785 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
786 * XmlMemberMapping.cs: Changed constructor.
787 * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
788 * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
789 * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
790 * XmlSerializationWriterInterpreter.cs: Changed visibility.
792 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
794 * XmlSerializer.cs: Fix in Deserialize() method.
796 2003-08-28 Lluis Sanchez Gual <lluis@ximian.com>
798 * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
799 * XmlSchemas.cs: Find method: make sure the returned object belongs to
801 * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
802 Add null checks for eventSource.
803 * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
804 * XmlSerializationWriter.cs: In Initialize method, initialize the provided
805 namespece declarations. Virtual method WriteObject not needed any more.
806 In WriteStartElement, write the provided namespaces.
807 * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
808 Added GetTypeMap method, that returns the map for a given type. Added some
809 virtual methods, so writer behavior can be extended at several places by
811 * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
812 methods CreateReader and CreateWriter are not called unless no type or
813 type mapping was provided in the constructor.
815 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
817 * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
818 schema type it is importing is a class or an array. It will always
821 2003-08-12 Lluis Sanchez Gual <lluis@ximian.com>
823 * XmlSerializationWriterInterpreter.cs: any element members can be serialized
824 as text nodes. Support it.
826 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
828 * CodeIdentifier.cs: Fixed MakeValid method.
829 * TypeTranslator.cs: Added support for more primitive types. Added
830 GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
832 * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
833 are different from the type ns and name.
834 Generate class and field comments.
835 Fixed default attribute generation. In elements with ref attribute, it has to be
836 generated in the referred attribute.
837 * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
838 Added suport for text nodes in members of type "any".
839 * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
841 * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
842 * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
843 that have already been declared.
844 WriteStartElement(): elements from schema namespace are always written with ns prefix.
845 * XmlTypeMapMember.cs: Added documentation property.
846 * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
847 represents a simple type.
849 2003-08-05 Lluis Sanchez Gual <lluis@ximian.com>
851 * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
853 * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
854 * TypeData.cs: Added property that returns a TypeData that represents an array of
856 * TypeTranslator.cs: Added GetArrayName() method.
857 Added TypeDatas for missing primitive types.
858 * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
859 XmlRootAttribute. Added the namespace to all attributes being generated.
860 Other fixes in the generation of code.
861 * XmlReflectionImporter: store the namespace of the type in the maps.
862 * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
863 class can generate text. Do not export inherited attributes of a class.
864 Use the new root namespace stored in the map when generating the root element.
865 * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
866 namespace is the default namespace.
867 * XmlSerializationWriterInterpreter.cs: fixed missing "else".
868 * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
869 namespace instead of the map namespace (which can be different if the type
870 has a XmlRoot element).
871 * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
872 to System.DBNull.Value.
873 * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
874 the collection if it has not yet been created.
875 * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
876 of the type. It may be different from the namespace of the map if the type
877 has a XmlRoot element. Also added IsSimpleType property.
878 In ClassMap, added AllMembers property.
880 2003-07-30 Lluis Sanchez Gual <lluis@ximian.com>
882 * TypeData.cs: Added new constructor and variables to allow the creation of
883 a TypeData without a Type. Added ListItemTypeData property.
884 * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
885 array of arrays. Added also a property to get the nested array map.
886 * XmlCodeExporter.cs: First implementation of code exporter.
888 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
890 * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
891 * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
894 2003-07-15 Lluis Sanchez Gual <lluis@ximian.com>
896 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
897 maps with the same name and namespace. To avoid this, maps must be registered
898 using the real map namespace, not the default namespace (the namespace can
899 change if the type has a XmlType or SoapType attribute).
900 * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
901 * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
903 * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
906 2003-07-14 Lluis Sanchez Gual <lluis@ximian.com>
908 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
909 * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
910 * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
911 * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
912 * XmlSchemaExporter.cs: Implemented.
913 * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
914 * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
915 GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
916 * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
917 GetStringValue() returns null if the value is null, instead of empty string.
918 (attributes with null values are not written).
919 * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
920 * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
921 DataType value can is now in TypeData.
922 * XmlTypeMapMemberElement.cs: Small fix.
923 * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
925 2003-07-14 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
927 * AssemblyInfo.cs: Removed
929 2003-07-9 Lluis Sanchez Gual <lluis@ximian.com>
931 * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
932 namespace declarations if they have already been defined.
934 2003-07-2 Lluis Sanchez Gual <lluis@ximian.com>
936 * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
937 for adding elements to a list.
939 2003-06-31 Lluis Sanchez Gual <lluis@ximian.com>
941 * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
942 SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
945 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
947 * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
948 Added support for serialization of enums with the Flags attribute.
950 2003-06-30 Lluis Sanchez Gual <lluis@ximian.com>
952 * SoapReflectionImporter.cs: Fix support for DataType in class members.
953 * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
954 can have other names.
955 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
956 * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
957 XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
958 Fix support for DataType in class members.
959 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
960 Added support for array of primitive types in attributes.
962 2003-06-28 Lluis Sanchez Gual <lluis@ximian.com>
964 * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
965 be overlodaded, so it is not good for this.
966 * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
968 2003-06-24 Lluis Sanchez Gual <lluis@ximian.com>
970 * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
971 * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
972 array if the namespace is not specified in XmlArrayItemAttribute.
974 2003-06-17 Lluis Sanchez Gual <lluis@ximian.com>
976 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
977 * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
978 is not specified in the xsi attribute.
979 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
980 * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
982 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
984 * XmlSerializationReader.cs : Synchronous fix with
985 XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
986 * added XmlTypeMapMemberNamespace.cs.
987 * XmlReflectionImporter,
988 XmlSerializationReaderInterpreter.cs,
989 XmlSerializationWriterInterpreter.cs,
990 XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
992 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
994 * XmlSerializationWriter.cs : some QName handling fix.
996 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
998 * XmlSerializationReader.cs: Fixed error message.
999 * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
1001 * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
1003 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
1005 * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
1006 * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
1007 * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
1008 * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
1010 2003-06-13 Lluis Sanchez Gual <lluis@ximian.com>
1012 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
1013 * SoapReflectionImporter.cs: tiny fix.
1014 * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
1015 XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
1016 * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
1017 * XmlSerializationWriter.cs: implemented WriteSerializable ().
1019 2003-06-12 Lluis Sanchez Gual <lluis@ximian.com>
1021 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
1022 * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
1023 XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
1024 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
1025 * XmlSerializationWriter.cs: small fix.
1027 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
1029 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
1030 Added support for DefaultValueAttribute.
1031 * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
1032 the value of an enum.
1033 * XmlTypeMapMember.cs: Added DefaultValue attribute.
1034 * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
1037 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
1039 * XmlSerializationReader.cs: Minor fix.
1041 2003-06-11 Lluis Sanchez Gual <lluis@ximian.com>
1043 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
1045 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1047 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
1048 * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
1049 * XmlCustomFormatter.cs: small fixes.
1050 * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
1051 * XmlSerializationWriter.cs: Implemented TopLevelElement().
1052 WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
1053 WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
1054 * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
1057 2003-06-05 Lluis Sanchez Gual <lluis@ximian.com>
1059 * SoapReflectionImporter.cs: implemented.
1060 * TypeTranslator.cs: added IsPrimitive() method
1061 * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
1062 used by that one. Also added Format property, that can be literal or encoded.
1063 * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
1064 * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
1065 * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
1066 * XmlSerializationReaderInterpreter.cs: added support for encoded format.
1067 * XmlSerializationWriter.cs: added support for encoded format.
1068 * XmlSerializationWriterInterpreter.cs: added support for encoded format.
1069 * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
1070 * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
1071 and a map is needed for them).
1072 * XmlTypeMapMemberElement.cs: small fixes.
1073 * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
1074 * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
1076 2003-06-01 Miguel de Icaza <miguel@ximian.com>
1078 * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
1079 UnknownElement): Add line number information.
1081 2003-05-29 Lluis Sanchez Gual <lluis@ximian.com>
1083 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
1084 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
1085 * XmlMapping.cs: Added internal property.
1086 * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
1087 * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
1088 * XmlReflectionMember.cs: XmlAttributes are now created by default
1089 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
1090 * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
1091 Implemented support for XmlMembersMapping.
1092 * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
1094 2003-05-28 Lluis Sanchez Gual <lluis@ximian.com>
1096 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
1097 from xml type to clr type.
1098 * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
1099 * XmlReflectionMember.cs: Added default constructor.
1100 * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
1101 * XmlSerializationWriter.cs: Several fixes.
1102 * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
1103 XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
1104 Added support for enums. Added support for XmlElement and XmlNode.
1105 Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
1107 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1109 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
1110 * XmlCustomFormatter.cs: Added formatting methods.
1111 * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
1112 * XmlReflectionMember.cs: Added new constructor.
1113 * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
1114 * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
1115 XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
1116 XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
1118 2003-05-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1120 * Added TypeTableEntry.cs.
1121 * TypeTranslator.cs : changed for non-static use.
1122 * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
1123 and GetElementName(). Bugfix so that if any XmlElementAttribute
1124 exists after non-typed XmlElementAttribute then it might be ignored.
1125 Added GetElementIsNullable().
1126 * XmlSerializer.cs :
1127 Introduced TypeTablePool and TypeTableEntry and erased ambiguous
1128 Object memberObj[4].
1129 Deserialize() now uses XmlReader.Depth to check its depth.
1130 Serialize() for non-XmlReader arguments now always write xmldecl.
1131 SerializeBuiltin() now explicitly requires Type to support xsi:nil,
1132 and handles XmlQualifiedName.
1133 Separated SerializeType () from Serialize().
1134 Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
1135 IsPropertyTypeSerializable() from SerializeMembers().
1136 SerializeMembers() is now capable of null value and actual type,
1137 which should be included by XmlIncludeAttribute and so on.
1138 Renamed SerializeArray() to SerializeArrayContent(), and added
1139 SerializeCollectionContent().
1140 SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
1141 FillTypeTable() is now aware of XmlInclude attributes.
1142 FillEnum() should not have different type table content from others.
1144 2003-05-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1146 * XmlSerializer.cs : this time, only replaced spaces with tabs.
1148 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1150 * ChangeLog : Added missing ChangeLog of 2003-04-25.
1151 * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
1152 separators. Added experimental method ToEnum().
1153 * XmlSerializationReader.cs : unconfirmed implementation of
1154 ReadSerializable() and ToEnum().
1155 * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
1156 is null then no output will be written.
1157 Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
1158 to use custom formatted name.
1160 2003-05-02 Miguel de Icaza <miguel@ximian.com>
1162 * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
1163 had a void return value.
1165 2003-04-26 Miguel de Icaza <miguel@ximian.com>
1167 * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
1168 `AllowMultiple' flags.
1170 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1172 * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
1173 * XmlReflectionImporter.cs : patch by Erik LeBel.
1174 Now uses XmlRootAttribute to determine element name.
1176 2003-03-17 Miguel de Icaza <miguel@ximian.com>
1178 * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
1181 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1183 * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
1184 XmlWriter argument should call WriteEndDocument.
1186 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1188 * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
1189 not WriteState.Start, and never call WriteEndDocument().
1191 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
1193 * XmlCustomFormatter.cs: Correct signature, Implement
1196 * XmlSerializationWriter.cs: Fix prototype.
1198 * XmlSerializer.cs: Implements Deserialize().
1200 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1202 * XmlSerializer.cs : serializing now works for interface member.
1204 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1206 * XmlSerializer.cs : some fix handling xml node object more correct.
1208 2003-01-16 Ajay kumar Dwivedi <adwiv@yahoo.com>
1209 * XmlSerializer.cs: Array serialization for 1D arrays works
1210 * TypeTranslator: Added for translations`
1212 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1214 * XmlCustomFormatter.cs: finished.
1215 * XmlSerializationReader.cs: implemented some more methods.
1217 2002-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1219 * XmlSerializationReader.cs: implemented a few methods.
1221 * XmlAnyElementAttribute.cs:
1222 * XmlArrayAttribute.cs:
1223 * XmlChoiceIdentifierAttribute.cs:
1224 * XmlElementAttribute.cs:
1225 * XmlMemberMapping.cs:
1226 * XmlMembersMapping.cs: class status based fixes.
1228 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1230 * CodeIdentifiers.cs:
1231 * XmlSchemaExporter.cs:
1232 * XmlSchemaImporter.cs:
1234 * XmlSerializationWriteCallback.cs:
1235 * XmlSerializationWriter.cs:
1237 * XmlSerializerNamespaces.cs: some class status based fixed and
1238 implemented a couple of methods.
1240 * SoapSchemaExporter.cs: stubbed out.
1242 2002-08-24 Tim Coleman <tim@timcoleman.com>
1243 * SoapCodeExporter.cs:
1244 Fix return value of ExportTypeMapping.
1245 * XmlCustomFormatter.cs:
1246 Change methods to be internal instead of public.
1247 * XmlSerializationWriter.cs:
1248 Modify GetPrimitiveTypeName to build on linux.
1249 Modify GetQualifiedName to return an incrementing prefix
1250 instead of the same one all the time (still need to manage
1252 Modify WriteElementString to only do special stuff is XsiType
1254 Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
1255 an XmlQualifiedName.
1257 2002-08-22 Tim Coleman <tim@timcoleman.com>
1258 * XmlSerializationReader.cs:
1260 * XmlSerializationWriter.cs:
1262 * XmlCustomFormatter.cs:
1263 Implemented this class.
1265 2002-08-20 Tim Coleman <tim@timcoleman.com>
1266 * XmlSerializationWriter.cs:
1267 Some implementation.
1269 2002-08-19 Tim Coleman <tim@timcoleman.com>
1272 * XmlSerializationWriter.cs:
1275 2002-08-14 Tim Coleman <tim@timcoleman.com>
1277 More reformatting of source code so I can
1278 better understand what it does.
1280 2002-08-06 Tim Coleman <tim@timcoleman.com>
1282 Some reformatting of code for readability.
1283 Modify to correctly serialize ICollection objects
1284 such as the BindingCollection of a ServiceDescription
1287 2002-08-03 Tim Coleman <tim@timcoleman.com>
1289 Changed Implements() to check based on name rather
1290 than FullName. FullName was never working correctly.
1292 2002-07-26 Tim Coleman <tim@timcoleman.com>
1294 The constructor now looks for an XmlRootAttribute attribute
1295 if one is not passed in. Various changes to make it emit
1296 proper XML, such as handling an element without a namespace
1297 prefix, and using WriteEndDocument where it should be.
1299 2002-07-24 Tim Coleman <tim@timcoleman.com>
1300 * CodeIdentifier.cs:
1301 * IXmlSerializable.cs:
1302 * XmlSerializationCollectionFixupCallback.cs:
1303 * XmlSerializationFixupCallback.cs:
1304 * XmlSerializationReadCallback.cs:
1305 * XmlSerializationReader.cs:
1306 * XmlSerializationWriteCallback.cs:
1309 * CodeIdentifiers.cs:
1310 Implement some of these classes
1311 * XmlCodeExporter.cs:
1312 Fix return type of a function
1314 2002-07-24 Tim Coleman <tim@timcoleman.com>
1315 * SoapReflectionImporter.cs:
1316 New class added to build
1317 System.Web.Services.Description.ServiceDescription.cs
1319 2002-07-22 Tim Coleman <tim@timcoleman.com>
1320 * CodeIdentifiers.cs:
1321 * SoapCodeExporter.cs:
1322 * SoapSchemaExporter.cs:
1323 * XmlCodeExporter.cs:
1324 * XmlMemberMapping.cs:
1325 * XmlMembersMapping.cs:
1326 * XmlReflectionImporter.cs:
1327 * XmlReflectionMember.cs:
1328 * XmlSchemaExporter.cs:
1329 * XmlSchemaImporter.cs:
1331 New stubbs added to aid in the linux build of
1332 System.Web.Services.
1334 2002-07-05 Ajay kumar Dwivedi <adwiv@yahoo.com>
1336 * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
1338 * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
1340 2002-07-02 Ajay kumar Dwivedi <adwiv@yahoo.com>
1342 * XmlSeriailizer: Updated Serialize() method.
1344 2002-06-27 Ajay kumar Dwivedi <adwiv@yahoo.com>
1345 * XmlSerializer: Serialize() method Partially Implemented.
1347 2002-06-20 Ajay kumar Dwivedi <adwiv@yahoo.com>
1349 * Soap & XmlOverrides: Implemented using TypeMember as key with
1350 suggestions from Rafael.