ChangeLog 76 KB

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