Commit Graph
43 Commits
Author SHA1 Message Date
Lluis Sanchez cc62d11431 2006-06-07 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapMember.cs: Added GlobalIndex property.
	* XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
	  property.
	* SerializationCodeGenerator.cs:
	* XmlSerializationWriterInterpreter.cs:
	* XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
	  Index to get/set the values from the input array, since some Index
	  values are shared between attribute and element members. Fixes
	  bug #78562.


svn path=/trunk/mcs/; revision=61531
2006-06-07 14:33:48 +00:00
Atsushi Eno 61ab44349c 2006-05-30 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializerReaderInterpreter.cs : handle CDATA section as text
	  node. Fixed bug #78536.

	* XmlSerializerTests.cs : added tailored version of bug #78536 test.


svn path=/trunk/mcs/; revision=61294
2006-05-31 01:38:24 +00:00
Lluis Sanchez 0c92696ca1 2006-05-03 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Allow generating serializer for
	  reading an XmlElement or XmlDocument as root element.
	  Properly generate jagged array creation.


svn path=/trunk/mcs/; revision=60207
2006-05-03 09:24:04 +00:00
Gert Driesen 2bfaa4cc5c * DeserializeTests.cs: Improved TestDeserialize_Enum test for
bug #78204.
* SerializationCodeGenerator.cs: For flag enums, we should split on all
whitespace chars instead of only on blanks.
* XmlTypeMapping.cs: Same. Added ToEnum method for converting from
constant name(s) to integral enum value.

svn path=/trunk/mcs/; revision=59918
2006-04-26 09:56:45 +00:00
Gert Driesen 9c4805562a * DeserializeTests.cs: Enabled tests for bug #77530.
* XmlSerializerTests.cs: Enabled tests for bug #77530.
* XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
serialization of integral value to enum constant name, and made sure
the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
throw InvalidOperationException if no matching enum constant exists.
In EnumMap ctor, initialize arrays holding XML names, enum names and
enum values.
* XmlSerializationReaderInterpreter.cs: Pass full type name to
EnumMapping.GetEnumName for construction of exception message.
* XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
and InvalidCastException in another InvalidOperationException to match
MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
and the inner exception for a TargetInvocationException in an
InvalidOperationException to match MSFT.
* SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
XmlCustomFormatter.FromEnum in order to also support serialization
integral value to enum constant name. In 2.0 profile, throw
InvalidOperationException if numeric value cannot be serialized into
an enum constant value. In GenerateSingleEnumValue, no longer attempt
to parse unknown constant value but instead report it as
InvalidOperationException. Use string.Length instead of "" comparison
to check whether a string is empty. Fixed compiler warnings in
generated code (possible empty statement).
* XmlSerializationWriterInterpreter.cs: Pass full type name to
EnumMap.GetXmlName.
* XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
to allow it to be used in exception messag* XmlReflectionImporter.cs.
Use FieldInfo instead of MemberInfo for enum fields. Use IsDefined 
instead of GetCustomAttributes for checking if a certain attribute
 is defined. Use integral value of enum constant in EnumMapMember ctor.
* SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
enum fields. Use IsDefined instead of GetCustomAttributes for checking
if a certain attribute is defined. Use integral value of enum constant
in EnumMapMember ctor.
es.

svn path=/trunk/mcs/; revision=57761
2006-03-10 04:37:54 +00:00
Gert Driesen bb7e485ee3 * SerializationCodeGenerator.cs: Omit return statement in ReadObject method if
GenerateReadListElement returns null. Fixes bug #77588.

svn path=/trunk/mcs/; revision=57144
2006-02-22 06:47:06 +00:00
Lluis Sanchez eee1751b77 2005-12-07 Lluis Sanchez Gual <[email protected]>
* XmlSerializationReaderInterpreter.cs: When deserializing a "flat"
	collection, don't create a new collection if the property already has a 
	collection instance.
	* SerializationCodeGenerator.cs: same as above. Also return an empty
	string for flag enum default values.


svn path=/trunk/mcs/; revision=54043
2005-12-07 15:42:54 +00:00
Lluis Sanchez 6074454762 2005-12-05 Lluis Sanchez Gual <[email protected]>
* XmlSerializerTestClasses.cs:
	* DeserializeTests.cs: Added tests for bug #76808 and related behavior.

2005-12-05  Lluis Sanchez Gual  <[email protected]>

	* XmlSerializationReaderInterpreter.cs:
	* SerializationCodeGenerator.cs: When deserializing a collection,
	don't create a new collection if the property already has a 
	collection instance. This does not apply to arrays. Changed how nullabe
	array properties are set. Setting IsNullable=false to the property means
	that it won't be set if the read array is null (so, if the property
	already has a value, it will be kept).
	Another change is that can't never be null (only arrays can).


svn path=/trunk/mcs/; revision=53949
2005-12-05 20:44:42 +00:00
Lluis Sanchez 814b15d6b0 2005-10-17 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: 
	* XmlSerializationWriterInterpreter.cs: Arrays of XmlNode don't
	need to be all XmlElments. Fix by Atsushi for bug #76288.


svn path=/trunk/mcs/; revision=51795
2005-10-17 10:39:40 +00:00
Lluis Sanchez 05ddc568ab 2005-09-26 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added ChoiceMember to ListMap.
	In ListMap.FindElement, take into account the ChoiceMember
	if set.
	* SerializationCodeGenerator.cs:
	* XmlSerializationReaderInterpreter.cs: For lists with a choice
	member, fill the member with the corresponding enum values.
	* XmlReflectionImporter.cs: Properly reflect the choice member
	when applied to a list.
	* XmlSerializationWriterInterpreter.cs: Track class changes.
	* XmlTypeMapMemberElement.cs: Added ChoiceTypeData property.
	All this fixes bug #76203.


svn path=/trunk/mcs/; revision=50779
2005-09-26 15:40:46 +00:00
Lluis Sanchez 2edbc72ff5 2005-08-05 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added ListMembers property that returns
	members which are collections.
	* SerializationCodeGenerator.cs:
	* XmlSerializationReaderInterpreter.cs: Initialize collection
	members to an empty collection by default. Fixes bug #75662.


svn path=/trunk/mcs/; revision=48037
2005-08-05 11:43:30 +00:00
Lluis Sanchez cd403b28dc 2005-07-14 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: In the generated serializer always
	use the Object equality operator when comparing objects to serialize
	to null, since those objects may have the equality operator
	overloaded. This fixes bug #75543.


svn path=/trunk/mcs/; revision=47296
2005-07-14 09:38:31 +00:00
Lluis Sanchez d8dc07c3f5 2005-06-07 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: When reading members by order,
	call a MoveToContext after each member read. In the fixup method
	don't cast returned values if it is reading an object array.
	
	* XmlSchemaImporter.cs: In ImportDerivedTypeMapping, if the type
	being imported is a primitive type, create a wrapper class that
	inherits from the provided one. This fixes bug #68809.
	
	* XmlSerializationReader.cs: Properly report unreferenced objects.
	Created an overload of ReadTypedPrimitive that reports elements of
	unknown type. Implemented Referenced(). 


svn path=/trunk/mcs/; revision=45586
2005-06-07 16:55:01 +00:00
Lluis Sanchez e394f2ee4c 2005-04-12 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapping.cs: Added new XmlSerializableMapping class.
	* XmlSchemaExporter.cs: When exporting an IXmlSerializable type,
	export the schema that it defines. In ImportNamespace, removed
	check for default namespace, since it may be included from a non
	default namespace.
	* XmlReflectionImporter.cs: Create a special map for IXmlSerializable
	types. All this based on a patch by Andrew Skiba.
	
	* SerializationCodeGenerator.cs:
	* XmlMapping.cs:
	* XmlSerializationReaderInterpreter.cs:
	* SoapCodeExporter.cs:
	* XmlTypeMapMemberAttribute.cs:
	* XmlSerializationReader.cs:
	* XmlCodeExporter.cs: Fixed some warnings.

2005-04-10  Andrew Skiba  <[email protected]>

2005-04-03  Andrew Skiba  <[email protected]>

svn path=/trunk/mcs/; revision=42841
2005-04-12 16:34:24 +00:00
Lluis Sanchez e4bc62c60c 2005-03-30 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: 
	* XmlSerializationReaderInterpreter.cs: If the element being read is
	bound to a choice member, set the corresponding value.
	* XmlTypeMapMember.cs: Added helper SetValue method.
	* XmlTypeMapElementInfo.cs: Changed the type of ChoiceValue to Object,
	since now stores the enum value.
	* XmlReflectionImporter.cs: Properly import choice values.
	* XmlTypeMapMemberElement.cs: Added setter for the choice.


svn path=/trunk/mcs/; revision=42416
2005-03-31 08:38:38 +00:00
Gonzalo Paniagua Javier c30ed27de6 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
* SerializationCodeGenerator.cs: don't use _config if it has not been
	assigned.


svn path=/trunk/mcs/; revision=39115
2005-01-18 19:55:03 +00:00
Atsushi Eno 303719101a 2005-01-14 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  XmlSerializationWriterInterpreter.cs : exchanged attribute
	  serialization orders (XmlAnyAttribute <-> XmlNamespaceDeclarations).
	  xmlns attributes in XmlAnyAttribute are not written.



svn path=/trunk/mcs/; revision=38944
2005-01-14 16:47:43 +00:00
Atsushi Eno 566fcb9be5 2005-01-12 Atsushi Enomoto <[email protected]>
* SerializationCodeGeneratorConfiguration.cs,
	  SerializationCodeGenerator.cs : Added some generation configuration:
		<generateAsInternal>
			write custom reader/writer as internal classes.
		<noreader>, <nowriter>
			They make generation of reader and/or writer optional.
	* XmlSerializerNamespaces.cs :
	  Now it uses ListDictionary instead of Hashtable.
	* XmlSerializationWriter.cs : entries in XmlSerializerNamespaces are
	  written unless there is already the same prefix-ns mapping.



svn path=/trunk/mcs/; revision=38760
2005-01-12 04:33:28 +00:00
Lluis Sanchez 34bea03c3a 2004-12-09 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Yet another generation fix.


svn path=/trunk/mcs/; revision=37523
2004-12-09 21:05:31 +00:00
Lluis Sanchez e1614ad603 2004-12-09 Lluis Sanchez Gual <[email protected]>
* SerializationCodeGenerator.cs: Fixed generation of enum literals.


svn path=/trunk/mcs/; revision=37487
2004-12-09 13:57:10 +00:00
Lluis Sanchez 212bcb99fe 2004-11-24 Lluis Sanchez Gual <[email protected]>
* SerializationSource.cs: Made SerializationSource abstract, and
	renamed Equals to BaseEquals to avoid missing GetHashCode warning
	(it does not really make sense in this case).
	* XmlSchemaExporter.cs, SerializationCodeGenerator.cs,
	XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
	XmlSerializationReader.cs: Fixed warnings.


svn path=/trunk/mcs/; revision=36462
2004-11-24 09:52:05 +00:00
Lluis Sanchez 652840c106 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
when reading a primitive value in encoded format using
	  ReadReferencingElement, provide the type name and namespace
	  since the xsi type may not be present in the xml element. This
	  fixes bug #65929.

svn path=/trunk/mcs/; revision=34157
2004-09-21 09:59:17 +00:00
Lluis Sanchez d996305ce2 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
In CheckSerializableType, add the option of ignoring types with private
	  constructors. Some kind of lists can be deserialized
	  even if the constructor is private. See bug #61464.
	* SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
	  Before creating a list, check that it has a public constructor.
	* TypeData.cs: Added HasPublicConstructor property.

svn path=/trunk/mcs/; revision=33230
2004-09-02 16:03:15 +00:00
Lluis Sanchez 68a1f5925a * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
value list serialization.
	* XmlSchemaImporter.cs: Added some null checks.

svn path=/trunk/mcs/; revision=33163
2004-09-01 16:16:24 +00:00
Lluis Sanchez c5d8d4e2bd * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
When deserializing an encoded method response, assign to the return value
	  the first element of the message, whatever it is. The return type doesn't
	  need to be Object, it seems to be true for all return types.

svn path=/trunk/mcs/; revision=32813
2004-08-25 08:41:06 +00:00
Lluis Sanchez a8ccb82ef3 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
* ReflectionHelper.cs: New method for generating map keys.
	* SerializationCodeGenerator.cs: Added support for generating the serializer
	  contract class, needed for 2.0.
	* SerializationSource.cs: Use Type[] instead of ArrayList for storing
	  extra types.
	* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
	  as Type[]. Added check that makes sure that enums being serialized are
	  public.
	* XmlMapping.cs: Added internal GetKey method.
	* XmlSerializer.cs: Added support for IXmlSerializerImplementation.
	  Added first bits to support loading of serializers from pre-generated
	  assemblies.
	* XmlSerializerFactory.cs: Mostly implemeted.

svn path=/trunk/mcs/; revision=30867
2004-07-08 13:39:12 +00:00
Lluis Sanchez 9b8f2df735 * SerializationCodeGenerator.cs: Generate check that the object being
serialized has a known type. Little cast fix.
	* XmlCustomFormatter.cs: Little fix in Single conversion.

svn path=/trunk/mcs/; revision=30669
2004-07-02 13:59:56 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Atsushi Eno a5eaabf6f1 2004-06-18 Atsushi Enomoto <[email protected]>
* CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
	  SerializationCodeGenerator.cs, SerializationSource.cs,
	  TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
	  XmlSerializationReader.cs, XmlSerializationWriter.cs,
	  XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
	  : Globalization fixes.
	    In XmlCustomFormatter.GenerateToXmlString() time was not
	    generated correctly.
	    Replaced all CRLF XmlAttributeOverrides.cs into LF.

svn path=/trunk/mcs/; revision=29865
2004-06-18 09:50:34 +00:00
Lluis Sanchez aae87fab03 * MapCodeGenerator.cs, SoapCodeExporter.cs: Generate the same XmlInclude
attributes that MS.NET generates.
	* SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
	  same reader/writer.
	* XmlCodeExporter.cs: Added support for ignore flag in maps and members.
	* XmlReflectionImporter.cs: Changed GetReflectionMembers to match
	  MS.NET member ordering. Patch by David Taylor.
	* XmlSchemaImporter.cs: When generating a choice member, set the ignore
	  flag. The generated enum must also not be included in the schema.
	* XmlTypeMapMember.cs: Added ignore flag.
	* XmlTypeMapping.cs: The AttributeMembers property now returns the
	  attributes in the correct order.

svn path=/trunk/mcs/; revision=29172
2004-06-10 08:47:59 +00:00
Lluis Sanchez 9bf6263942 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
In encoded format, primitive types can be null. Read them using
	  ReadReferencingElement, that already checks for the null tag.

svn path=/trunk/mcs/; revision=28157
2004-05-26 13:41:23 +00:00
Lluis Sanchez 304353fc3f * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
When deserializing an encoded method response, if the return type of the
	  method is Object, assign to it the first element of the message, whatever
	  it is.
	* XmlSerializationReader.cs:
	* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
	  the imported member.
	* TypeTranslator.cs: Added method to safely get a primitive TypeData.
	* XmlSerializationReader.cs: Don't throw an exception when the CLR type for
	  a given xsi type is not found. Just read it as primitive type.
	* XmlTypeMapMember.cs: Added IsReturnValue property.
	* XmlTypeMapping.cs: Added ReturnMember property.
	* XmlSerializer.cs: Reference System.Data when compiling the serializer.

svn path=/trunk/mcs/; revision=26836
2004-05-06 15:08:58 +00:00
Lluis Sanchez fb9c1efbf0 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
When reading an object using the typeof(object) map, an emty xsi:type
	  means that it has to read the contents into an XmlNode[].
	* TypeData.cs: Return the correct full name for inner classes.
	* XmlSchemaImporter.cs: Improved detection of types that represent
	  "anyType", and must be mapped to XmlElement, XmlNode or Object.
	* XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
	  the correct namespace.
	  In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
	  not known.

svn path=/trunk/mcs/; revision=26761
2004-05-05 13:32:08 +00:00
Lluis Sanchez 55dc9d8dd2 * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
	  Support deserialization of members of type XmlDocument. This fixes #56169.

svn path=/trunk/mcs/; revision=24780
2004-03-30 11:14:36 +00:00
Lluis Sanchez ef6734e55d * SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
Use a special method to generate default values, since default enum values
	  will come as integers, so a special cast is needed.
	* XmlSerializationReaderInterpreter.cs,
	* SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
	  SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
	  SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
	  XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
	  XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
	  XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
	  XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
	  XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
	  of SerializationSource. It can't keep and use the XmlAttributeOverride
	  instances as key values, since those instances can be modified after the
	  xml map has been generated. Now, SerializationSource generates a unique
	  string hash from XmlAttributeOverride and uses it for comparisons.

svn path=/trunk/mcs/; revision=24553
2004-03-25 00:07:43 +00:00
Lluis Sanchez a303d9ab6f * SerializationCodeGenerator.cs: Several fixes: generate valid names for
WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
	  the adequate type. Set the default value of members that do have a default
	  value. Other minor fixes.
	* SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
	  from typeof(object) map, even those that have another base class.
	* XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
	  It must serialize the char as number, not as character.
	* XmlSerializationReaderInterpreter.cs: Set the default value of members
	  that do have a default value.
	* XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
	  of members that have a default value.

svn path=/trunk/mcs/; revision=24540
2004-03-24 19:30:12 +00:00
Lluis Sanchez c946a0cebc * CodeIdentifier.cs: Limit the length of identifiers.
* MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
	  Generate types using GetDomType, so if the type is an array, it creates
	  the correct combination of types.
	* SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
	  an enum, if the string is empty and the enum has [Flags], then return 0
	  as value. This fixes bug #55509.
	* XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
	  are not supported. Another check: a simple type cannot be enum if it does
	  not have any enum facet.
	  And another fix: use string as default type for attribtues.
	* XmlSchemas.cs: Fixed search for schema elements. An schema may import
	  other schemas. An imported schema would not be in the table, but its
	  elements (although from another namespace) would be in the schema that
	  imported it. So, we need know to check for every schema in the table.
	* XmlSerializer.cs: Added environment variable to help debugging code
	  generator output.

svn path=/trunk/mcs/; revision=23957
2004-03-12 15:57:13 +00:00
Lluis Sanchez 95d2d48bb3 * SerializationCodeGenerator.cs: Added support for generation of readers
and writers for several maps in a single class. Added support for
	  XmlMemberMapping. Fixed generation of serializers that use encoded format.
	* SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs,
	  SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs,
	  XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs,
	  XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs,
	  XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
	  XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
	  XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
	  Added InternalEquals method.
	* XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
	* SoapReflectionImporter.cs: Set SerializationSource to generated maps.
	* XmlCustomFormatter.cs: Fixed little bug.
	* XmlMapping.cs: Added Source property. This a global identifier of the map.
	* XmlReflectionImporter.cs: Set SerializationSource to generated maps.
	* XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
	  mapping members.
	* XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
	* XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
	  correctly used.
	* XmlSerializer.cs: Added support for generation of serializers.

svn path=/trunk/mcs/; revision=23392
2004-02-24 12:03:28 +00:00
Atsushi Eno 20072d0f17 2004-02-18 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs,
	  SerializationCodeGeneratorConfiguration.cs:
	  Added <namespaceImports> feature ("using XXX;" generation) support.

svn path=/trunk/mcs/; revision=23212
2004-02-18 14:50:48 +00:00
Lluis Sanchez 08bd331cba * SerializationCodeGenerator.cs, XmlReflectionImporter.cs: Added internal
option that allow serialization of private types.

svn path=/trunk/mcs/; revision=21356
2003-12-19 17:54:24 +00:00
Lluis Sanchez 0069f9df0d * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
Fixed handling of members with XmlTextAttribute that are arrays.
	* TypeData.cs: IsComplexType now returns true for XmlNode.
	* XmlSerializer.cs: Added check for null mapping in FromMappings.
	* XmlTypeMapping.cs: Added helper method FindTextElement.

svn path=/trunk/mcs/; revision=18471
2003-10-01 15:11:03 +00:00
Lluis Sanchez 61080dc4f9 * SerializationCodeGenerator.cs: Minor fixes.
* SoapReflectionImporter.cs: More fixes.
	* SoapSchemaExporter.cs: implemented.
	* SoapSchemaImporter.cs: Initial implementation.
	* TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
	  and ParseArrayType
	* XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
	* XmlMemberMapping.cs: Minor fixes.
	* XmlMembersMapping.cs: added some convenient constructors.
	* XmlSchemaExporter.cs: Added support for encoded format.
	* XmlSchemaImporter.cs: Added support for encoded format.
	* XmlSerializationReader.cs: changed some string literals by constants.
	  Implemented ParseWsdlArrayType.
	* XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
	  custom attributes.
	* XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
	* XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
	  WriteAttribute to write custom attributes.
	* XmlSerializer.cs: added some namespace constants.
	* XmlTypeMapping.cs: added GetSchemaArrayName method.

svn path=/trunk/mcs/; revision=17856
2003-09-04 02:39:08 +00:00
Lluis Sanchez 1f9698d02a * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
* XmlTypeMapMemberElement.cs: Little fix.
	* XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
	* XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
	  methods.
	* SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
	  Added.

svn path=/trunk/mcs/; revision=17792
2003-09-01 14:13:23 +00:00