ChangeLog 54 KB

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