ChangeLog 57 KB

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