ChangeLog 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  2. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs,
  3. XmlTypeMapMember.cs, MapCodeGenerator.cs, SoapCodeExporter.cs, TypeData.cs,
  4. XmlCodeExporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs,
  5. XmlSchemaImporter.cs, XmlSerializationReaderInterpreter.cs,
  6. XmlSerializationWriterInterpreter.cs, XmlTypeMapMember.cs:
  7. Added support for value specifiers members. This fixes bug #53024.
  8. 2004-01-20 Lluis Sanchez Gual <[email protected]>
  9. * XmlSchemaExporter.cs: Don't create referenced element if it has already
  10. been created (two types could be referencing the same schema element).
  11. 2004-01-19 Lluis Sanchez Gual <[email protected]>
  12. * XmlReflectionImporter.cs: Read IsNullable flag from XmlArrayAttribute.
  13. * XmlSerializationWriterInterpreter.cs: Interpret IsNullable flag for
  14. arrays. This fixes bug #53018.
  15. 2004-01-14 Lluis Sanchez Gual <[email protected]>
  16. * MapCodeGenerator.cs: Use type namespace instead of root namespace as
  17. default namespace for members.
  18. * XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
  19. * XmlReflectionImporter.cs: Fixed the assignment of root and type
  20. namespaces.
  21. * XmlSchemaExporter.cs: Use type namespace instead of root namespace as
  22. default namespace for members. In AddSchemaElement, if the element is
  23. a root element never use a "ref" attribute.
  24. * XmlSchemaImporter.cs: Fixed issue when importing root elements.
  25. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  26. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  27. XmlTypeMapping.cs: more namespace fixes.
  28. 2004-01-13 Lluis Sanchez Gual <[email protected]>
  29. * XmlReflectionImporter.cs: type namespace must never be used as root
  30. namespace. This fixes bug #52772.
  31. 2004-01-08 Nick Drochak <[email protected]>
  32. * XmlSchemaImporter.cs: Removed unused variable.
  33. 2004-01-07 Lluis Sanchez Gual <[email protected]>
  34. * XmlReflectionImporter.cs: Ignore Namespace property when applying
  35. the [XmlType] attribute to an enum. This fixes bug #52607.
  36. 2003-12-19 Lluis Sanchez Gual <[email protected]>
  37. * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
  38. option that allow serialization of private types.
  39. 2003-12-18 Eran Domb <[email protected]>
  40. * TypeTranslator.cs : Change primtive types map.
  41. 2003-12-18 Eran Domb <[email protected]>
  42. * XmlReflectionImporter.cs (ImportListMapping): Adding the included types of the list as a derived
  43. classes of object.
  44. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  45. * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
  46. to check if a type is primitive, instead of Type.IsPrimitive, since CLR
  47. primitive types are not the same as XML primitive types. Patch proposed
  48. by Mordechai Taitelman. This fixes bug #52228.
  49. * XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
  50. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  51. * XmlReflectionImporter.cs: Little fix.
  52. 2003-12-15 Lluis Sanchez Gual <[email protected]>
  53. * XmlReflectionImporter.cs: Type specified with XmlIncludeAttribute don't
  54. need to be derived types of the includer. This fixes bug #52152.
  55. Added null check for Name property of XmlEnumAttribute. This fixes
  56. bug #52155.
  57. * XmlSerializationReader.cs: Fixed some error messages.
  58. * XmlSerializationReaderInterpreter.cs: Check that the root element has
  59. the correct local name and namespace. This fixes bug #52038.
  60. Throw exception if enum value can't be parsed.
  61. * XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
  62. bug #52041.
  63. 2003-12-12 Lluis Sanchez Gual <[email protected]>
  64. * MapCodeGenerator.cs: Added support for [Flags] enum.
  65. * XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
  66. * XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
  67. encoded array type. Added support for enums with [Flags].
  68. In encoded format, unqualified types are schema types by default.
  69. 2003-12-11 Lluis Sanchez Gual <[email protected]>
  70. * XmlCodeExporter.cs: Little fix.
  71. * XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
  72. same name have the same type.
  73. * XmlSchemaImporter.cs: Support xml:lang.
  74. * XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
  75. fixed wrong namespace for the arrayType attribute.
  76. 2003-12-08 Lluis Sanchez Gual <[email protected]>
  77. * SoapReflectionImporter.cs, XmlMembersMapping.cs, XmlReflectionImporter.cs,
  78. XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  79. When using rpc format on a web service, members don't need to have any
  80. specific namespace. Added a flag for turning namespace check on/off.
  81. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  82. * XmlSerializationReader.cs: Generate identifiers for arrays user a counter.
  83. delayedListFixups.Count cannot be used because elementes from
  84. delayedListFixups are deleted sometimes.
  85. 2003-11-27 Lluis Sanchez Gual <[email protected]>
  86. * XmlReflectionImporter.cs: Indexer properties must not be serialized.
  87. This fixes bug #51060.
  88. 2003-11-24 Lluis Sanchez Gual <[email protected]>
  89. * XmlSerializationWriterInterpreter.cs: Applied patch by Eran Domb:
  90. If type is Enum the code use type.GetElememtType() instead of
  91. Enum.GetUnderlyingType().
  92. 2003-11-12 Lluis Sanchez Gual <[email protected]>
  93. * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
  94. Removed several TODOs already done.
  95. 2003-11-03 Lluis Sanchez Gual <[email protected]>
  96. * XmlCustomFormatter.cs: Added support for anyUri type. This fixes
  97. bug #50041.
  98. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  99. * ReflectionHelper.cs: In CheckSerializableType() check that the type
  100. is public.
  101. * XmlSerializationWriter.cs: Added check for circular references.
  102. This fixes bug #49879.
  103. 2003-10-20 Lluis Sanchez Gual <[email protected]>
  104. * ReflectionHelper.cs: Added check in CheckSerializableType(). Interfaces
  105. can't be serialized. This fixes bug #49878.
  106. * TypeData.cs: In ListItemType check that the collection has a valid
  107. Add method and report an error if not.
  108. * XmlReflectionImporter.cs: Added CheckSerializableType check call when
  109. reflecting a collection.
  110. 2003-10-18 Lluis Sanchez Gual <[email protected]>
  111. * SoapReflectionImporter.cs: Support element references for enum values in
  112. encoding format. This fixes bug #49568.
  113. * XmlSerializationReaderInterpreter.cs: In encoded format, do not check
  114. the name and namespace of the wrapper element. MS.NET doesn't do it.
  115. This fixes bug #49729.
  116. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  117. * MapCodeGenerator.cs: Made MapCodeGenerator internal.
  118. 2003-10-15 Lluis Sanchez Gual <[email protected]>
  119. * MapCodeGenerator.cs: New file. Moved here all code that is common
  120. between XmlCodeExporter and SoapCodeExporter.
  121. * SoapCodeExporter.cs: Implemented.
  122. * XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
  123. * XmlSerializationReaderInterpreter.cs: Fixed problem when reading
  124. encoded bare parameter list.
  125. * XmlTypeMapping.cs: Added method for getting member element by index.
  126. 2003-10-14 Atsushi Enomoto <[email protected]>
  127. * XmlSchemas.cs : Implemented IsDataSet().
  128. 2003-10-13 Lluis Sanchez Gual <[email protected]>
  129. * SoapCodeExporter.cs: Initial implementation of AddMappingMetadata().
  130. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
  131. in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
  132. * SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
  133. * XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
  134. and whether it uses encoded or literal format.
  135. * XmlSchemaExporter.cs: Little fixes.
  136. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  137. * XmlSerializationReader.cs. Fixed bug #49510. An array element doesn't
  138. need to be of type SOAP-ENC:Array, it can be a restriction of it.
  139. 2003-10-10 Lluis Sanchez Gual <[email protected]>
  140. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed bug #49476.
  141. Read only properties are only serialized if the type is an array.
  142. 2003-10-09 Lluis Sanchez Gual <[email protected]>
  143. * SoapReflectionImporter.cs, XmlReflectionImporter.cs,
  144. SoapReflectionImporter.cs: Fixed bug #94694. Check for public constructor
  145. is not needed for value types.
  146. 2003-10-08 Lluis Sanchez Gual <[email protected]>
  147. * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
  148. (XmlSerializer.Serialize() handles namespace parameter incorrectly)
  149. 2003-10-05 Lluis Sanchez Gual <[email protected]>
  150. * XmlReflectionImporter.cs, SoapReflectionImporter.cs: Fixed bug #49349
  151. 2003-10-04 Lluis Sanchez Gual <[email protected]>
  152. * XmlSchemaExporter.cs: Keep track of elements being exported.
  153. * XmlSchemas.cs: Removed unneeded catch.
  154. 2003-10-01 Lluis Sanchez Gual <[email protected]>
  155. * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
  156. Fixed handling of members with XmlTextAttribute that are arrays.
  157. * TypeData.cs: IsComplexType now returns true for XmlNode.
  158. * XmlSerializer.cs: Added check for null mapping in FromMappings.
  159. * XmlTypeMapping.cs: Added helper method FindTextElement.
  160. 2003-09-28 Lluis Sanchez Gual <[email protected]>
  161. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaExporter.cs:
  162. Added support for IncludeInSchema flag.
  163. * SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  164. * XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
  165. methods. Added support for IncludeInSchema flag.
  166. * XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
  167. Added support for IncludeInSchema flag.
  168. * XmlTypeAttribute.cs: Set includeInSchema to true by default.
  169. * XmlTypeMapping.cs: Added IncludeInSchema property.
  170. 2003-09-25 Lluis Sanchez Gual <[email protected]>
  171. * SoapIncludeAttribute.cs: Added AllowMultiple option. This fixes bug #48877.
  172. 2003-09-14 Lluis Sanchez Gual <[email protected]>
  173. * XmlCustomFormatter.cs: added support for additional string types in
  174. GenerateToXmlString().
  175. * XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
  176. encoded format.
  177. 2003-09-11 Lluis Sanchez Gual <[email protected]>
  178. * SoapSchemaImporter.cs: implemented.
  179. * XmlReflectionImporter.cs: Changed nullable default for array items to true.
  180. * XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
  181. * XmlSchemaImporter.cs: more support for encoded format.
  182. 2003-09-04 Lluis Sanchez Gual <[email protected]>
  183. * SerializationCodeGenerator.cs: Minor fixes.
  184. * SoapReflectionImporter.cs: More fixes.
  185. * SoapSchemaExporter.cs: implemented.
  186. * SoapSchemaImporter.cs: Initial implementation.
  187. * TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
  188. and ParseArrayType
  189. * XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
  190. * XmlMemberMapping.cs: Minor fixes.
  191. * XmlMembersMapping.cs: added some convenient constructors.
  192. * XmlSchemaExporter.cs: Added support for encoded format.
  193. * XmlSchemaImporter.cs: Added support for encoded format.
  194. * XmlSerializationReader.cs: changed some string literals by constants.
  195. Implemented ParseWsdlArrayType.
  196. * XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
  197. custom attributes.
  198. * XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
  199. * XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
  200. WriteAttribute to write custom attributes.
  201. * XmlSerializer.cs: added some namespace constants.
  202. * XmlTypeMapping.cs: added GetSchemaArrayName method.
  203. 2003-09-01 Lluis Sanchez Gual <[email protected]>
  204. * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
  205. * XmlTypeMapMemberElement.cs: Little fix.
  206. * XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
  207. * XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
  208. methods.
  209. * SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
  210. Added.
  211. 2003-08-29 Lluis Sanchez Gual <[email protected]>
  212. * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  213. * XmlMemberMapping.cs: Changed constructor.
  214. * XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
  215. * XmlSchemaImporter.cs: Implemented ImportMembersMapping().
  216. * XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
  217. * XmlSerializationWriterInterpreter.cs: Changed visibility.
  218. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  219. * XmlSerializer.cs: Fix in Deserialize() method.
  220. 2003-08-28 Lluis Sanchez Gual <[email protected]>
  221. * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
  222. * XmlSchemas.cs: Find method: make sure the returned object belongs to
  223. the requested type.
  224. * XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
  225. Add null checks for eventSource.
  226. * XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
  227. * XmlSerializationWriter.cs: In Initialize method, initialize the provided
  228. namespece declarations. Virtual method WriteObject not needed any more.
  229. In WriteStartElement, write the provided namespaces.
  230. * XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
  231. Added GetTypeMap method, that returns the map for a given type. Added some
  232. virtual methods, so writer behavior can be extended at several places by
  233. derived classes.
  234. * XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
  235. methods CreateReader and CreateWriter are not called unless no type or
  236. type mapping was provided in the constructor.
  237. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  238. * XmlSchemaImporter.cs: ImportTypeMapping doesn't need to check if the
  239. schema type it is importing is a class or an array. It will always
  240. be a class.
  241. 2003-08-12 Lluis Sanchez Gual <[email protected]>
  242. * XmlSerializationWriterInterpreter.cs: any element members can be serialized
  243. as text nodes. Support it.
  244. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  245. * CodeIdentifier.cs: Fixed MakeValid method.
  246. * TypeTranslator.cs: Added support for more primitive types. Added
  247. GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
  248. maps by default.
  249. * XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
  250. are different from the type ns and name.
  251. Generate class and field comments.
  252. Fixed default attribute generation. In elements with ref attribute, it has to be
  253. generated in the referred attribute.
  254. * XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
  255. Added suport for text nodes in members of type "any".
  256. * XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
  257. content.
  258. * XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
  259. * XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
  260. that have already been declared.
  261. WriteStartElement(): elements from schema namespace are always written with ns prefix.
  262. * XmlTypeMapMember.cs: Added documentation property.
  263. * XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
  264. represents a simple type.
  265. 2003-08-05 Lluis Sanchez Gual <[email protected]>
  266. * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
  267. stuff.
  268. * SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
  269. * TypeData.cs: Added property that returns a TypeData that represents an array of
  270. the given TypeData.
  271. * TypeTranslator.cs: Added GetArrayName() method.
  272. Added TypeDatas for missing primitive types.
  273. * XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
  274. XmlRootAttribute. Added the namespace to all attributes being generated.
  275. Other fixes in the generation of code.
  276. * XmlReflectionImporter: store the namespace of the type in the maps.
  277. * XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
  278. class can generate text. Do not export inherited attributes of a class.
  279. Use the new root namespace stored in the map when generating the root element.
  280. * XmlSerializationWriter: Always write a prefix when writing a qname, even if the
  281. namespace is the default namespace.
  282. * XmlSerializationWriterInterpreter.cs: fixed missing "else".
  283. * XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
  284. namespace instead of the map namespace (which can be different if the type
  285. has a XmlRoot element).
  286. * XmlTypeMapMember.cs: Set the default value of the DefaultValue property
  287. to System.DBNull.Value.
  288. * XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
  289. the collection if it has not yet been created.
  290. * XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
  291. of the type. It may be different from the namespace of the map if the type
  292. has a XmlRoot element. Also added IsSimpleType property.
  293. In ClassMap, added AllMembers property.
  294. 2003-07-30 Lluis Sanchez Gual <[email protected]>
  295. * TypeData.cs: Added new constructor and variables to allow the creation of
  296. a TypeData without a Type. Added ListItemTypeData property.
  297. * XmlTypeMapping.cs: Added property for checking if a ListMap represents an
  298. array of arrays. Added also a property to get the nested array map.
  299. * XmlCodeExporter.cs: First implementation of code exporter.
  300. 2003-07-22 Lluis Sanchez Gual <[email protected]>
  301. * TypeTranslator.cs: Added new primitive types: NMTOKEN and NCName.
  302. * XmlSerializationWriterInterpreter.cs: Write XmlAttributes with the prefix
  303. they have.
  304. 2003-07-15 Lluis Sanchez Gual <[email protected]>
  305. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Avoid generating two
  306. maps with the same name and namespace. To avoid this, maps must be registered
  307. using the real map namespace, not the default namespace (the namespace can
  308. change if the type has a XmlType or SoapType attribute).
  309. * XmlArrayItemAttribute.cs: Set IsNullable to true by default.
  310. * XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
  311. Other small fixes.
  312. * XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
  313. is null.
  314. 2003-07-14 Lluis Sanchez Gual <[email protected]>
  315. * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
  316. * TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
  317. * XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
  318. * XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
  319. * XmlSchemaExporter.cs: Implemented.
  320. * XmlSchemas.cs: Support schemas with TargetNamespace set to null.
  321. * XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
  322. GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
  323. * XmlSerializationWriterInterpreter.cs: Fixed management of default values.
  324. GetStringValue() returns null if the value is null, instead of empty string.
  325. (attributes with null values are not written).
  326. * XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
  327. * XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
  328. DataType value can is now in TypeData.
  329. * XmlTypeMapMemberElement.cs: Small fix.
  330. * XmlTypeMapping.cs: Added FindMember method and BaseMap property.
  331. 2003-07-14 Andreas Nahr <[email protected]>
  332. * AssemblyInfo.cs: Removed
  333. 2003-07-9 Lluis Sanchez Gual <[email protected]>
  334. * XmlSerializationWriter.cs: WriteStartElement(): Do not write xsd and xsi
  335. namespace declarations if they have already been defined.
  336. 2003-07-2 Lluis Sanchez Gual <[email protected]>
  337. * XmlSerializationReaderInterpreter.cs: Use the parameter type when getting the Add method
  338. for adding elements to a list.
  339. 2003-06-31 Lluis Sanchez Gual <[email protected]>
  340. * SoapReflectionImporter.cs, XmlReflectionImporter.cs: Fixed so XmlIncludeAttribute and
  341. SoapIncludeAttribute are now transitive (if class A includes class B, and B includes C, then
  342. A includes C).
  343. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  344. * SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlTypeMapping.cs:
  345. Added support for serialization of enums with the Flags attribute.
  346. 2003-06-30 Lluis Sanchez Gual <[email protected]>
  347. * SoapReflectionImporter.cs: Fix support for DataType in class members.
  348. * TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
  349. can have other names.
  350. * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
  351. * XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
  352. XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
  353. Fix support for DataType in class members.
  354. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
  355. Added support for array of primitive types in attributes.
  356. 2003-06-28 Lluis Sanchez Gual <[email protected]>
  357. * TypeData.cs: Type of item of ICollections is now taken from the Item(int) property. Add() can
  358. be overlodaded, so it is not good for this.
  359. * XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
  360. 2003-06-24 Lluis Sanchez Gual <[email protected]>
  361. * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
  362. * XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
  363. array if the namespace is not specified in XmlArrayItemAttribute.
  364. 2003-06-17 Lluis Sanchez Gual <[email protected]>
  365. * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
  366. * XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
  367. is not specified in the xsi attribute.
  368. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
  369. * XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
  370. 2003-06-16 Atsushi Enomoto <[email protected]>
  371. * XmlSerializationReader.cs : Synchronous fix with
  372. XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
  373. * added XmlTypeMapMemberNamespace.cs.
  374. * XmlReflectionImporter,
  375. XmlSerializationReaderInterpreter.cs,
  376. XmlSerializationWriterInterpreter.cs,
  377. XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.
  378. 2003-06-16 Atsushi Enomoto <[email protected]>
  379. * XmlSerializationWriter.cs : some QName handling fix.
  380. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  381. * XmlSerializationReader.cs: Fixed error message.
  382. * XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
  383. Thanks to Atsushi!
  384. * XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.
  385. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  386. * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
  387. * XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
  388. * XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
  389. * XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.
  390. 2003-06-13 Lluis Sanchez Gual <[email protected]>
  391. * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
  392. * SoapReflectionImporter.cs: tiny fix.
  393. * XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
  394. XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
  395. * XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
  396. * XmlSerializationWriter.cs: implemented WriteSerializable ().
  397. 2003-06-12 Lluis Sanchez Gual <[email protected]>
  398. * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
  399. * XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
  400. XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
  401. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
  402. * XmlSerializationWriter.cs: small fix.
  403. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  404. * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
  405. Added support for DefaultValueAttribute.
  406. * XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
  407. the value of an enum.
  408. * XmlTypeMapMember.cs: Added DefaultValue attribute.
  409. * XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
  410. integer values.
  411. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  412. * XmlSerializationReader.cs: Minor fix.
  413. 2003-06-11 Lluis Sanchez Gual <[email protected]>
  414. * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
  415. 2003-06-10 Lluis Sanchez Gual <[email protected]>
  416. * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  417. * XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
  418. * XmlCustomFormatter.cs: small fixes.
  419. * XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
  420. * XmlSerializationWriter.cs: Implemented TopLevelElement().
  421. WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
  422. WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
  423. * XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
  424. root elements.
  425. 2003-06-05 Lluis Sanchez Gual <[email protected]>
  426. * SoapReflectionImporter.cs: implemented.
  427. * TypeTranslator.cs: added IsPrimitive() method
  428. * TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
  429. used by that one. Also added Format property, that can be literal or encoded.
  430. * XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
  431. * XmlReflectionMember.cs: added constructor that accepts SoapAttributes
  432. * XmlSerializationReader.cs: implemented many methods needed to support encoded format.
  433. * XmlSerializationReaderInterpreter.cs: added support for encoded format.
  434. * XmlSerializationWriter.cs: added support for encoded format.
  435. * XmlSerializationWriterInterpreter.cs: added support for encoded format.
  436. * XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
  437. * XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
  438. and a map is needed for them).
  439. * XmlTypeMapMemberElement.cs: small fixes.
  440. * XmlTypeMapping.cs: added some properties and methods needed to support encoded format
  441. * ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
  442. 2003-06-01 Miguel de Icaza <[email protected]>
  443. * XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
  444. UnknownElement): Add line number information.
  445. 2003-05-29 Lluis Sanchez Gual <[email protected]>
  446. * TypeData.cs, TypeTranslator.cs: Renamed some properties.
  447. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  448. * XmlMapping.cs: Added internal property.
  449. * XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
  450. * XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
  451. * XmlReflectionMember.cs: XmlAttributes are now created by default
  452. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
  453. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
  454. Implemented support for XmlMembersMapping.
  455. * XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
  456. 2003-05-28 Lluis Sanchez Gual <[email protected]>
  457. * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
  458. from xml type to clr type.
  459. * XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
  460. * XmlReflectionMember.cs: Added default constructor.
  461. * XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
  462. * XmlSerializationWriter.cs: Several fixes.
  463. * XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
  464. XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
  465. Added support for enums. Added support for XmlElement and XmlNode.
  466. Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
  467. 2003-05-26 Lluis Sanchez Gual <[email protected]>
  468. * TypeData.cs, TypeTranslator.cs: Implemented some methods.
  469. * XmlCustomFormatter.cs: Added formatting methods.
  470. * XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
  471. * XmlReflectionMember.cs: Added new constructor.
  472. * XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
  473. * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
  474. XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
  475. XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added
  476. 2003-05-10 Atsushi Enomoto <[email protected]>
  477. * Added TypeTableEntry.cs.
  478. * TypeTranslator.cs : changed for non-static use.
  479. * XmlAttributes.cs : XmlType attribute support for GetAttributeName()
  480. and GetElementName(). Bugfix so that if any XmlElementAttribute
  481. exists after non-typed XmlElementAttribute then it might be ignored.
  482. Added GetElementIsNullable().
  483. * XmlSerializer.cs :
  484. Introduced TypeTablePool and TypeTableEntry and erased ambiguous
  485. Object memberObj[4].
  486. Deserialize() now uses XmlReader.Depth to check its depth.
  487. Serialize() for non-XmlReader arguments now always write xmldecl.
  488. SerializeBuiltin() now explicitly requires Type to support xsi:nil,
  489. and handles XmlQualifiedName.
  490. Separated SerializeType () from Serialize().
  491. Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
  492. IsPropertyTypeSerializable() from SerializeMembers().
  493. SerializeMembers() is now capable of null value and actual type,
  494. which should be included by XmlIncludeAttribute and so on.
  495. Renamed SerializeArray() to SerializeArrayContent(), and added
  496. SerializeCollectionContent().
  497. SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
  498. FillTypeTable() is now aware of XmlInclude attributes.
  499. FillEnum() should not have different type table content from others.
  500. 2003-05-09 Atsushi Enomoto <[email protected]>
  501. * XmlSerializer.cs : this time, only replaced spaces with tabs.
  502. 2003-05-05 Atsushi Enomoto <[email protected]>
  503. * ChangeLog : Added missing ChangeLog of 2003-04-25.
  504. * XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
  505. separators. Added experimental method ToEnum().
  506. * XmlSerializationReader.cs : unconfirmed implementation of
  507. ReadSerializable() and ToEnum().
  508. * XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
  509. is null then no output will be written.
  510. Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
  511. to use custom formatted name.
  512. 2003-05-02 Miguel de Icaza <[email protected]>
  513. * XmlReflectionImporter.cs: one of theImportTypeMapping mappings
  514. had a void return value.
  515. 2003-04-26 Miguel de Icaza <[email protected]>
  516. * XmlIncludeAttribute.cs: Make XmlIncludeAttribute have the
  517. `AllowMultiple' flags.
  518. 2003-04-25 Atsushi Enomoto <[email protected]>
  519. * TypeTranslator.cs : patch by Erik LeBel. Array consideration.
  520. * XmlReflectionImporter.cs : patch by Erik LeBel.
  521. Now uses XmlRootAttribute to determine element name.
  522. 2003-03-17 Miguel de Icaza <[email protected]>
  523. * XmlSerializer.cs: Do not use Bubblesort, use ArrayList.Sort.
  524. Kill Bublesort.
  525. 2003-03-22 Atsushi Enomoto <[email protected]>
  526. * XmlSerializer.cs : patch by Sean Cier. Serialize() other than
  527. XmlWriter argument should call WriteEndDocument.
  528. 2003-03-19 Atsushi Enomoto <[email protected]>
  529. * XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
  530. not WriteState.Start, and never call WriteEndDocument().
  531. 2003-03-12 Elan Feingold <[email protected]>
  532. * XmlCustomFormatter.cs: Correct signature, Implement
  533. ToByteArrayBase64
  534. * XmlSerializationWriter.cs: Fix prototype.
  535. * XmlSerializer.cs: Implements Deserialize().
  536. 2003-02-16 Atsushi Enomoto <[email protected]>
  537. * XmlSerializer.cs : serializing now works for interface member.
  538. 2003-01-26 Atsushi Enomoto <[email protected]>
  539. * XmlSerializer.cs : some fix handling xml node object more correct.
  540. 2003-01-16 Ajay kumar Dwivedi <[email protected]>
  541. * XmlSerializer.cs: Array serialization for 1D arrays works
  542. * TypeTranslator: Added for translations`
  543. 2002-09-19 Gonzalo Paniagua Javier <[email protected]>
  544. * XmlCustomFormatter.cs: finished.
  545. * XmlSerializationReader.cs: implemented some more methods.
  546. 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
  547. * XmlSerializationReader.cs: implemented a few methods.
  548. * XmlAnyElementAttribute.cs:
  549. * XmlArrayAttribute.cs:
  550. * XmlChoiceIdentifierAttribute.cs:
  551. * XmlElementAttribute.cs:
  552. * XmlMemberMapping.cs:
  553. * XmlMembersMapping.cs: class status based fixes.
  554. 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
  555. * CodeIdentifiers.cs:
  556. * XmlSchemaExporter.cs:
  557. * XmlSchemaImporter.cs:
  558. * XmlSchemas.cs:
  559. * XmlSerializationWriteCallback.cs:
  560. * XmlSerializationWriter.cs:
  561. * XmlSerializer.cs:
  562. * XmlSerializerNamespaces.cs: some class status based fixed and
  563. implemented a couple of methods.
  564. * SoapSchemaExporter.cs: stubbed out.
  565. 2002-08-24 Tim Coleman <[email protected]>
  566. * SoapCodeExporter.cs:
  567. Fix return value of ExportTypeMapping.
  568. * XmlCustomFormatter.cs:
  569. Change methods to be internal instead of public.
  570. * XmlSerializationWriter.cs:
  571. Modify GetPrimitiveTypeName to build on linux.
  572. Modify GetQualifiedName to return an incrementing prefix
  573. instead of the same one all the time (still need to manage
  574. conflicts)
  575. Modify WriteElementString to only do special stuff is XsiType
  576. is not defined.
  577. Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
  578. an XmlQualifiedName.
  579. 2002-08-22 Tim Coleman <[email protected]>
  580. * XmlSerializationReader.cs:
  581. Some implementation
  582. * XmlSerializationWriter.cs:
  583. More implementation
  584. * XmlCustomFormatter.cs:
  585. Implemented this class.
  586. 2002-08-20 Tim Coleman <[email protected]>
  587. * XmlSerializationWriter.cs:
  588. Some implementation.
  589. 2002-08-19 Tim Coleman <[email protected]>
  590. * XmlSerializer.cs:
  591. New stubs added.
  592. * XmlSerializationWriter.cs:
  593. New stubs added.
  594. 2002-08-14 Tim Coleman <[email protected]>
  595. * XmlSerializer.cs:
  596. More reformatting of source code so I can
  597. better understand what it does.
  598. 2002-08-06 Tim Coleman <[email protected]>
  599. * XmlSerializer.cs:
  600. Some reformatting of code for readability.
  601. Modify to correctly serialize ICollection objects
  602. such as the BindingCollection of a ServiceDescription
  603. for example.
  604. 2002-08-03 Tim Coleman <[email protected]>
  605. * XmlSerializer.cs:
  606. Changed Implements() to check based on name rather
  607. than FullName. FullName was never working correctly.
  608. 2002-07-26 Tim Coleman <[email protected]>
  609. * XmlSerializer.cs:
  610. The constructor now looks for an XmlRootAttribute attribute
  611. if one is not passed in. Various changes to make it emit
  612. proper XML, such as handling an element without a namespace
  613. prefix, and using WriteEndDocument where it should be.
  614. 2002-07-24 Tim Coleman <[email protected]>
  615. * CodeIdentifier.cs:
  616. * IXmlSerializable.cs:
  617. * XmlSerializationCollectionFixupCallback.cs:
  618. * XmlSerializationFixupCallback.cs:
  619. * XmlSerializationReadCallback.cs:
  620. * XmlSerializationReader.cs:
  621. * XmlSerializationWriteCallback.cs:
  622. Add new classes.
  623. * XmlSchemas.cs
  624. * CodeIdentifiers.cs:
  625. Implement some of these classes
  626. * XmlCodeExporter.cs:
  627. Fix return type of a function
  628. 2002-07-24 Tim Coleman <[email protected]>
  629. * SoapReflectionImporter.cs:
  630. New class added to build
  631. System.Web.Services.Description.ServiceDescription.cs
  632. 2002-07-22 Tim Coleman <[email protected]>
  633. * CodeIdentifiers.cs:
  634. * SoapCodeExporter.cs:
  635. * SoapSchemaExporter.cs:
  636. * XmlCodeExporter.cs:
  637. * XmlMemberMapping.cs:
  638. * XmlMembersMapping.cs:
  639. * XmlReflectionImporter.cs:
  640. * XmlReflectionMember.cs:
  641. * XmlSchemaExporter.cs:
  642. * XmlSchemaImporter.cs:
  643. * XmlSchemas.cs:
  644. New stubbs added to aid in the linux build of
  645. System.Web.Services.
  646. 2002-07-05 Ajay kumar Dwivedi <[email protected]>
  647. * XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
  648. * XmlSerializerNamespaces: Reverted to use of a single Hashtable.
  649. 2002-07-02 Ajay kumar Dwivedi <[email protected]>
  650. * XmlSeriailizer: Updated Serialize() method.
  651. 2002-06-27 Ajay kumar Dwivedi <[email protected]>
  652. * XmlSerializer: Serialize() method Partially Implemented.
  653. 2002-06-20 Ajay kumar Dwivedi <[email protected]>
  654. * Soap & XmlOverrides: Implemented using TypeMember as key with
  655. suggestions from Rafael.