ChangeLog 57 KB

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