ChangeLog 68 KB

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