ChangeLog 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181
  1. 2004-05-07 Lluis Sanchez Gual <[email protected]>
  2. * XmlReflectionImporter.cs: Don't reset the internal tables at every
  3. ImportMembersMapping call. This fixes bug #58112. The problem is that
  4. it imported two different arrays (only different in the array item
  5. namespace) with the same name. Not sure what was this Reset needed for,
  6. everyting seems to work without it.
  7. 2004-05-05 Lluis Sanchez Gual <[email protected]>
  8. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  9. When deserializing an encoded method response, if the return type of the
  10. method is Object, assign to it the first element of the message, whatever
  11. it is.
  12. * XmlSerializationReader.cs:
  13. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
  14. the imported member.
  15. * TypeTranslator.cs: Added method to safely get a primitive TypeData.
  16. * XmlSerializationReader.cs: Don't throw an exception when the CLR type for
  17. a given xsi type is not found. Just read it as primitive type.
  18. * XmlTypeMapMember.cs: Added IsReturnValue property.
  19. * XmlTypeMapping.cs: Added ReturnMember property.
  20. * XmlSerializer.cs: Reference System.Data when compiling the serializer.
  21. 2004-05-05 Lluis Sanchez Gual <[email protected]>
  22. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  23. When reading an object using the typeof(object) map, an emty xsi:type
  24. means that it has to read the contents into an XmlNode[].
  25. * TypeData.cs: Return the correct full name for inner classes.
  26. * XmlSchemaImporter.cs: Improved detection of types that represent
  27. "anyType", and must be mapped to XmlElement, XmlNode or Object.
  28. * XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
  29. the correct namespace.
  30. In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
  31. not known.
  32. 2004-05-05 Atsushi Enomoto <[email protected]>
  33. * XmlSerializationWriter.cs : It do not have to handle schema
  34. namespace as special one.
  35. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  36. * XmlSerializationReaderInterpreter.cs: Removed the check for null
  37. AttributeMembers collection. Even if there are no attribute members,
  38. attributes need to be read.
  39. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  40. * XmlSerializationReader.cs: In ReadSerializable(), take into account that
  41. the IXmlSerializable object may not read all the EndElement it read.
  42. This fixes bug #57413.
  43. 2004-05-03 Lluis Sanchez Gual <[email protected]>
  44. * XmlSerializer.cs: Enable serializer generation by default.
  45. 2004-04-20 Lluis Sanchez Gual <[email protected]>
  46. * TypeTranslator.cs: Mapped again anyUri, but now it is mapped to String.
  47. * XmlSchemaImporter.cs: If a map was initially imported as a class, but it
  48. turns out that it is an array, import it again as array. This fixes
  49. bug #57133.
  50. 2004-04-15 Lluis Sanchez Gual <[email protected]>
  51. * XmlSchemaExporter.cs: When checking if a map has been exported or not,
  52. don't use type name for array types, since we can have different classes
  53. that represent the same array type (for example StringCollection and
  54. string[]).
  55. 2004-04-14 Lluis Sanchez Gual <[email protected]>
  56. * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
  57. not present in MS.NET.
  58. * XmlSerializationWriter.cs: Improved error message.
  59. 2004-03-30 Lluis Sanchez Gual <[email protected]>
  60. * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
  61. XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
  62. Support deserialization of members of type XmlDocument. This fixes #56169.
  63. 2004-03-25 Lluis Sanchez Gual <[email protected]>
  64. * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
  65. Use a special method to generate default values, since default enum values
  66. will come as integers, so a special cast is needed.
  67. * XmlSerializationReaderInterpreter.cs,
  68. * SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
  69. SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
  70. SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
  71. XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
  72. XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
  73. XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
  74. XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
  75. XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
  76. of SerializationSource. It can't keep and use the XmlAttributeOverride
  77. instances as key values, since those instances can be modified after the
  78. xml map has been generated. Now, SerializationSource generates a unique
  79. string hash from XmlAttributeOverride and uses it for comparisons.
  80. 2004-03-24 Lluis Sanchez Gual <[email protected]>
  81. * SerializationCodeGenerator.cs: Several fixes: generate valid names for
  82. WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
  83. the adequate type. Set the default value of members that do have a default
  84. value. Other minor fixes.
  85. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
  86. from typeof(object) map, even those that have another base class.
  87. * XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
  88. It must serialize the char as number, not as character.
  89. * XmlSerializationReaderInterpreter.cs: Set the default value of members
  90. that do have a default value.
  91. * XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
  92. of members that have a default value.
  93. 2004-03-15 Lluis Sanchez Gual <[email protected]>
  94. * XmlSchemaImporter.cs: Import IXmlSerializable types as DataSet, like in MS.NET.
  95. This fixes bug #55547.
  96. 2004-03-13 David Sheldon <[email protected]>
  97. * XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
  98. byte [].
  99. 2004-03-13 David Sheldon <[email protected]>
  100. * XmlTextAttribute.cs: Initialise dataType with zero-length string.
  101. fixes test case that tests for this directly.
  102. * TypeTranslator.cs: Check for new zero-length dataType so we don't reject
  103. it. Treat it as null.
  104. 2004-03-12 Lluis Sanchez Gual <[email protected]>
  105. * CodeIdentifier.cs: Limit the length of identifiers.
  106. * MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
  107. Generate types using GetDomType, so if the type is an array, it creates
  108. the correct combination of types.
  109. * SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
  110. an enum, if the string is empty and the enum has [Flags], then return 0
  111. as value. This fixes bug #55509.
  112. * XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
  113. are not supported. Another check: a simple type cannot be enum if it does
  114. not have any enum facet.
  115. And another fix: use string as default type for attribtues.
  116. * XmlSchemas.cs: Fixed search for schema elements. An schema may import
  117. other schemas. An imported schema would not be in the table, but its
  118. elements (although from another namespace) would be in the schema that
  119. imported it. So, we need know to check for every schema in the table.
  120. * XmlSerializer.cs: Added environment variable to help debugging code
  121. generator output.
  122. 2004-02-27 Lluis Sanchez Gual <[email protected]>
  123. * MapCodeGenerator.cs: Added IncludeMetadata property, which returns a list
  124. of XmlInclude attributes needed for the service class.
  125. IsMapExported: Removed check for object type, since it can now be exported.
  126. SetMapExported: Use the type name as key, since different importers may
  127. be used to create a map for the same type.
  128. GenerateClassInclude: Updated signature.
  129. * SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
  130. GenerateClassInclude(): Updated signature.
  131. * SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
  132. Implemented IncludeTypes.
  133. * XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
  134. GenerateClassInclude(): Updated signature.
  135. * XmlMemberMapping.cs: Added missing property.
  136. * XmlReflectionImporter.cs: GetReflectionMembers must be private.
  137. Implemented IncludeTypes().
  138. * XmlSchemaExporter.cs: Added support for exporting typeof(object).
  139. * XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
  140. Now, it does a regular import and then assign the required base class to
  141. the imported map. In this way it is possible to assign a base type for a
  142. map that was previously imported without a base type.
  143. * XmlTypeMapping.cs: Added internal method SetRoot().
  144. 2004-02-24 Lluis Sanchez Gual <[email protected]>
  145. * SerializationCodeGenerator.cs: Added support for generation of readers
  146. and writers for several maps in a single class. Added support for
  147. XmlMemberMapping. Fixed generation of serializers that use encoded format.
  148. * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
  149. SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
  150. XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
  151. XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
  152. XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
  153. XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
  154. XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
  155. Added InternalEquals method.
  156. * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
  157. * SoapReflectionImporter.cs: Set SerializationSource to generated maps.
  158. * XmlCustomFormatter.cs: Fixed little bug.
  159. * XmlMapping.cs: Added Source property. This a global identifier of the map.
  160. * XmlReflectionImporter.cs: Set SerializationSource to generated maps.
  161. * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
  162. mapping members.
  163. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
  164. * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
  165. correctly used.
  166. * XmlSerializer.cs: Added support for generation of serializers.
  167. 2004-02-18 Atsushi Enomoto <[email protected]>
  168. * SerializationCodeGenerator.cs,
  169. SerializationCodeGeneratorConfiguration.cs:
  170. Added <namespaceImports> feature ("using XXX;" generation) support.
  171. 2004-02-17 Lluis Sanchez Gual <[email protected]>
  172. * XmlSerializationWriter.cs: When writing the root element, use a prefix
  173. if the namespace of the element is defined in the list of namespaces
  174. provided to the XmlSerializer. This fixes bug #54427.
  175. 2004-02-16 Lluis Sanchez Gual <[email protected]>
  176. * MapCodeGenerator.cs: Modified some methods to make them easier to reuse.
  177. Those are basically methods to add custom attributes to element and
  178. attribute members.
  179. * SoapCodeExporter.cs: Track changes in MapCodeGenerator.
  180. * XmlCodeExporter.cs: Better support for custom attribute generation for
  181. method parameters.
  182. * XmlCustomFormatter.cs: Added null check.
  183. * XmlSchemaImporter.cs: do not set IsOptionalValueType property to
  184. attributes that are required.
  185. * XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
  186. as attributes.
  187. 2004-02-11 Lluis Sanchez Gual <[email protected]>
  188. * MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
  189. * TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
  190. string, not string[].
  191. * XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
  192. for array parameters. In general, improved generation of schema Form
  193. property.
  194. * XmlMemberMapping.cs: Added Form property.
  195. * XmlReflectionImporter.cs: Types that inherit from other types cannot be
  196. simple types. Added a check for this.
  197. * XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
  198. Form. The key used to determine if a map has been already generated must
  199. include the XmlType, since there can be two xml types with the same CLR
  200. type and namespace (for example, they may differ in the Form property).
  201. * XmlSchemaImporter.cs: When getting the TypeData for a schema element,
  202. also return the corresponding map. There can be two maps that have the
  203. same TypeData, so given a TypeData is not always possible to get the
  204. correct corresponding map (for example two arrays that only differ in the
  205. Form of the item).
  206. * XmlTypeMapping.cs: Added method to set if a map can represent a simple
  207. type or not.
  208. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  209. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
  210. normalizedString schema type.
  211. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  212. * XmlReflectionImporter.cs: Get the class members using the right order.
  213. * XmlSerializationWriterInterpreter.cs: Removed unneeded code.
  214. A member with the Any attribute can also contain text. Support this.
  215. * XmlTypeMapMemberElement.cs: Added CanBeText property.
  216. 2004-01-27 Lluis Sanchez Gual <[email protected]>
  217. * XmlSchemaImporter.cs: Redefinition of types are not supported. Added a
  218. check.
  219. 2004-01-27 Lluis Sanchez Gual <[email protected]>
  220. * MapCodeGenerator.cs: Added helper method for generating an attribute
  221. parameter of type enum.
  222. * XmlAttributeAttribute.cs: little fix.
  223. * XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
  224. for method parameters.
  225. * XmlMemberMapping.cs: Improved support for members of type "any".
  226. * XmlReflectionImporter.cs: Improved assignment of the attribute form.
  227. If the namespace is explicitly specified, then the form should be
  228. qualified. Also fixed issues with the namespace assigned to attributes.
  229. This should fix bug #53384.
  230. * XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
  231. methods that return values of type "any". Changed the methods
  232. AddSchemaArrayElement and AddSchemaElement, so instead of adding the
  233. element, return it, and the caller must add it to the collection.
  234. Other fixes in attribute generation.
  235. * XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
  236. generate the AnyType mapping from the type described in the schema.
  237. Small fixes regarding IsMixed property of complex types (it means that
  238. the type can contain text, so the XmlTextAttribute must be generated).
  239. * XmlSerializationReaderInterpreter.cs: Reading of members by-order must
  240. be only used in the bare+encoded format.
  241. 2004-01-24 Lluis Sanchez Gual <[email protected]>
  242. * SoapReflectionImporter.cs: Types included with SoapInclude don't need
  243. to be derived types of the one that has the attribute.
  244. * XmlReflectionImporter.cs: Recursively register the derived maps of a given
  245. map to the parent map. This fixes #53246.
  246. * XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
  247. 2004-01-22 Lluis Sanchez Gual <[email protected]>
  248. * XmlSerializationReaderInterpreter.cs: When deserializing an XmlElement,
  249. do not check the root element name, since it can be any name. This fixes
  250. bug #53201.
  251. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  252. * XmlReflectionImporter.cs: Throw exception if a value type member has the
  253. IsNullable=true flag. This fixes bug #52906.
  254. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  255. * MapCodeGenerator.cs, XmlSchemaImporter.cs: Attributes are allways optional,
  256. so a 'specified' member has always to be generated.
  257. * TypeData.cs: Fixed check for value type.
  258. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  259. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
  260. XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
  261. XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
  262. XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
  263. XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
  264. Added support for value specifiers members. This fixes bug #53024.
  265. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  266. * XmlSchemaExporter.cs: Don't create referenced element if it has already
  267. been created (two types could be referencing the same schema element).
  268. 2004-01-19 Lluis Sanchez Gual <[email protected]>
  269. * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
  270. * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
  271. arrays. This fixes bug #53018.
  272. 2004-01-14 Lluis Sanchez Gual <[email protected]>
  273. * MapCodeGenerator.cs: Use type namespace instead of root namespace as
  274. default namespace for members.
  275. * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
  276. * XmlReflectionImporter.cs: Fixed the assignment of root and type
  277. namespaces.
  278. * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
  279. default namespace for members. In AddSchemaElement, if the element is
  280. a root element never use a "ref" attribute.
  281. * XmlSchemaImporter.cs: Fixed issue when importing root elements.
  282. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  283. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  284. XmlTypeMapping.cs: more namespace fixes.
  285. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  286. * XmlReflectionImporter.cs: type namespace must never be used as root
  287. namespace. This fixes bug #52772.
  288. 2004-01-08 Nick Drochak <[email protected]>
  289. * XmlSchemaImporter.cs: Removed unused variable.
  290. 2004-01-07 Lluis Sanchez Gual <[email protected]>
  291. * XmlReflectionImporter.cs: Ignore Namespace property when applying
  292. the [XmlType] attribute to an enum. This fixes bug #52607.
  293. 2003-12-19 Lluis Sanchez Gual <[email protected]>
  294. * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
  295. option that allow serialization of private types.
  296. 2003-12-18 Eran Domb <[email protected]>
  297. * TypeTranslator.cs : Change primtive types map.
  298. 2003-12-18 Eran Domb <[email protected]>
  299. * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
  300. classes of object.
  301. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  302. * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
  303. to check if a type is primitive, instead of Type.IsPrimitive, since CLR
  304. primitive types are not the same as XML primitive types. Patch proposed
  305. by Mordechai Taitelman. This fixes bug #52228.
  306. * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
  307. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  308. * XmlReflectionImporter.cs: Little fix.
  309. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  310. * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
  311. need to be derived types of the includer. This fixes bug #52152.
  312. Added null check for Name property of XmlEnumAttribute. This fixes
  313. bug #52155.
  314. * XmlSerializationReader.cs: Fixed some error messages.
  315. * XmlSerializationReaderInterpreter.cs: Check that the root element has
  316. the correct local name and namespace. This fixes bug #52038.
  317. Throw exception if enum value can't be parsed.
  318. * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
  319. bug #52041.
  320. 2003-12-12 Lluis Sanchez Gual <[email protected]>
  321. * MapCodeGenerator.cs: Added support for [Flags] enum.
  322. * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
  323. * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
  324. encoded array type. Added support for enums with [Flags].
  325. In encoded format, unqualified types are schema types by default.
  326. 2003-12-11 Lluis Sanchez Gual <[email protected]>
  327. * XmlCodeExporter.cs: Little fix.
  328. * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
  329. same name have the same type.
  330. * XmlSchemaImporter.cs: Support xml:lang.
  331. * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
  332. fixed wrong namespace for the arrayType attribute.
  333. 2003-12-08 Lluis Sanchez Gual <[email protected]>
  334. * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
  335. XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  336. When using rpc format on a web service, members don't need to have any
  337. specific namespace. Added a flag for turning namespace check on/off.
  338. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  339. * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
  340. delayedListFixups.Count cannot be used because elementes from
  341. delayedListFixups are deleted sometimes.
  342. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  343. * XmlReflectionImporter.cs: Indexer properties must not be serialized.
  344. This fixes bug #51060.
  345. 2003-11-24 Lluis Sanchez Gual <[email protected]>
  346. * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
  347. If type is Enum the code use type.GetElememtType() instead of
  348. Enum.GetUnderlyingType().
  349. 2003-11-12 Lluis Sanchez Gual <[email protected]>
  350. * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
  351. Removed several TODOs already done.
  352. 2003-11-03 Lluis Sanchez Gual <[email protected]>
  353. * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
  354. bug #50041.
  355. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  356. * ReflectionHelper.cs: In CheckSerializableType() check that the type
  357. is public.
  358. * XmlSerializationWriter.cs: Added check for circular references.
  359. This fixes bug #49879.
  360. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  361. * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
  362. can't be serialized. This fixes bug #49878.
  363. * TypeData.cs: In ListItemType check that the collection has a valid
  364. Add method and report an error if not.
  365. * XmlReflectionImporter.cs: Added CheckSerializableType check call when
  366. reflecting a collection.
  367. 2003-10-18 Lluis Sanchez Gual <[email protected]>
  368. * SoapReflectionImporter.cs: Support element references for enum values in
  369. encoding format. This fixes bug #49568.
  370. * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
  371. the name and namespace of the wrapper element. MS.NET doesn't do it.
  372. This fixes bug #49729.
  373. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  374. * MapCodeGenerator.cs: Made MapCodeGenerator internal.
  375. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  376. * MapCodeGenerator.cs: New file. Moved here all code that is common
  377. between XmlCodeExporter and SoapCodeExporter.
  378. * SoapCodeExporter.cs: Implemented.
  379. * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
  380. * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
  381. encoded bare parameter list.
  382. * XmlTypeMapping.cs: Added method for getting member element by index.
  383. 2003-10-14 Atsushi Enomoto <[email protected]>
  384. * XmlSchemas.cs : Implemented IsDataSet().
  385. 2003-10-13 Lluis Sanchez Gual <[email protected]>
  386. * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
  387. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
  388. in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
  389. * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
  390. * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
  391. and whether it uses encoded or literal format.
  392. * XmlSchemaExporter.cs: Little fixes.
  393. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  394. * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
  395. need to be of type SOAP-ENC:Array, it can be a restriction of it.
  396. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  397. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
  398. Read only properties are only serialized if the type is an array.
  399. 2003-10-09 Lluis Sanchez Gual <[email protected]>
  400. * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
  401. SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
  402. is not needed for value types.
  403. 2003-10-08 Lluis Sanchez Gual <[email protected]>
  404. * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
  405. (XmlSerializer.Serialize() handles namespace parameter incorrectly)
  406. 2003-10-05 Lluis Sanchez Gual <[email protected]>
  407. * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
  408. 2003-10-04 Lluis Sanchez Gual <[email protected]>
  409. * XmlSchemaExporter.cs: Keep track of elements being exported.
  410. * XmlSchemas.cs: Removed unneeded catch.
  411. 2003-10-01 Lluis Sanchez Gual <[email protected]>
  412. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  413. Fixed handling of members with XmlTextAttribute that are arrays.
  414. * TypeData.cs: IsComplexType now returns true for XmlNode.
  415. * XmlSerializer.cs: Added check for null mapping in FromMappings.
  416. * XmlTypeMapping.cs: Added helper method FindTextElement.
  417. 2003-09-28 Lluis Sanchez Gual <[email protected]>
  418. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
  419. Added support for IncludeInSchema flag.
  420. * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  421. * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
  422. methods. Added support for IncludeInSchema flag.
  423. * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  424. Added support for IncludeInSchema flag.
  425. * XmlTypeAttribute.cs: Set includeInSchema to true by default.
  426. * XmlTypeMapping.cs: Added IncludeInSchema property.
  427. 2003-09-25 Lluis Sanchez Gual <[email protected]>
  428. * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
  429. 2003-09-14 Lluis Sanchez Gual <[email protected]>
  430. * XmlCustomFormatter.cs: added support for additional string types in
  431. GenerateToXmlString().
  432. * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
  433. encoded format.
  434. 2003-09-11 Lluis Sanchez Gual <[email protected]>
  435. * SoapSchemaImporter.cs: implemented.
  436. * XmlReflectionImporter.cs: Changed nullable default for array items to true.
  437. * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
  438. * XmlSchemaImporter.cs: more support for encoded format.
  439. 2003-09-04 Lluis Sanchez Gual <[email protected]>
  440. * SerializationCodeGenerator.cs: Minor fixes.
  441. * SoapReflectionImporter.cs: More fixes.
  442. * SoapSchemaExporter.cs: implemented.
  443. * SoapSchemaImporter.cs: Initial implementation.
  444. * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
  445. and ParseArrayType
  446. * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
  447. * XmlMemberMapping.cs: Minor fixes.
  448. * XmlMembersMapping.cs: added some convenient constructors.
  449. * XmlSchemaExporter.cs: Added support for encoded format.
  450. * XmlSchemaImporter.cs: Added support for encoded format.
  451. * XmlSerializationReader.cs: changed some string literals by constants.
  452. Implemented ParseWsdlArrayType.
  453. * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
  454. custom attributes.
  455. * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
  456. * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
  457. WriteAttribute to write custom attributes.
  458. * XmlSerializer.cs: added some namespace constants.
  459. * XmlTypeMapping.cs: added GetSchemaArrayName method.
  460. 2003-09-01 Lluis Sanchez Gual <[email protected]>
  461. * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
  462. * XmlTypeMapMemberElement.cs: Little fix.
  463. * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
  464. * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
  465. methods.
  466. * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
  467. Added.
  468. 2003-08-29 Lluis Sanchez Gual <[email protected]>
  469. * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  470. * XmlMemberMapping.cs: Changed constructor.
  471. * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  472. * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
  473. * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
  474. * XmlSerializationWriterInterpreter.cs: Changed visibility.
  475. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  476. * XmlSerializer.cs: Fix in Deserialize() method.
  477. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  478. * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
  479. * XmlSchemas.cs: Find method: make sure the returned object belongs to
  480. the requested type.
  481. * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
  482. Add null checks for eventSource.
  483. * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
  484. * XmlSerializationWriter.cs: In Initialize method, initialize the provided
  485. namespece declarations. Virtual method WriteObject not needed any more.
  486. In WriteStartElement, write the provided namespaces.
  487. * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
  488. Added GetTypeMap method, that returns the map for a given type. Added some
  489. virtual methods, so writer behavior can be extended at several places by
  490. derived classes.
  491. * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
  492. methods CreateReader and CreateWriter are not called unless no type or
  493. type mapping was provided in the constructor.
  494. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  495. * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
  496. schema type it is importing is a class or an array. It will always
  497. be a class.
  498. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  499. * XmlSerializationWriterInterpreter.cs: any element members can be serialized
  500. as text nodes. Support it.
  501. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  502. * CodeIdentifier.cs: Fixed MakeValid method.
  503. * TypeTranslator.cs: Added support for more primitive types. Added
  504. GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
  505. maps by default.
  506. * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
  507. are different from the type ns and name.
  508. Generate class and field comments.
  509. Fixed default attribute generation. In elements with ref attribute, it has to be
  510. generated in the referred attribute.
  511. * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
  512. Added suport for text nodes in members of type "any".
  513. * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
  514. content.
  515. * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
  516. * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
  517. that have already been declared.
  518. WriteStartElement(): elements from schema namespace are always written with ns prefix.
  519. * XmlTypeMapMember.cs: Added documentation property.
  520. * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
  521. represents a simple type.
  522. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  523. * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
  524. stuff.
  525. * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
  526. * TypeData.cs: Added property that returns a TypeData that represents an array of
  527. the given TypeData.
  528. * TypeTranslator.cs: Added GetArrayName() method.
  529. Added TypeDatas for missing primitive types.
  530. * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
  531. XmlRootAttribute. Added the namespace to all attributes being generated.
  532. Other fixes in the generation of code.
  533. * XmlReflectionImporter: store the namespace of the type in the maps.
  534. * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
  535. class can generate text. Do not export inherited attributes of a class.
  536. Use the new root namespace stored in the map when generating the root element.
  537. * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
  538. namespace is the default namespace.
  539. * XmlSerializationWriterInterpreter.cs: fixed missing "else".
  540. * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
  541. namespace instead of the map namespace (which can be different if the type
  542. has a XmlRoot element).
  543. * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
  544. to System.DBNull.Value.
  545. * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
  546. the collection if it has not yet been created.
  547. * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
  548. of the type. It may be different from the namespace of the map if the type
  549. has a XmlRoot element. Also added IsSimpleType property.
  550. In ClassMap, added AllMembers property.
  551. 2003-07-30 Lluis Sanchez Gual <[email protected]>
  552. * TypeData.cs: Added new constructor and variables to allow the creation of
  553. a TypeData without a Type. Added ListItemTypeData property.
  554. * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
  555. array of arrays. Added also a property to get the nested array map.
  556. * XmlCodeExporter.cs: First implementation of code exporter.
  557. 2003-07-22 Lluis Sanchez Gual <[email protected]>
  558. * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
  559. * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
  560. they have.
  561. 2003-07-15 Lluis Sanchez Gual <[email protected]>
  562. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
  563. maps with the same name and namespace. To avoid this, maps must be registered
  564. using the real map namespace, not the default namespace (the namespace can
  565. change if the type has a XmlType or SoapType attribute).
  566. * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
  567. * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
  568. Other small fixes.
  569. * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
  570. is null.
  571. 2003-07-14 Lluis Sanchez Gual <[email protected]>
  572. * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
  573. * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
  574. * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
  575. * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
  576. * XmlSchemaExporter.cs: Implemented.
  577. * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
  578. * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
  579. GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
  580. * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
  581. GetStringValue() returns null if the value is null, instead of empty string.
  582. (attributes with null values are not written).
  583. * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
  584. * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
  585. DataType value can is now in TypeData.
  586. * XmlTypeMapMemberElement.cs: Small fix.
  587. * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
  588. 2003-07-14 Andreas Nahr <[email protected]>
  589. * AssemblyInfo.cs: Removed
  590. 2003-07-9 Lluis Sanchez Gual <[email protected]>
  591. * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
  592. namespace declarations if they have already been defined.
  593. 2003-07-2 Lluis Sanchez Gual <[email protected]>
  594. * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
  595. for adding elements to a list.
  596. 2003-06-31 Lluis Sanchez Gual <[email protected]>
  597. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
  598. SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
  599. A includes C).
  600. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  601. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
  602. Added support for serialization of enums with the Flags attribute.
  603. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  604. * SoapReflectionImporter.cs: Fix support for DataType in class members.
  605. * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
  606. can have other names.
  607. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
  608. * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
  609. XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  610. Fix support for DataType in class members.
  611. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
  612. Added support for array of primitive types in attributes.
  613. 2003-06-28 Lluis Sanchez Gual <[email protected]>
  614. * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
  615. be overlodaded, so it is not good for this.
  616. * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
  617. 2003-06-24 Lluis Sanchez Gual <[email protected]>
  618. * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
  619. * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
  620. array if the namespace is not specified in XmlArrayItemAttribute.
  621. 2003-06-17 Lluis Sanchez Gual <[email protected]>
  622. * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
  623. * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
  624. is not specified in the xsi attribute.
  625. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
  626. * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
  627. 2003-06-16 Atsushi Enomoto <[email protected]>
  628. * XmlSerializationReader.cs : Synchronous fix with
  629. XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
  630. * added XmlTypeMapMemberNamespace.cs.
  631. * XmlReflectionImporter,
  632. XmlSerializationReaderInterpreter.cs,
  633. XmlSerializationWriterInterpreter.cs,
  634. XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
  635. 2003-06-16 Atsushi Enomoto <[email protected]>
  636. * XmlSerializationWriter.cs : some QName handling fix.
  637. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  638. * XmlSerializationReader.cs: Fixed error message.
  639. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
  640. Thanks to Atsushi!
  641. * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
  642. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  643. * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
  644. * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
  645. * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
  646. * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
  647. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  648. * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
  649. * SoapReflectionImporter.cs: tiny fix.
  650. * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
  651. XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
  652. * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
  653. * XmlSerializationWriter.cs: implemented WriteSerializable ().
  654. 2003-06-12 Lluis Sanchez Gual <[email protected]>
  655. * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
  656. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
  657. XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
  658. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
  659. * XmlSerializationWriter.cs: small fix.
  660. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  661. * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
  662. Added support for DefaultValueAttribute.
  663. * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
  664. the value of an enum.
  665. * XmlTypeMapMember.cs: Added DefaultValue attribute.
  666. * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
  667. integer values.
  668. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  669. * XmlSerializationReader.cs: Minor fix.
  670. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  671. * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
  672. 2003-06-10 Lluis Sanchez Gual <[email protected]>
  673. * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  674. * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
  675. * XmlCustomFormatter.cs: small fixes.
  676. * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  677. * XmlSerializationWriter.cs: Implemented TopLevelElement().
  678. WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
  679. WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
  680. * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
  681. root elements.
  682. 2003-06-05 Lluis Sanchez Gual <[email protected]>
  683. * SoapReflectionImporter.cs: implemented.
  684. * TypeTranslator.cs: added IsPrimitive() method
  685. * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
  686. used by that one. Also added Format property, that can be literal or encoded.
  687. * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
  688. * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
  689. * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
  690. * XmlSerializationReaderInterpreter.cs: added support for encoded format.
  691. * XmlSerializationWriter.cs: added support for encoded format.
  692. * XmlSerializationWriterInterpreter.cs: added support for encoded format.
  693. * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
  694. * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
  695. and a map is needed for them).
  696. * XmlTypeMapMemberElement.cs: small fixes.
  697. * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
  698. * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
  699. 2003-06-01 Miguel de Icaza <[email protected]>
  700. * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
  701. UnknownElement): Add line number information.
  702. 2003-05-29 Lluis Sanchez Gual <[email protected]>
  703. * TypeData.cs, TypeTranslator.cs: Renamed some properties.
  704. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  705. * XmlMapping.cs: Added internal property.
  706. * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
  707. * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
  708. * XmlReflectionMember.cs: XmlAttributes are now created by default
  709. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
  710. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
  711. Implemented support for XmlMembersMapping.
  712. * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
  713. 2003-05-28 Lluis Sanchez Gual <[email protected]>
  714. * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
  715. from xml type to clr type.
  716. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  717. * XmlReflectionMember.cs: Added default constructor.
  718. * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
  719. * XmlSerializationWriter.cs: Several fixes.
  720. * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  721. XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
  722. Added support for enums. Added support for XmlElement and XmlNode.
  723. Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
  724. 2003-05-26 Lluis Sanchez Gual <[email protected]>
  725. * TypeData.cs, TypeTranslator.cs: Implemented some methods.
  726. * XmlCustomFormatter.cs: Added formatting methods.
  727. * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
  728. * XmlReflectionMember.cs: Added new constructor.
  729. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
  730. * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
  731. XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
  732. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
  733. 2003-05-10 Atsushi Enomoto <[email protected]>
  734. * Added TypeTableEntry.cs.
  735. * TypeTranslator.cs : changed for non-static use.
  736. * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
  737. and GetElementName(). Bugfix so that if any XmlElementAttribute
  738. exists after non-typed XmlElementAttribute then it might be ignored.
  739. Added GetElementIsNullable().
  740. * XmlSerializer.cs :
  741. Introduced TypeTablePool and TypeTableEntry and erased ambiguous
  742. Object memberObj[4].
  743. Deserialize() now uses XmlReader.Depth to check its depth.
  744. Serialize() for non-XmlReader arguments now always write xmldecl.
  745. SerializeBuiltin() now explicitly requires Type to support xsi:nil,
  746. and handles XmlQualifiedName.
  747. Separated SerializeType () from Serialize().
  748. Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
  749. IsPropertyTypeSerializable() from SerializeMembers().
  750. SerializeMembers() is now capable of null value and actual type,
  751. which should be included by XmlIncludeAttribute and so on.
  752. Renamed SerializeArray() to SerializeArrayContent(), and added
  753. SerializeCollectionContent().
  754. SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
  755. FillTypeTable() is now aware of XmlInclude attributes.
  756. FillEnum() should not have different type table content from others.
  757. 2003-05-09 Atsushi Enomoto <[email protected]>
  758. * XmlSerializer.cs : this time, only replaced spaces with tabs.
  759. 2003-05-05 Atsushi Enomoto <[email protected]>
  760. * ChangeLog : Added missing ChangeLog of 2003-04-25.
  761. * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
  762. separators. Added experimental method ToEnum().
  763. * XmlSerializationReader.cs : unconfirmed implementation of
  764. ReadSerializable() and ToEnum().
  765. * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
  766. is null then no output will be written.
  767. Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
  768. to use custom formatted name.
  769. 2003-05-02 Miguel de Icaza <[email protected]>
  770. * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
  771. had a void return value.
  772. 2003-04-26 Miguel de Icaza <[email protected]>
  773. * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
  774. `AllowMultiple' flags.
  775. 2003-04-25 Atsushi Enomoto <[email protected]>
  776. * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
  777. * XmlReflectionImporter.cs : patch by Erik LeBel.
  778. Now uses XmlRootAttribute to determine element name.
  779. 2003-03-17 Miguel de Icaza <[email protected]>
  780. * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
  781. Kill Bublesort.
  782. 2003-03-22 Atsushi Enomoto <[email protected]>
  783. * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
  784. XmlWriter argument should call WriteEndDocument.
  785. 2003-03-19 Atsushi Enomoto <[email protected]>
  786. * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
  787. not WriteState.Start, and never call WriteEndDocument().
  788. 2003-03-12 Elan Feingold <[email protected]>
  789. * XmlCustomFormatter.cs: Correct signature, Implement
  790. ToByteArrayBase64
  791. * XmlSerializationWriter.cs: Fix prototype.
  792. * XmlSerializer.cs: Implements Deserialize().
  793. 2003-02-16 Atsushi Enomoto <[email protected]>
  794. * XmlSerializer.cs : serializing now works for interface member.
  795. 2003-01-26 Atsushi Enomoto <[email protected]>
  796. * XmlSerializer.cs : some fix handling xml node object more correct.
  797. 2003-01-16 Ajay kumar Dwivedi <[email protected]>
  798. * XmlSerializer.cs: Array serialization for 1D arrays works
  799. * TypeTranslator: Added for translations`
  800. 2002-09-19 Gonzalo Paniagua Javier <[email protected]>
  801. * XmlCustomFormatter.cs: finished.
  802. * XmlSerializationReader.cs: implemented some more methods.
  803. 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
  804. * XmlSerializationReader.cs: implemented a few methods.
  805. * XmlAnyElementAttribute.cs:
  806. * XmlArrayAttribute.cs:
  807. * XmlChoiceIdentifierAttribute.cs:
  808. * XmlElementAttribute.cs:
  809. * XmlMemberMapping.cs:
  810. * XmlMembersMapping.cs: class status based fixes.
  811. 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
  812. * CodeIdentifiers.cs:
  813. * XmlSchemaExporter.cs:
  814. * XmlSchemaImporter.cs:
  815. * XmlSchemas.cs:
  816. * XmlSerializationWriteCallback.cs:
  817. * XmlSerializationWriter.cs:
  818. * XmlSerializer.cs:
  819. * XmlSerializerNamespaces.cs: some class status based fixed and
  820. implemented a couple of methods.
  821. * SoapSchemaExporter.cs: stubbed out.
  822. 2002-08-24 Tim Coleman <[email protected]>
  823. * SoapCodeExporter.cs:
  824. Fix return value of ExportTypeMapping.
  825. * XmlCustomFormatter.cs:
  826. Change methods to be internal instead of public.
  827. * XmlSerializationWriter.cs:
  828. Modify GetPrimitiveTypeName to build on linux.
  829. Modify GetQualifiedName to return an incrementing prefix
  830. instead of the same one all the time (still need to manage
  831. conflicts)
  832. Modify WriteElementString to only do special stuff is XsiType
  833. is not defined.
  834. Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
  835. an XmlQualifiedName.
  836. 2002-08-22 Tim Coleman <[email protected]>
  837. * XmlSerializationReader.cs:
  838. Some implementation
  839. * XmlSerializationWriter.cs:
  840. More implementation
  841. * XmlCustomFormatter.cs:
  842. Implemented this class.
  843. 2002-08-20 Tim Coleman <[email protected]>
  844. * XmlSerializationWriter.cs:
  845. Some implementation.
  846. 2002-08-19 Tim Coleman <[email protected]>
  847. * XmlSerializer.cs:
  848. New stubs added.
  849. * XmlSerializationWriter.cs:
  850. New stubs added.
  851. 2002-08-14 Tim Coleman <[email protected]>
  852. * XmlSerializer.cs:
  853. More reformatting of source code so I can
  854. better understand what it does.
  855. 2002-08-06 Tim Coleman <[email protected]>
  856. * XmlSerializer.cs:
  857. Some reformatting of code for readability.
  858. Modify to correctly serialize ICollection objects
  859. such as the BindingCollection of a ServiceDescription
  860. for example.
  861. 2002-08-03 Tim Coleman <[email protected]>
  862. * XmlSerializer.cs:
  863. Changed Implements() to check based on name rather
  864. than FullName. FullName was never working correctly.
  865. 2002-07-26 Tim Coleman <[email protected]>
  866. * XmlSerializer.cs:
  867. The constructor now looks for an XmlRootAttribute attribute
  868. if one is not passed in. Various changes to make it emit
  869. proper XML, such as handling an element without a namespace
  870. prefix, and using WriteEndDocument where it should be.
  871. 2002-07-24 Tim Coleman <[email protected]>
  872. * CodeIdentifier.cs:
  873. * IXmlSerializable.cs:
  874. * XmlSerializationCollectionFixupCallback.cs:
  875. * XmlSerializationFixupCallback.cs:
  876. * XmlSerializationReadCallback.cs:
  877. * XmlSerializationReader.cs:
  878. * XmlSerializationWriteCallback.cs:
  879. Add new classes.
  880. * XmlSchemas.cs
  881. * CodeIdentifiers.cs:
  882. Implement some of these classes
  883. * XmlCodeExporter.cs:
  884. Fix return type of a function
  885. 2002-07-24 Tim Coleman <[email protected]>
  886. * SoapReflectionImporter.cs:
  887. New class added to build
  888. System.Web.Services.Description.ServiceDescription.cs
  889. 2002-07-22 Tim Coleman <[email protected]>
  890. * CodeIdentifiers.cs:
  891. * SoapCodeExporter.cs:
  892. * SoapSchemaExporter.cs:
  893. * XmlCodeExporter.cs:
  894. * XmlMemberMapping.cs:
  895. * XmlMembersMapping.cs:
  896. * XmlReflectionImporter.cs:
  897. * XmlReflectionMember.cs:
  898. * XmlSchemaExporter.cs:
  899. * XmlSchemaImporter.cs:
  900. * XmlSchemas.cs:
  901. New stubbs added to aid in the linux build of
  902. System.Web.Services.
  903. 2002-07-05 Ajay kumar Dwivedi <[email protected]>
  904. * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
  905. * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
  906. 2002-07-02 Ajay kumar Dwivedi <[email protected]>
  907. * XmlSeriailizer: Updated Serialize() method.
  908. 2002-06-27 Ajay kumar Dwivedi <[email protected]>
  909. * XmlSerializer: Serialize() method Partially Implemented.
  910. 2002-06-20 Ajay kumar Dwivedi <[email protected]>
  911. * Soap & XmlOverrides: Implemented using TypeMember as key with
  912. suggestions from Rafael.