ChangeLog 59 KB

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