ChangeLog 53 KB

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