ChangeLog 54 KB

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