ChangeLog 49 KB

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