ChangeLog 69 KB

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