ChangeLog 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675
  1. 2005-08-05 Lluis Sanchez Gual <[email protected]>
  2. * XmlTypeMapping.cs: Added ListMembers property that returns
  3. members which are collections.
  4. * SerializationCodeGenerator.cs:
  5. * XmlSerializationReaderInterpreter.cs: Initialize collection
  6. members to an empty collection by default. Fixes bug #75662.
  7. 2005-08-01 Gert Driesen <[email protected]>
  8. * XmlMapping.cs: API compatibility fixes. Ctor is not protected
  9. in .NET 1.1. SetKey is not obsolete in .NET 2.0 Beta 2.
  10. 2005-07-31 Gert Driesen <[email protected]>
  11. * SoapAttributeAttribute.cs: Return zero-length string if
  12. AttributeName or DataType are null.
  13. * SoapEnumAttribute.cs: Return zero-length string if Name is null.
  14. * SoapIncludeAttribute.cs: Avoid using property in ctor.
  15. * SoapSchemaMember.cs: Return zero-length string if MemberName is
  16. null. MemberType should be XmlQualifiedName.Empty by default.
  17. * SoapTypeAttribute.cs: Return zero-length string if TypeName is
  18. null. Avoid using property in ctor.
  19. * XmlArrayAttribute.cs: Return zero-length string if ElementName is
  20. null. Avoid using property in ctor.
  21. * XmlArrayItemAttribute.cs: IsNullable must be false by default.
  22. Return zero-length string if DataType or ElementName are null. Avoid
  23. using property in ctor.
  24. * SoapElementAttribute.cs: Return zero-length string when DataType
  25. or ElementName are null. Avoid using property in ctor.
  26. * XmlAnyElementAttribute.cs: Return zero-length string when Name is
  27. null. Avoid using property in ctor.
  28. * XmlAttributeAttribute.cs: Avoid using property in ctor. Return
  29. zero-length string if AttributeName or DataType are null.
  30. * XmlChoiceIdentifierAttribute.cs: Return zero-length string when
  31. MemberName is null.
  32. * XmlElementAttribute.cs: Return zero-length string when DataType or
  33. ElementName are null. Avoid using property in ctor.
  34. * XmlEnumAttribute.cs: Avoid using property in ctor.
  35. * XmlIncludeAttribute.cs: Avoid using property in ctor.
  36. * XmlReflectionImporter.cs: AttributeName, ElementName and DataType
  37. can no longer be null. Use check for zero-length string to determine
  38. whether they are set. Corrected exception message when DataType is
  39. set for complex type.
  40. * XmlRootAttribute.cs: Return zero-length string if DataType or
  41. ElementName are null. Avoid using property in ctor.
  42. * XmlTextAttribute.cs: Return zero-length string if DataType is null.
  43. * XmlTypeAttribute.cs: Return zero-length string if TypeName is null.
  44. 2005-07-14 Lluis Sanchez Gual <[email protected]>
  45. * SerializationCodeGenerator.cs: In the generated serializer always
  46. use the Object equality operator when comparing objects to serialize
  47. to null, since those objects may have the equality operator
  48. overloaded. This fixes bug #75543.
  49. 2005-07-01 Lluis Sanchez Gual <[email protected]>
  50. * XmlCustomFormatter.cs: Properly read/write duration values.
  51. 2005-06-28 Lluis Sanchez Gual <[email protected]>
  52. * XmlSerializer.cs: Fix race between XmlSerializer and the
  53. serializer generator.
  54. 2005-06-14 Lluis Sanchez Gual <[email protected]>
  55. * XmlTypeMapElementInfo.cs: Added new DataTypeName property for
  56. getting the real xml type name of a member.
  57. * XmlSerializationWriterInterpreter.cs: Use that new property
  58. to get the type name of primitive types. This should fix bug #75180.
  59. 2005-06-07 Lluis Sanchez Gual <[email protected]>
  60. * SerializationCodeGenerator.cs: When reading members by order,
  61. call a MoveToContext after each member read. In the fixup method
  62. don't cast returned values if it is reading an object array.
  63. * XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
  64. being imported is a primitive type, create a wrapper class that
  65. inherits from the provided one. This fixes bug #68809.
  66. * XmlSerializationReader.cs: Properly report unreferenced objects.
  67. Created an overload of ReadTypedPrimitive that reports elements of
  68. unknown type. Implemented Referenced().
  69. 2005-05-30 Lluis Sanchez Gual <[email protected]>
  70. * XmlReflectionImporter.cs: Don't ignore type namespaces explicitely
  71. set to the default namespace. This fixes bug #73035.
  72. 2005-05-12 Lluis Sanchez Gual <[email protected]>
  73. * SoapReflectionImporter.cs: In ImportTypeMap, make sure that all
  74. types indirectly imported by this method use the same namespace.
  75. 2005-05-09 Atsushi Enomoto <[email protected]>
  76. * TypeTableEntry.cs : removed obsolete code.
  77. 2005-04-26 Lluis Sanchez Gual <[email protected]>
  78. * XmlReflectionImporter.cs, SoapReflectionImporter.cs: ignore array
  79. properties which are read only. Fixes bug #74723.
  80. 2005-04-14 Lluis Sanchez Gual <[email protected]>
  81. * XmlReflectionImporter.cs:
  82. * SoapReflectionImporter.cs:
  83. * TypeTranslator.cs: Encode local names withXmlConvert.EncodeLocalName
  84. where needed. Based on a patch by Konstantin Triger.
  85. 2005-04-12 Lluis Sanchez Gual <[email protected]>
  86. * XmlTypeMapping.cs: Added new XmlSerializableMapping class.
  87. * XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
  88. export the schema that it defines. In ImportNamespace, removed
  89. check for default namespace, since it may be included from a non
  90. default namespace.
  91. * XmlReflectionImporter.cs: Create a special map for IXmlSerializable
  92. types. All this based on a patch by Konstantin Triger.
  93. * SerializationCodeGenerator.cs:
  94. * XmlMapping.cs:
  95. * XmlSerializationReaderInterpreter.cs:
  96. * SoapCodeExporter.cs:
  97. * XmlTypeMapMemberAttribute.cs:
  98. * XmlSerializationReader.cs:
  99. * XmlCodeExporter.cs: Fixed some warnings.
  100. 2005-04-10 Andrew Skiba <[email protected]>
  101. * XmlSerializer.cs: fixed a typo - wrong TARGET_JVM condition.
  102. 2005-04-03 Andrew Skiba <[email protected]>
  103. * XmlSerializer.cs: added TARGET_JVM that does not support on-the-fly
  104. code generation.
  105. 2005-03-30 Lluis Sanchez Gual <[email protected]>
  106. * SerializationCodeGenerator.cs:
  107. * XmlSerializationReaderInterpreter.cs: If the element being read is
  108. bound to a choice member, set the corresponding value.
  109. * XmlTypeMapMember.cs: Added helper SetValue method.
  110. * XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
  111. since now stores the enum value.
  112. * XmlReflectionImporter.cs: Properly import choice values.
  113. * XmlTypeMapMemberElement.cs: Added setter for the choice.
  114. 2005-03-29 Lluis Sanchez Gual <[email protected]>
  115. * XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
  116. This fixes bug #73901 and should fix #70384.
  117. * XmlSerializationReader.cs: When reading an object element, return
  118. an Object instance if the element has no children. This fixes bug #73974.
  119. * XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
  120. type (it is written as an element with those nodes as children).
  121. 2005-03-08 Lluis Sanchez Gual <[email protected]>
  122. * XmlSchemaImporter.cs: Support importing schemas that define
  123. extra types in the standard xml schema namespace. When using encoded
  124. format, support the primitive types defined by the SOAP encoding
  125. namespace.
  126. 2005-03-04 Lluis Sanchez Gual <[email protected]>
  127. * ReflectionHelper.cs: Avoid endless loop.
  128. * XmlSchemas.cs: Added null check. Patches from MainSoft.
  129. 2005-02-07 Lluis Sanchez Gual <[email protected]>
  130. * XmlSerializationReader.cs: After reading an href element, skip the
  131. whole element (it may not be an empty element). This fixes bug #72265.
  132. 2005-01-25 Lluis Sanchez Gual <[email protected]>
  133. * XmlSchemaImporter.cs: When importing a default value of type enum,
  134. translate it from the schema value to the clr value.
  135. 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
  136. * XmlSerializer.cs: only print the results if there's an error
  137. compiling.
  138. 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
  139. * SerializationCodeGenerator.cs: don't use _config if it has not been
  140. assigned.
  141. 2005-01-18 Lluis Sanchez Gual <[email protected]>
  142. * XmlReflectionImporter.cs: Don't check the property type if it has
  143. an [XmlIgnore] attribute. This fixes bug #71332.
  144. 2005-01-14 Atsushi Enomoto <[email protected]>
  145. * SerializationCodeGenerator.cs,
  146. XmlSerializationWriterInterpreter.cs : exchanged attribute
  147. serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
  148. xmlns attributes in XmlAnyAttribute are not written.
  149. 2005-01-12 Atsushi Enomoto <[email protected]>
  150. * SerializationCodeGeneratorConfiguration.cs,
  151. SerializationCodeGenerator.cs : Added some generation configuration:
  152. <generateAsInternal>
  153. write custom reader/writer as internal classes.
  154. <noreader>, <nowriter>
  155. They make generation of reader and/or writer optional.
  156. * XmlSerializerNamespaces.cs :
  157. Now it uses ListDictionary instead of Hashtable.
  158. * XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
  159. written unless there is already the same prefix-ns mapping.
  160. 2005-01-12 Lluis Sanchez Gual <[email protected]>
  161. * XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
  162. * XmlSchemaImporter.cs: When importing a base type of a complex type,
  163. make sure that the base class is always imported as a class and not
  164. as an array. If it has been imported as array, import it again.
  165. This fixes bug #70839. Other minor fixes as well.
  166. * XmlSerializationWriter.cs: Fixed warning.
  167. 2004-12-09 Lluis Sanchez Gual <[email protected]>
  168. * SerializationCodeGenerator.cs: Yet another generation fix.
  169. 2004-12-09 Lluis Sanchez Gual <[email protected]>
  170. * SerializationCodeGenerator.cs: Fixed generation of enum literals.
  171. 2004-12-09 Lluis Sanchez Gual <[email protected]>
  172. * XmlReflectionMember.cs: Added DeclaringType member.
  173. * XmlReflectionImporter.cs: When importing fields that belong to a
  174. base class, use the xml namespace of the base map for the member.
  175. This fixes bug #70309.
  176. 2004-11-30 Lluis Sanchez Gual <[email protected]>
  177. * XmlCodeExporter.cs, XmlSerializer.cs, XmlSchemaImporter.cs: Fixed some
  178. compilation warnings.
  179. 2004-11-24 Lluis Sanchez Gual <[email protected]>
  180. * SerializationSource.cs: Made SerializationSource abstract, and
  181. renamed Equals to BaseEquals to avoid missing GetHashCode warning
  182. (it does not really make sense in this case).
  183. * XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
  184. XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
  185. XmlSerializationReader.cs: Fixed warnings.
  186. 2004-10-19 Atsushi Enomoto <[email protected]>
  187. * XmlSerializationWriter.cs : When namespace is an empty string,
  188. XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
  189. such case.
  190. 2004-10-01 Lluis Sanchez Gual <[email protected]>
  191. * MapCodeGenerator.cs: When the Object type is exported, export all
  192. derived maps. This was done in IncludeMetadata, but this method is
  193. not called by the xsd tool.
  194. * XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
  195. attribute for primitive types and arrays.
  196. * XmlSchemaImporter.cs: Only export all object-derived maps if the
  197. Object type is explicitly referenced by an element.
  198. * XmlSerializationWriter.cs: Minor fix.
  199. 2004-09-28 Lluis Sanchez Gual <[email protected]>
  200. * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
  201. This fixes bug #66877.
  202. 2004-09-21 Lluis Sanchez Gual <[email protected]>
  203. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  204. when reading a primitive value in encoded format using
  205. ReadReferencingElement, provide the type name and namespace
  206. since the xsi type may not be present in the xml element. This
  207. fixes bug #65929.
  208. 2004-09-15 Lluis Sanchez Gual <[email protected]>
  209. * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
  210. ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
  211. * XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
  212. ImportIncludedTypes to the end, to make sure that the current map has all
  213. needed data before derived maps are constructed.
  214. * XmlSchemaExporter.cs: Generate the base class of simple types that are
  215. not primitive types. Set the correct value for IsMixed in extended types.
  216. * XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
  217. the base class of a simple type doesn't need to be a xsd type.
  218. All those patches fix bug #65654.
  219. 2004-09-03 Lluis Sanchez Gual <[email protected]>
  220. * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
  221. Normalization==true by default.
  222. 2004-09-02 Lluis Sanchez Gual <[email protected]>
  223. * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
  224. In CheckSerializableType, add the option of ignoring types with private
  225. constructors. Some kind of lists can be deserialized
  226. even if the constructor is private. See bug #61464.
  227. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  228. Before creating a list, check that it has a public constructor.
  229. * TypeData.cs: Added HasPublicConstructor property.
  230. 2004-09-01 Lluis Sanchez Gual <[email protected]>
  231. * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
  232. value list serialization.
  233. * XmlSchemaImporter.cs: Added some null checks.
  234. 2004-08-25 Lluis Sanchez Gual <[email protected]>
  235. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  236. When deserializing an encoded method response, assign to the return value
  237. the first element of the message, whatever it is. The return type doesn't
  238. need to be Object, it seems to be true for all return types.
  239. 2004-07-26 Lluis Sanchez Gual <[email protected]>
  240. * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
  241. no need to add it after the call.
  242. * SoapSchemaImporter.cs: Implemented 2.0 constructors.
  243. 2004-07-23 Lluis Sanchez Gual <[email protected]>
  244. * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
  245. * ImportContext.cs: Implemented.
  246. * MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
  247. options for 2.0. Implemented support for generating properties instead of
  248. fields.
  249. * XmlSchemaImporter.cs: Added support for sharing types.
  250. 2004-07-15 Lluis Sanchez Gual <[email protected]>
  251. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
  252. xsd type is not part of the last schema specification, but the google api
  253. uses it and ms.net accepts it.
  254. 2004-07-12 Lluis Sanchez Gual <[email protected]>
  255. * ReflectionHelper.cs: Fixed bug when registering a map as exported.
  256. Thanks to Juan C. Olivares.
  257. 2004-07-10 Lluis Sanchez Gual <[email protected]>
  258. * CodeExporter.cs: Added private constructor.
  259. * CodeGenerationOptions.cs: Set the correct enum values.
  260. * CodeIdentifier.cs: Added private constructor.
  261. * SchemaImporter.cs: Added internal constructor.
  262. * XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
  263. * XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
  264. * XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
  265. XmlSerializerVersionAttribute.cs: Set correct attribute usage.
  266. * XmlSerializationReader.cs: Added missing setter for DecodeName.
  267. 2004-07-08 Lluis Sanchez Gual <[email protected]>
  268. * XmlSerializer.cs: Fix fix.
  269. 2004-07-08 Lluis Sanchez Gual <[email protected]>
  270. * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
  271. * ReflectionHelper.cs: New method for generating map keys.
  272. * SerializationCodeGenerator.cs: Added support for generating the serializer
  273. contract class, needed for 2.0.
  274. * SerializationSource.cs: Use Type[] instead of ArrayList for storing
  275. extra types.
  276. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
  277. as Type[]. Added check that makes sure that enums being serialized are
  278. public.
  279. * XmlMapping.cs: Added internal GetKey method.
  280. * XmlSerializer.cs: Added support for IXmlSerializerImplementation.
  281. Added first bits to support loading of serializers from pre-generated
  282. assemblies.
  283. * XmlSerializerFactory.cs: Mostly implemeted.
  284. 2004-07-02 Lluis Sanchez Gual <[email protected]>
  285. * CodeIdentifier.cs: Removed constructor for NET_2_0.
  286. * SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
  287. XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
  288. XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
  289. XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
  290. XmlSerializerNamespaces.cs: Added 2.0 stubs.
  291. * XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
  292. * IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
  293. ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
  294. SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
  295. XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
  296. XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
  297. XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.
  298. 2004-07-02 Lluis Sanchez Gual <[email protected]>
  299. * SerializationCodeGenerator.cs: Generate check that the object being
  300. serialized has a known type. Little cast fix.
  301. * XmlCustomFormatter.cs: Little fix in Single conversion.
  302. 2004-07-01 Lluis Sanchez Gual <[email protected]>
  303. * TypeData.cs: In the constructor, set the correct xml type name if the
  304. type is an array (for example, instead of StringCollection, use
  305. ArrayOfString).
  306. 2004-06-22 Lluis Sanchez Gual <[email protected]>
  307. * ReflectionHelper.cs: Correctly detect private types.
  308. * XmlCodeExporter.cs: Implemented missing method.
  309. * XmlSchemaImporter.cs: Allow import of root primitive types.
  310. 2004-06-18 Atsushi Enomoto <[email protected]>
  311. * CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
  312. SerializationCodeGenerator.cs, SerializationSource.cs,
  313. TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
  314. XmlSerializationReader.cs, XmlSerializationWriter.cs,
  315. XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
  316. : Globalization fixes.
  317. In XmlCustomFormatter.GenerateToXmlString() time was not
  318. generated correctly.
  319. Replaced all CRLF XmlAttributeOverrides.cs into LF.
  320. 2004-06-13 Gert Driesen <[email protected]>
  321. * XmlSerializationWriter.cs: changed signature of protected method
  322. FromByteArrayBase64 to match MS.NET
  323. 2004-06-10 Lluis Sanchez Gual <[email protected]>
  324. * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
  325. attributes that MS.NET generates.
  326. * SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
  327. same reader/writer.
  328. * XmlCodeExporter.cs: Added support for ignore flag in maps and members.
  329. * XmlReflectionImporter.cs: Changed GetReflectionMembers to match
  330. MS.NET member ordering. Patch by David Taylor.
  331. * XmlSchemaImporter.cs: When generating a choice member, set the ignore
  332. flag. The generated enum must also not be included in the schema.
  333. * XmlTypeMapMember.cs: Added ignore flag.
  334. * XmlTypeMapping.cs: The AttributeMembers property now returns the
  335. attributes in the correct order.
  336. 2004-06-03 Gert Driesen <[email protected]>
  337. * XmlSerializationReader.cs: added missing protected members
  338. to fix API compatibility with MS.NET
  339. * XmlSerializationWriter.cs: added missing protected members
  340. to fix API compatibility with MS.NET
  341. 2004-06-02 Lluis Sanchez Gual <[email protected]>
  342. * XmlSerializationReader.cs: Support schamea instance namespaces other than
  343. the 2001 one when reading the xsi type.
  344. * MapCodeGenerator.cs: Take into account that the root namespace and element
  345. name may have changed from one export to another of the same type. In
  346. this case the class attributes need to be regenerated.
  347. * SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
  348. not ElementName. Idem for namespace.
  349. * XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
  350. * XmlRootAttribute.cs: Default value for nullable is true.
  351. * XmlSchemaImporter.cs: The root name for a class may change in some
  352. scenarios (for example, when the type is initially exported as part of
  353. another type and later exported as a root type).
  354. * XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
  355. found using the standard namespace, try getting the type using
  356. the 2000/10 and 1999 namespaces.
  357. * XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method ;-)
  358. 2004-05-26 Lluis Sanchez Gual <[email protected]>
  359. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  360. In encoded format, primitive types can be null. Read them using
  361. ReadReferencingElement, that already checks for the null tag.
  362. 2004-05-25 Lluis Sanchez Gual <[email protected]>
  363. * XmlSerializationReader.cs: Check for empty element when reading an array
  364. element. This fixes bug #59003. Thanks Atsushi!
  365. 2004-05-07 Lluis Sanchez Gual <[email protected]>
  366. * XmlSerializationWriter.cs: Implemented some missing methods.
  367. In .NET 1.0, encoded null elements use the attribute null="1", while in
  368. 1.1 the attribute is nil="true".
  369. * XmlTypeMapping.cs: Little fix for nested classes.
  370. 2004-05-07 Lluis Sanchez Gual <[email protected]>
  371. * XmlReflectionImporter.cs: Don't reset the internal tables at every
  372. ImportMembersMapping call. This fixes bug #58112. The problem is that
  373. it imported two different arrays (only different in the array item
  374. namespace) with the same name. Not sure what was this Reset needed for,
  375. everyting seems to work without it.
  376. 2004-05-05 Lluis Sanchez Gual <[email protected]>
  377. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  378. When deserializing an encoded method response, if the return type of the
  379. method is Object, assign to it the first element of the message, whatever
  380. it is.
  381. * XmlSerializationReader.cs:
  382. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
  383. the imported member.
  384. * TypeTranslator.cs: Added method to safely get a primitive TypeData.
  385. * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
  386. a given xsi type is not found. Just read it as primitive type.
  387. * XmlTypeMapMember.cs: Added IsReturnValue property.
  388. * XmlTypeMapping.cs: Added ReturnMember property.
  389. * XmlSerializer.cs: Reference System.Data when compiling the serializer.
  390. 2004-05-05 Lluis Sanchez Gual <[email protected]>
  391. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  392. When reading an object using the typeof(object) map, an emty xsi:type
  393. means that it has to read the contents into an XmlNode[].
  394. * TypeData.cs: Return the correct full name for inner classes.
  395. * XmlSchemaImporter.cs: Improved detection of types that represent
  396. "anyType", and must be mapped to XmlElement, XmlNode or Object.
  397. * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
  398. the correct namespace.
  399. In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
  400. not known.
  401. 2004-05-05 Atsushi Enomoto <[email protected]>
  402. * XmlSerializationWriter.cs : It do not have to handle schema
  403. namespace as special one.
  404. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  405. * XmlSerializationReaderInterpreter.cs: Removed the check for null
  406. AttributeMembers collection. Even if there are no attribute members,
  407. attributes need to be read.
  408. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  409. * XmlSerializationReader.cs: In ReadSerializable(), take into account that
  410. the IXmlSerializable object may not read all the EndElement it read.
  411. This fixes bug #57413.
  412. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  413. * XmlSerializer.cs: Enable serializer generation by default.
  414. 2004-04-20 Lluis Sanchez Gual <[email protected]>
  415. * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
  416. * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
  417. turns out that it is an array, import it again as array. This fixes
  418. bug #57133.
  419. 2004-04-15 Lluis Sanchez Gual <[email protected]>
  420. * XmlSchemaExporter.cs: When checking if a map has been exported or not,
  421. don't use type name for array types, since we can have different classes
  422. that represent the same array type (for example StringCollection and
  423. string[]).
  424. 2004-04-14 Lluis Sanchez Gual <[email protected]>
  425. * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
  426. not present in MS.NET.
  427. * XmlSerializationWriter.cs: Improved error message.
  428. 2004-03-30 Lluis Sanchez Gual <[email protected]>
  429. * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
  430. XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
  431. Support deserialization of members of type XmlDocument. This fixes #56169.
  432. 2004-03-25 Lluis Sanchez Gual <[email protected]>
  433. * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
  434. Use a special method to generate default values, since default enum values
  435. will come as integers, so a special cast is needed.
  436. * XmlSerializationReaderInterpreter.cs,
  437. * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
  438. SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
  439. SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
  440. XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
  441. XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
  442. XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
  443. XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
  444. XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
  445. of SerializationSource. It can't keep and use the XmlAttributeOverride
  446. instances as key values, since those instances can be modified after the
  447. xml map has been generated. Now, SerializationSource generates a unique
  448. string hash from XmlAttributeOverride and uses it for comparisons.
  449. 2004-03-24 Lluis Sanchez Gual <[email protected]>
  450. * SerializationCodeGenerator.cs: Several fixes: generate valid names for
  451. WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
  452. the adequate type. Set the default value of members that do have a default
  453. value. Other minor fixes.
  454. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
  455. from typeof(object) map, even those that have another base class.
  456. * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
  457. It must serialize the char as number, not as character.
  458. * XmlSerializationReaderInterpreter.cs: Set the default value of members
  459. that do have a default value.
  460. * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
  461. of members that have a default value.
  462. 2004-03-15 Lluis Sanchez Gual <[email protected]>
  463. * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
  464. This fixes bug #55547.
  465. 2004-03-13 David Sheldon <[email protected]>
  466. * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
  467. byte [].
  468. 2004-03-13 David Sheldon <[email protected]>
  469. * XmlTextAttribute.cs: Initialise dataType with zero-length string.
  470. fixes test case that tests for this directly.
  471. * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
  472. it. Treat it as null.
  473. 2004-03-12 Lluis Sanchez Gual <[email protected]>
  474. * CodeIdentifier.cs: Limit the length of identifiers.
  475. * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
  476. Generate types using GetDomType, so if the type is an array, it creates
  477. the correct combination of types.
  478. * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
  479. an enum, if the string is empty and the enum has [Flags], then return 0
  480. as value. This fixes bug #55509.
  481. * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
  482. are not supported. Another check: a simple type cannot be enum if it does
  483. not have any enum facet.
  484. And another fix: use string as default type for attribtues.
  485. * XmlSchemas.cs: Fixed search for schema elements. An schema may import
  486. other schemas. An imported schema would not be in the table, but its
  487. elements (although from another namespace) would be in the schema that
  488. imported it. So, we need know to check for every schema in the table.
  489. * XmlSerializer.cs: Added environment variable to help debugging code
  490. generator output.
  491. 2004-02-27 Lluis Sanchez Gual <[email protected]>
  492. * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
  493. of XmlInclude attributes needed for the service class.
  494. IsMapExported: Removed check for object type, since it can now be exported.
  495. SetMapExported: Use the type name as key, since different importers may
  496. be used to create a map for the same type.
  497. GenerateClassInclude: Updated signature.
  498. * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
  499. GenerateClassInclude(): Updated signature.
  500. * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
  501. Implemented IncludeTypes.
  502. * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
  503. GenerateClassInclude(): Updated signature.
  504. * XmlMemberMapping.cs: Added missing property.
  505. * XmlReflectionImporter.cs: GetReflectionMembers must be private.
  506. Implemented IncludeTypes().
  507. * XmlSchemaExporter.cs: Added support for exporting typeof(object).
  508. * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
  509. Now, it does a regular import and then assign the required base class to
  510. the imported map. In this way it is possible to assign a base type for a
  511. map that was previously imported without a base type.
  512. * XmlTypeMapping.cs: Added internal method SetRoot().
  513. 2004-02-24 Lluis Sanchez Gual <[email protected]>
  514. * SerializationCodeGenerator.cs: Added support for generation of readers
  515. and writers for several maps in a single class. Added support for
  516. XmlMemberMapping. Fixed generation of serializers that use encoded format.
  517. * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
  518. SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
  519. XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
  520. XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
  521. XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
  522. XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
  523. XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
  524. Added InternalEquals method.
  525. * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
  526. * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
  527. * XmlCustomFormatter.cs: Fixed little bug.
  528. * XmlMapping.cs: Added Source property. This a global identifier of the map.
  529. * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
  530. * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
  531. mapping members.
  532. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
  533. * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
  534. correctly used.
  535. * XmlSerializer.cs: Added support for generation of serializers.
  536. 2004-02-18 Atsushi Enomoto <[email protected]>
  537. * SerializationCodeGenerator.cs,
  538. SerializationCodeGeneratorConfiguration.cs:
  539. Added <namespaceImports> feature ("using XXX;" generation) support.
  540. 2004-02-17 Lluis Sanchez Gual <[email protected]>
  541. * XmlSerializationWriter.cs: When writing the root element, use a prefix
  542. if the namespace of the element is defined in the list of namespaces
  543. provided to the XmlSerializer. This fixes bug #54427.
  544. 2004-02-16 Lluis Sanchez Gual <[email protected]>
  545. * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
  546. Those are basically methods to add custom attributes to element and
  547. attribute members.
  548. * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
  549. * XmlCodeExporter.cs: Better support for custom attribute generation for
  550. method parameters.
  551. * XmlCustomFormatter.cs: Added null check.
  552. * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
  553. attributes that are required.
  554. * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
  555. as attributes.
  556. 2004-02-11 Lluis Sanchez Gual <[email protected]>
  557. * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
  558. * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
  559. string, not string[].
  560. * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
  561. for array parameters. In general, improved generation of schema Form
  562. property.
  563. * XmlMemberMapping.cs: Added Form property.
  564. * XmlReflectionImporter.cs: Types that inherit from other types cannot be
  565. simple types. Added a check for this.
  566. * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
  567. Form. The key used to determine if a map has been already generated must
  568. include the XmlType, since there can be two xml types with the same CLR
  569. type and namespace (for example, they may differ in the Form property).
  570. * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
  571. also return the corresponding map. There can be two maps that have the
  572. same TypeData, so given a TypeData is not always possible to get the
  573. correct corresponding map (for example two arrays that only differ in the
  574. Form of the item).
  575. * XmlTypeMapping.cs: Added method to set if a map can represent a simple
  576. type or not.
  577. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  578. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
  579. normalizedString schema type.
  580. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  581. * XmlReflectionImporter.cs: Get the class members using the right order.
  582. * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
  583. A member with the Any attribute can also contain text. Support this.
  584. * XmlTypeMapMemberElement.cs: Added CanBeText property.
  585. 2004-01-27 Lluis Sanchez Gual <[email protected]>
  586. * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
  587. check.
  588. 2004-01-27 Lluis Sanchez Gual <[email protected]>
  589. * MapCodeGenerator.cs: Added helper method for generating an attribute
  590. parameter of type enum.
  591. * XmlAttributeAttribute.cs: little fix.
  592. * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
  593. for method parameters.
  594. * XmlMemberMapping.cs: Improved support for members of type "any".
  595. * XmlReflectionImporter.cs: Improved assignment of the attribute form.
  596. If the namespace is explicitly specified, then the form should be
  597. qualified. Also fixed issues with the namespace assigned to attributes.
  598. This should fix bug #53384.
  599. * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
  600. methods that return values of type "any". Changed the methods
  601. AddSchemaArrayElement and AddSchemaElement, so instead of adding the
  602. element, return it, and the caller must add it to the collection.
  603. Other fixes in attribute generation.
  604. * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
  605. generate the AnyType mapping from the type described in the schema.
  606. Small fixes regarding IsMixed property of complex types (it means that
  607. the type can contain text, so the XmlTextAttribute must be generated).
  608. * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
  609. be only used in the bare+encoded format.
  610. 2004-01-24 Lluis Sanchez Gual <[email protected]>
  611. * SoapReflectionImporter.cs: Types included with SoapInclude don't need
  612. to be derived types of the one that has the attribute.
  613. * XmlReflectionImporter.cs: Recursively register the derived maps of a given
  614. map to the parent map. This fixes #53246.
  615. * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
  616. 2004-01-22 Lluis Sanchez Gual <[email protected]>
  617. * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
  618. do not check the root element name, since it can be any name. This fixes
  619. bug #53201.
  620. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  621. * XmlReflectionImporter.cs: Throw exception if a value type member has the
  622. IsNullable=true flag. This fixes bug #52906.
  623. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  624. * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
  625. so a 'specified' member has always to be generated.
  626. * TypeData.cs: Fixed check for value type.
  627. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  628. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
  629. XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
  630. XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
  631. XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
  632. XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
  633. Added support for value specifiers members. This fixes bug #53024.
  634. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  635. * XmlSchemaExporter.cs: Don't create referenced element if it has already
  636. been created (two types could be referencing the same schema element).
  637. 2004-01-19 Lluis Sanchez Gual <[email protected]>
  638. * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
  639. * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
  640. arrays. This fixes bug #53018.
  641. 2004-01-14 Lluis Sanchez Gual <[email protected]>
  642. * MapCodeGenerator.cs: Use type namespace instead of root namespace as
  643. default namespace for members.
  644. * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
  645. * XmlReflectionImporter.cs: Fixed the assignment of root and type
  646. namespaces.
  647. * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
  648. default namespace for members. In AddSchemaElement, if the element is
  649. a root element never use a "ref" attribute.
  650. * XmlSchemaImporter.cs: Fixed issue when importing root elements.
  651. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  652. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  653. XmlTypeMapping.cs: more namespace fixes.
  654. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  655. * XmlReflectionImporter.cs: type namespace must never be used as root
  656. namespace. This fixes bug #52772.
  657. 2004-01-08 Nick Drochak <[email protected]>
  658. * XmlSchemaImporter.cs: Removed unused variable.
  659. 2004-01-07 Lluis Sanchez Gual <[email protected]>
  660. * XmlReflectionImporter.cs: Ignore Namespace property when applying
  661. the [XmlType] attribute to an enum. This fixes bug #52607.
  662. 2003-12-19 Lluis Sanchez Gual <[email protected]>
  663. * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
  664. option that allow serialization of private types.
  665. 2003-12-18 Eran Domb <[email protected]>
  666. * TypeTranslator.cs : Change primtive types map.
  667. 2003-12-18 Eran Domb <[email protected]>
  668. * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
  669. classes of object.
  670. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  671. * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
  672. to check if a type is primitive, instead of Type.IsPrimitive, since CLR
  673. primitive types are not the same as XML primitive types. Patch proposed
  674. by Mordechai Taitelman. This fixes bug #52228.
  675. * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
  676. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  677. * XmlReflectionImporter.cs: Little fix.
  678. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  679. * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
  680. need to be derived types of the includer. This fixes bug #52152.
  681. Added null check for Name property of XmlEnumAttribute. This fixes
  682. bug #52155.
  683. * XmlSerializationReader.cs: Fixed some error messages.
  684. * XmlSerializationReaderInterpreter.cs: Check that the root element has
  685. the correct local name and namespace. This fixes bug #52038.
  686. Throw exception if enum value can't be parsed.
  687. * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
  688. bug #52041.
  689. 2003-12-12 Lluis Sanchez Gual <[email protected]>
  690. * MapCodeGenerator.cs: Added support for [Flags] enum.
  691. * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
  692. * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
  693. encoded array type. Added support for enums with [Flags].
  694. In encoded format, unqualified types are schema types by default.
  695. 2003-12-11 Lluis Sanchez Gual <[email protected]>
  696. * XmlCodeExporter.cs: Little fix.
  697. * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
  698. same name have the same type.
  699. * XmlSchemaImporter.cs: Support xml:lang.
  700. * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
  701. fixed wrong namespace for the arrayType attribute.
  702. 2003-12-08 Lluis Sanchez Gual <[email protected]>
  703. * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
  704. XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  705. When using rpc format on a web service, members don't need to have any
  706. specific namespace. Added a flag for turning namespace check on/off.
  707. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  708. * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
  709. delayedListFixups.Count cannot be used because elementes from
  710. delayedListFixups are deleted sometimes.
  711. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  712. * XmlReflectionImporter.cs: Indexer properties must not be serialized.
  713. This fixes bug #51060.
  714. 2003-11-24 Lluis Sanchez Gual <[email protected]>
  715. * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
  716. If type is Enum the code use type.GetElememtType() instead of
  717. Enum.GetUnderlyingType().
  718. 2003-11-12 Lluis Sanchez Gual <[email protected]>
  719. * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
  720. Removed several TODOs already done.
  721. 2003-11-03 Lluis Sanchez Gual <[email protected]>
  722. * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
  723. bug #50041.
  724. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  725. * ReflectionHelper.cs: In CheckSerializableType() check that the type
  726. is public.
  727. * XmlSerializationWriter.cs: Added check for circular references.
  728. This fixes bug #49879.
  729. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  730. * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
  731. can't be serialized. This fixes bug #49878.
  732. * TypeData.cs: In ListItemType check that the collection has a valid
  733. Add method and report an error if not.
  734. * XmlReflectionImporter.cs: Added CheckSerializableType check call when
  735. reflecting a collection.
  736. 2003-10-18 Lluis Sanchez Gual <[email protected]>
  737. * SoapReflectionImporter.cs: Support element references for enum values in
  738. encoding format. This fixes bug #49568.
  739. * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
  740. the name and namespace of the wrapper element. MS.NET doesn't do it.
  741. This fixes bug #49729.
  742. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  743. * MapCodeGenerator.cs: Made MapCodeGenerator internal.
  744. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  745. * MapCodeGenerator.cs: New file. Moved here all code that is common
  746. between XmlCodeExporter and SoapCodeExporter.
  747. * SoapCodeExporter.cs: Implemented.
  748. * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
  749. * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
  750. encoded bare parameter list.
  751. * XmlTypeMapping.cs: Added method for getting member element by index.
  752. 2003-10-14 Atsushi Enomoto <[email protected]>
  753. * XmlSchemas.cs : Implemented IsDataSet().
  754. 2003-10-13 Lluis Sanchez Gual <[email protected]>
  755. * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
  756. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
  757. in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
  758. * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
  759. * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
  760. and whether it uses encoded or literal format.
  761. * XmlSchemaExporter.cs: Little fixes.
  762. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  763. * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
  764. need to be of type SOAP-ENC:Array, it can be a restriction of it.
  765. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  766. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
  767. Read only properties are only serialized if the type is an array.
  768. 2003-10-09 Lluis Sanchez Gual <[email protected]>
  769. * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
  770. SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
  771. is not needed for value types.
  772. 2003-10-08 Lluis Sanchez Gual <[email protected]>
  773. * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
  774. (XmlSerializer.Serialize() handles namespace parameter incorrectly)
  775. 2003-10-05 Lluis Sanchez Gual <[email protected]>
  776. * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
  777. 2003-10-04 Lluis Sanchez Gual <[email protected]>
  778. * XmlSchemaExporter.cs: Keep track of elements being exported.
  779. * XmlSchemas.cs: Removed unneeded catch.
  780. 2003-10-01 Lluis Sanchez Gual <[email protected]>
  781. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  782. Fixed handling of members with XmlTextAttribute that are arrays.
  783. * TypeData.cs: IsComplexType now returns true for XmlNode.
  784. * XmlSerializer.cs: Added check for null mapping in FromMappings.
  785. * XmlTypeMapping.cs: Added helper method FindTextElement.
  786. 2003-09-28 Lluis Sanchez Gual <[email protected]>
  787. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
  788. Added support for IncludeInSchema flag.
  789. * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  790. * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
  791. methods. Added support for IncludeInSchema flag.
  792. * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  793. Added support for IncludeInSchema flag.
  794. * XmlTypeAttribute.cs: Set includeInSchema to true by default.
  795. * XmlTypeMapping.cs: Added IncludeInSchema property.
  796. 2003-09-25 Lluis Sanchez Gual <[email protected]>
  797. * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
  798. 2003-09-14 Lluis Sanchez Gual <[email protected]>
  799. * XmlCustomFormatter.cs: added support for additional string types in
  800. GenerateToXmlString().
  801. * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
  802. encoded format.
  803. 2003-09-11 Lluis Sanchez Gual <[email protected]>
  804. * SoapSchemaImporter.cs: implemented.
  805. * XmlReflectionImporter.cs: Changed nullable default for array items to true.
  806. * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
  807. * XmlSchemaImporter.cs: more support for encoded format.
  808. 2003-09-04 Lluis Sanchez Gual <[email protected]>
  809. * SerializationCodeGenerator.cs: Minor fixes.
  810. * SoapReflectionImporter.cs: More fixes.
  811. * SoapSchemaExporter.cs: implemented.
  812. * SoapSchemaImporter.cs: Initial implementation.
  813. * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
  814. and ParseArrayType
  815. * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
  816. * XmlMemberMapping.cs: Minor fixes.
  817. * XmlMembersMapping.cs: added some convenient constructors.
  818. * XmlSchemaExporter.cs: Added support for encoded format.
  819. * XmlSchemaImporter.cs: Added support for encoded format.
  820. * XmlSerializationReader.cs: changed some string literals by constants.
  821. Implemented ParseWsdlArrayType.
  822. * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
  823. custom attributes.
  824. * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
  825. * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
  826. WriteAttribute to write custom attributes.
  827. * XmlSerializer.cs: added some namespace constants.
  828. * XmlTypeMapping.cs: added GetSchemaArrayName method.
  829. 2003-09-01 Lluis Sanchez Gual <[email protected]>
  830. * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
  831. * XmlTypeMapMemberElement.cs: Little fix.
  832. * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
  833. * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
  834. methods.
  835. * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
  836. Added.
  837. 2003-08-29 Lluis Sanchez Gual <[email protected]>
  838. * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  839. * XmlMemberMapping.cs: Changed constructor.
  840. * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  841. * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
  842. * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
  843. * XmlSerializationWriterInterpreter.cs: Changed visibility.
  844. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  845. * XmlSerializer.cs: Fix in Deserialize() method.
  846. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  847. * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
  848. * XmlSchemas.cs: Find method: make sure the returned object belongs to
  849. the requested type.
  850. * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
  851. Add null checks for eventSource.
  852. * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
  853. * XmlSerializationWriter.cs: In Initialize method, initialize the provided
  854. namespece declarations. Virtual method WriteObject not needed any more.
  855. In WriteStartElement, write the provided namespaces.
  856. * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
  857. Added GetTypeMap method, that returns the map for a given type. Added some
  858. virtual methods, so writer behavior can be extended at several places by
  859. derived classes.
  860. * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
  861. methods CreateReader and CreateWriter are not called unless no type or
  862. type mapping was provided in the constructor.
  863. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  864. * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
  865. schema type it is importing is a class or an array. It will always
  866. be a class.
  867. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  868. * XmlSerializationWriterInterpreter.cs: any element members can be serialized
  869. as text nodes. Support it.
  870. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  871. * CodeIdentifier.cs: Fixed MakeValid method.
  872. * TypeTranslator.cs: Added support for more primitive types. Added
  873. GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
  874. maps by default.
  875. * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
  876. are different from the type ns and name.
  877. Generate class and field comments.
  878. Fixed default attribute generation. In elements with ref attribute, it has to be
  879. generated in the referred attribute.
  880. * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
  881. Added suport for text nodes in members of type "any".
  882. * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
  883. content.
  884. * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
  885. * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
  886. that have already been declared.
  887. WriteStartElement(): elements from schema namespace are always written with ns prefix.
  888. * XmlTypeMapMember.cs: Added documentation property.
  889. * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
  890. represents a simple type.
  891. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  892. * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
  893. stuff.
  894. * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
  895. * TypeData.cs: Added property that returns a TypeData that represents an array of
  896. the given TypeData.
  897. * TypeTranslator.cs: Added GetArrayName() method.
  898. Added TypeDatas for missing primitive types.
  899. * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
  900. XmlRootAttribute. Added the namespace to all attributes being generated.
  901. Other fixes in the generation of code.
  902. * XmlReflectionImporter: store the namespace of the type in the maps.
  903. * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
  904. class can generate text. Do not export inherited attributes of a class.
  905. Use the new root namespace stored in the map when generating the root element.
  906. * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
  907. namespace is the default namespace.
  908. * XmlSerializationWriterInterpreter.cs: fixed missing "else".
  909. * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
  910. namespace instead of the map namespace (which can be different if the type
  911. has a XmlRoot element).
  912. * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
  913. to System.DBNull.Value.
  914. * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
  915. the collection if it has not yet been created.
  916. * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
  917. of the type. It may be different from the namespace of the map if the type
  918. has a XmlRoot element. Also added IsSimpleType property.
  919. In ClassMap, added AllMembers property.
  920. 2003-07-30 Lluis Sanchez Gual <[email protected]>
  921. * TypeData.cs: Added new constructor and variables to allow the creation of
  922. a TypeData without a Type. Added ListItemTypeData property.
  923. * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
  924. array of arrays. Added also a property to get the nested array map.
  925. * XmlCodeExporter.cs: First implementation of code exporter.
  926. 2003-07-22 Lluis Sanchez Gual <[email protected]>
  927. * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
  928. * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
  929. they have.
  930. 2003-07-15 Lluis Sanchez Gual <[email protected]>
  931. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
  932. maps with the same name and namespace. To avoid this, maps must be registered
  933. using the real map namespace, not the default namespace (the namespace can
  934. change if the type has a XmlType or SoapType attribute).
  935. * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
  936. * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
  937. Other small fixes.
  938. * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
  939. is null.
  940. 2003-07-14 Lluis Sanchez Gual <[email protected]>
  941. * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
  942. * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
  943. * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
  944. * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
  945. * XmlSchemaExporter.cs: Implemented.
  946. * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
  947. * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
  948. GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
  949. * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
  950. GetStringValue() returns null if the value is null, instead of empty string.
  951. (attributes with null values are not written).
  952. * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
  953. * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
  954. DataType value can is now in TypeData.
  955. * XmlTypeMapMemberElement.cs: Small fix.
  956. * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
  957. 2003-07-14 Andreas Nahr <[email protected]>
  958. * AssemblyInfo.cs: Removed
  959. 2003-07-9 Lluis Sanchez Gual <[email protected]>
  960. * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
  961. namespace declarations if they have already been defined.
  962. 2003-07-2 Lluis Sanchez Gual <[email protected]>
  963. * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
  964. for adding elements to a list.
  965. 2003-06-31 Lluis Sanchez Gual <[email protected]>
  966. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
  967. SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
  968. A includes C).
  969. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  970. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
  971. Added support for serialization of enums with the Flags attribute.
  972. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  973. * SoapReflectionImporter.cs: Fix support for DataType in class members.
  974. * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
  975. can have other names.
  976. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
  977. * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
  978. XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  979. Fix support for DataType in class members.
  980. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
  981. Added support for array of primitive types in attributes.
  982. 2003-06-28 Lluis Sanchez Gual <[email protected]>
  983. * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
  984. be overlodaded, so it is not good for this.
  985. * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
  986. 2003-06-24 Lluis Sanchez Gual <[email protected]>
  987. * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
  988. * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
  989. array if the namespace is not specified in XmlArrayItemAttribute.
  990. 2003-06-17 Lluis Sanchez Gual <[email protected]>
  991. * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
  992. * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
  993. is not specified in the xsi attribute.
  994. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
  995. * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
  996. 2003-06-16 Atsushi Enomoto <[email protected]>
  997. * XmlSerializationReader.cs : Synchronous fix with
  998. XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
  999. * added XmlTypeMapMemberNamespace.cs.
  1000. * XmlReflectionImporter,
  1001. XmlSerializationReaderInterpreter.cs,
  1002. XmlSerializationWriterInterpreter.cs,
  1003. XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
  1004. 2003-06-16 Atsushi Enomoto <[email protected]>
  1005. * XmlSerializationWriter.cs : some QName handling fix.
  1006. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  1007. * XmlSerializationReader.cs: Fixed error message.
  1008. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
  1009. Thanks to Atsushi!
  1010. * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
  1011. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  1012. * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
  1013. * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
  1014. * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
  1015. * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
  1016. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  1017. * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
  1018. * SoapReflectionImporter.cs: tiny fix.
  1019. * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
  1020. XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
  1021. * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
  1022. * XmlSerializationWriter.cs: implemented WriteSerializable ().
  1023. 2003-06-12 Lluis Sanchez Gual <[email protected]>
  1024. * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
  1025. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
  1026. XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
  1027. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
  1028. * XmlSerializationWriter.cs: small fix.
  1029. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  1030. * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
  1031. Added support for DefaultValueAttribute.
  1032. * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
  1033. the value of an enum.
  1034. * XmlTypeMapMember.cs: Added DefaultValue attribute.
  1035. * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
  1036. integer values.
  1037. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  1038. * XmlSerializationReader.cs: Minor fix.
  1039. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  1040. * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
  1041. 2003-06-10 Lluis Sanchez Gual <[email protected]>
  1042. * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  1043. * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
  1044. * XmlCustomFormatter.cs: small fixes.
  1045. * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  1046. * XmlSerializationWriter.cs: Implemented TopLevelElement().
  1047. WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
  1048. WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
  1049. * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
  1050. root elements.
  1051. 2003-06-05 Lluis Sanchez Gual <[email protected]>
  1052. * SoapReflectionImporter.cs: implemented.
  1053. * TypeTranslator.cs: added IsPrimitive() method
  1054. * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
  1055. used by that one. Also added Format property, that can be literal or encoded.
  1056. * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
  1057. * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
  1058. * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
  1059. * XmlSerializationReaderInterpreter.cs: added support for encoded format.
  1060. * XmlSerializationWriter.cs: added support for encoded format.
  1061. * XmlSerializationWriterInterpreter.cs: added support for encoded format.
  1062. * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
  1063. * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
  1064. and a map is needed for them).
  1065. * XmlTypeMapMemberElement.cs: small fixes.
  1066. * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
  1067. * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
  1068. 2003-06-01 Miguel de Icaza <[email protected]>
  1069. * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
  1070. UnknownElement): Add line number information.
  1071. 2003-05-29 Lluis Sanchez Gual <[email protected]>
  1072. * TypeData.cs, TypeTranslator.cs: Renamed some properties.
  1073. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  1074. * XmlMapping.cs: Added internal property.
  1075. * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
  1076. * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
  1077. * XmlReflectionMember.cs: XmlAttributes are now created by default
  1078. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
  1079. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
  1080. Implemented support for XmlMembersMapping.
  1081. * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
  1082. 2003-05-28 Lluis Sanchez Gual <[email protected]>
  1083. * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
  1084. from xml type to clr type.
  1085. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  1086. * XmlReflectionMember.cs: Added default constructor.
  1087. * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
  1088. * XmlSerializationWriter.cs: Several fixes.
  1089. * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  1090. XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
  1091. Added support for enums. Added support for XmlElement and XmlNode.
  1092. Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
  1093. 2003-05-26 Lluis Sanchez Gual <[email protected]>
  1094. * TypeData.cs, TypeTranslator.cs: Implemented some methods.
  1095. * XmlCustomFormatter.cs: Added formatting methods.
  1096. * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
  1097. * XmlReflectionMember.cs: Added new constructor.
  1098. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
  1099. * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
  1100. XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
  1101. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
  1102. 2003-05-10 Atsushi Enomoto <[email protected]>
  1103. * Added TypeTableEntry.cs.
  1104. * TypeTranslator.cs : changed for non-static use.
  1105. * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
  1106. and GetElementName(). Bugfix so that if any XmlElementAttribute
  1107. exists after non-typed XmlElementAttribute then it might be ignored.
  1108. Added GetElementIsNullable().
  1109. * XmlSerializer.cs :
  1110. Introduced TypeTablePool and TypeTableEntry and erased ambiguous
  1111. Object memberObj[4].
  1112. Deserialize() now uses XmlReader.Depth to check its depth.
  1113. Serialize() for non-XmlReader arguments now always write xmldecl.
  1114. SerializeBuiltin() now explicitly requires Type to support xsi:nil,
  1115. and handles XmlQualifiedName.
  1116. Separated SerializeType () from Serialize().
  1117. Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
  1118. IsPropertyTypeSerializable() from SerializeMembers().
  1119. SerializeMembers() is now capable of null value and actual type,
  1120. which should be included by XmlIncludeAttribute and so on.
  1121. Renamed SerializeArray() to SerializeArrayContent(), and added
  1122. SerializeCollectionContent().
  1123. SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
  1124. FillTypeTable() is now aware of XmlInclude attributes.
  1125. FillEnum() should not have different type table content from others.
  1126. 2003-05-09 Atsushi Enomoto <[email protected]>
  1127. * XmlSerializer.cs : this time, only replaced spaces with tabs.
  1128. 2003-05-05 Atsushi Enomoto <[email protected]>
  1129. * ChangeLog : Added missing ChangeLog of 2003-04-25.
  1130. * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
  1131. separators. Added experimental method ToEnum().
  1132. * XmlSerializationReader.cs : unconfirmed implementation of
  1133. ReadSerializable() and ToEnum().
  1134. * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
  1135. is null then no output will be written.
  1136. Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
  1137. to use custom formatted name.
  1138. 2003-05-02 Miguel de Icaza <[email protected]>
  1139. * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
  1140. had a void return value.
  1141. 2003-04-26 Miguel de Icaza <[email protected]>
  1142. * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
  1143. `AllowMultiple' flags.
  1144. 2003-04-25 Atsushi Enomoto <[email protected]>
  1145. * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
  1146. * XmlReflectionImporter.cs : patch by Erik LeBel.
  1147. Now uses XmlRootAttribute to determine element name.
  1148. 2003-03-17 Miguel de Icaza <[email protected]>
  1149. * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
  1150. Kill Bublesort.
  1151. 2003-03-22 Atsushi Enomoto <[email protected]>
  1152. * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
  1153. XmlWriter argument should call WriteEndDocument.
  1154. 2003-03-19 Atsushi Enomoto <[email protected]>
  1155. * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
  1156. not WriteState.Start, and never call WriteEndDocument().
  1157. 2003-03-12 Elan Feingold <[email protected]>
  1158. * XmlCustomFormatter.cs: Correct signature, Implement
  1159. ToByteArrayBase64
  1160. * XmlSerializationWriter.cs: Fix prototype.
  1161. * XmlSerializer.cs: Implements Deserialize().
  1162. 2003-02-16 Atsushi Enomoto <[email protected]>
  1163. * XmlSerializer.cs : serializing now works for interface member.
  1164. 2003-01-26 Atsushi Enomoto <[email protected]>
  1165. * XmlSerializer.cs : some fix handling xml node object more correct.
  1166. 2003-01-16 Ajay kumar Dwivedi <[email protected]>
  1167. * XmlSerializer.cs: Array serialization for 1D arrays works
  1168. * TypeTranslator: Added for translations`
  1169. 2002-09-19 Gonzalo Paniagua Javier <[email protected]>
  1170. * XmlCustomFormatter.cs: finished.
  1171. * XmlSerializationReader.cs: implemented some more methods.
  1172. 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
  1173. * XmlSerializationReader.cs: implemented a few methods.
  1174. * XmlAnyElementAttribute.cs:
  1175. * XmlArrayAttribute.cs:
  1176. * XmlChoiceIdentifierAttribute.cs:
  1177. * XmlElementAttribute.cs:
  1178. * XmlMemberMapping.cs:
  1179. * XmlMembersMapping.cs: class status based fixes.
  1180. 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
  1181. * CodeIdentifiers.cs:
  1182. * XmlSchemaExporter.cs:
  1183. * XmlSchemaImporter.cs:
  1184. * XmlSchemas.cs:
  1185. * XmlSerializationWriteCallback.cs:
  1186. * XmlSerializationWriter.cs:
  1187. * XmlSerializer.cs:
  1188. * XmlSerializerNamespaces.cs: some class status based fixed and
  1189. implemented a couple of methods.
  1190. * SoapSchemaExporter.cs: stubbed out.
  1191. 2002-08-24 Tim Coleman <[email protected]>
  1192. * SoapCodeExporter.cs:
  1193. Fix return value of ExportTypeMapping.
  1194. * XmlCustomFormatter.cs:
  1195. Change methods to be internal instead of public.
  1196. * XmlSerializationWriter.cs:
  1197. Modify GetPrimitiveTypeName to build on linux.
  1198. Modify GetQualifiedName to return an incrementing prefix
  1199. instead of the same one all the time (still need to manage
  1200. conflicts)
  1201. Modify WriteElementString to only do special stuff is XsiType
  1202. is not defined.
  1203. Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
  1204. an XmlQualifiedName.
  1205. 2002-08-22 Tim Coleman <[email protected]>
  1206. * XmlSerializationReader.cs:
  1207. Some implementation
  1208. * XmlSerializationWriter.cs:
  1209. More implementation
  1210. * XmlCustomFormatter.cs:
  1211. Implemented this class.
  1212. 2002-08-20 Tim Coleman <[email protected]>
  1213. * XmlSerializationWriter.cs:
  1214. Some implementation.
  1215. 2002-08-19 Tim Coleman <[email protected]>
  1216. * XmlSerializer.cs:
  1217. New stubs added.
  1218. * XmlSerializationWriter.cs:
  1219. New stubs added.
  1220. 2002-08-14 Tim Coleman <[email protected]>
  1221. * XmlSerializer.cs:
  1222. More reformatting of source code so I can
  1223. better understand what it does.
  1224. 2002-08-06 Tim Coleman <[email protected]>
  1225. * XmlSerializer.cs:
  1226. Some reformatting of code for readability.
  1227. Modify to correctly serialize ICollection objects
  1228. such as the BindingCollection of a ServiceDescription
  1229. for example.
  1230. 2002-08-03 Tim Coleman <[email protected]>
  1231. * XmlSerializer.cs:
  1232. Changed Implements() to check based on name rather
  1233. than FullName. FullName was never working correctly.
  1234. 2002-07-26 Tim Coleman <[email protected]>
  1235. * XmlSerializer.cs:
  1236. The constructor now looks for an XmlRootAttribute attribute
  1237. if one is not passed in. Various changes to make it emit
  1238. proper XML, such as handling an element without a namespace
  1239. prefix, and using WriteEndDocument where it should be.
  1240. 2002-07-24 Tim Coleman <[email protected]>
  1241. * CodeIdentifier.cs:
  1242. * IXmlSerializable.cs:
  1243. * XmlSerializationCollectionFixupCallback.cs:
  1244. * XmlSerializationFixupCallback.cs:
  1245. * XmlSerializationReadCallback.cs:
  1246. * XmlSerializationReader.cs:
  1247. * XmlSerializationWriteCallback.cs:
  1248. Add new classes.
  1249. * XmlSchemas.cs
  1250. * CodeIdentifiers.cs:
  1251. Implement some of these classes
  1252. * XmlCodeExporter.cs:
  1253. Fix return type of a function
  1254. 2002-07-24 Tim Coleman <[email protected]>
  1255. * SoapReflectionImporter.cs:
  1256. New class added to build
  1257. System.Web.Services.Description.ServiceDescription.cs
  1258. 2002-07-22 Tim Coleman <[email protected]>
  1259. * CodeIdentifiers.cs:
  1260. * SoapCodeExporter.cs:
  1261. * SoapSchemaExporter.cs:
  1262. * XmlCodeExporter.cs:
  1263. * XmlMemberMapping.cs:
  1264. * XmlMembersMapping.cs:
  1265. * XmlReflectionImporter.cs:
  1266. * XmlReflectionMember.cs:
  1267. * XmlSchemaExporter.cs:
  1268. * XmlSchemaImporter.cs:
  1269. * XmlSchemas.cs:
  1270. New stubbs added to aid in the linux build of
  1271. System.Web.Services.
  1272. 2002-07-05 Ajay kumar Dwivedi <[email protected]>
  1273. * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
  1274. * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
  1275. 2002-07-02 Ajay kumar Dwivedi <[email protected]>
  1276. * XmlSeriailizer: Updated Serialize() method.
  1277. 2002-06-27 Ajay kumar Dwivedi <[email protected]>
  1278. * XmlSerializer: Serialize() method Partially Implemented.
  1279. 2002-06-20 Ajay kumar Dwivedi <[email protected]>
  1280. * Soap & XmlOverrides: Implemented using TypeMember as key with
  1281. suggestions from Rafael.