70 Commits
Author SHA1 Message Date
Atsushi Eno 4990b4c47b First step to import referencesource System.Xml.
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.

Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.

There is one regression that rather needs to be fixed in Reflection.Emit.

Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
2015-03-02 11:36:38 +08:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Marcos Henrich 38d56909d9 Fixed XmlSerializer to handle attribute XmlSchemePrivider.IsAny.
XmlSerializer no longer outputs a root element with class name when the class has the attribute XmlSchemeProvider and IsAny is true.
Fixes #11916
2014-08-18 11:42:05 +01:00
Rodrigo Kumpera 8752d92528 Kill MOONLIGHT from System.Xml. 2013-02-11 16:03:40 -05:00
Martin Baulig 7d170f400d Sync parameter names with .NET. 2012-06-03 04:02:28 +02:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Marek Safar c81c35a8c6 Fix more xml serializer tests 2012-05-31 13:23:55 +01:00
Sebastien Pouliot 4925054bb0 Make some S.X.S types compatible with the SL API (for SDK)
* XmlAnyElementAttributes.cs:
* XmlArrayItemAttributes.cs:
* XmlElementAttributes.cs:
	Under Silverlight API this implement IList only (does not
inherit from CollectionBase).

* XmlCustomFormatter.cs:
* XmlSerializationWriterInterpreter.cs:
	Use a Convert.ChangeType override that exists in SL API

* XmlReflectionImporter.cs: Provide an alternative for (missing in SL)
Enum.GetNames and select available (in SL) overloads for parsing and
formatting for enums

* XmlSerializationReader.cs: Fix ToEnum API to use IDictionary (in SL)
instead of Hashtable (even if the SL4 docs still states the later)

* XmlSerializationReaderInterpreter.cs:
* XmlTypeMapping.cs:
	Use the default (identical to nonPublic being false) when using
	Activator.CreateInstance under SL

* XmlSerializationWriter.cs: Internally use a Queue<T> instead a a Queue
(not available in SL). Also Namespaces (ArrayList) is replaced by
XmlNamespaces (IList) in SL API.

* XmlSerializer.cs: Do not use environment variables in MOONLIGHT (like
the rest of MOBILE). Use Encoding.UTF8 instead of ENcoding.Default since
the later does not exist in SL.

* XmlSerializerImplementation.cs: SL version use IDictionary instead of
Hashtable for properties.

* XmlSerializerNamespaces.cs: Internally use a generic Dictionary
* instead
of a ListDictionary (which is not available in SL)
2011-05-06 08:40:41 -04:00
Atsushi Eno 8fe0d1c078 Prepare for new System.Xml.Serialization.dll build (moonlight sdk assembly). 2011-04-15 15:00:40 +09:00
Atsushi Eno 95aee05170 2010-03-08 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : namespaces argument could be null.
	  MS generated serializers often pass null here.


svn path=/trunk/mcs/; revision=153250
2010-03-08 12:42:52 +00:00
Atsushi Eno c470cdae3f 2008-07-10 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : more helpful error message.


svn path=/trunk/mcs/; revision=107645
2008-07-10 14:32:47 +00:00
Atsushi Eno 090a3ab56b 2007-09-27 Atsushi Enomoto <[email protected]>
* XmlMapping.cs : added XsdElementName.
	* XmlSerializationWriter.cs : some more implementation.


svn path=/trunk/mcs/; revision=86507
2007-09-27 15:36:14 +00:00
Konstantin Triger 1024996147 do not output xml declaration while serializing XmlDocument
svn path=/trunk/mcs/; revision=82929
2007-07-29 11:53:24 +00:00
Adar Wesley bb05ca1050 2007-05-14 Adar Wesley <[email protected]>
* XmlSchemaExporter.cs: added missing overload for method ExportAnyType.

        * XmlSchemas.cs: added missing methods Add, AddReference, Contains,
        GetSchemas.

        * XmlSerializationReader.cs: added missing method AddReaderCount.

        * XmlSerializationWriter.cs: added missing overload WriteStartElement.

        * XmlSerializer.cs: added missing overload Serialize.


svn path=/trunk/mcs/; revision=77340
2007-05-14 11:48:15 +00:00
Atsushi Eno 538b940300 2007-02-07 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : WriteTypedPrimitive() does not support
	  XmlNode arrays.
	* XmlSerializationWriterInterpreter.cs,
	  SerializationCodeGenerator.cs : so they have to be handled here.

	* XmlSerializerTests.cs : added some XmlNode array/list tests.
	* XmlSerializationWriterTests.cs : removed more NotWorking. Added
	  WriteTypedPrimitive() error test for XmlNode.


svn path=/trunk/mcs/; revision=72448
2007-02-07 18:47:55 +00:00
Atsushi Eno 1552791781 2007-02-07 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : WriteTypedPrimitive() infers the type
	  when the name is null (almost no need to do this, but it is easier
	  to remove NotWorking from extraneous tests and let them hush than
	  removing them).

	* XmlSerializationWriterTests.cs : removed some NotWorking.


svn path=/trunk/mcs/; revision=72436
2007-02-07 17:11:43 +00:00
Atsushi Eno 0544130e97 2007-02-07 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : callbacks could be kept null.


svn path=/trunk/mcs/; revision=72434
2007-02-07 16:51:46 +00:00
Atsushi Eno 5de22fa983 2006-04-28 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : fix cosmetic typo (bug #78228).


svn path=/trunk/mcs/; revision=60028
2006-04-28 06:58:11 +00:00
Gert Driesen fe34bc872c * XmlSerializationWriterTests.cs: Use Assert instead of deprecated
Assertion class. Added tests for FromEnum, WriteXsiType, 
WriteTypedPrimitive and WritePotentiallyReferencingElement. Changed
accessibility of Reset and Content on XmlSerializationWriterTester
and added public Execute methods for WritePotentiallyReferencingElement
and WriteTypedPrimitive, to allow this class to be useful for tests
that have effect on the prefix for other tests.
* XmlSerializationReaderTests.cs: Added tests for ToEnum.
* System.Xml_test.dll.Sources: Added XmlSerializationReaderTests.cs.
* XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
CreateInvalidEnumValueException. Set eol-style to native.
* XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
enum for which string value must be created. Set eol-style to native.
Modified FromEnum to behave more like MSFT's implementation:
- treat value as bit field.
- no longer return empty string if the value matches an id for which there's 
no corresponding name.
- if one of the ids has value 0 and there's a match for the enum value
(with a zero length XML name) or the enum value is 0, then return the 
corresponding XML for the id with value 0.
- in 2.0 profile, throw InvalidOperationException if no match is found
for (part of) the enum value.
Modifies ToEnum to match the MSFT implementation (as described in
.NET 2.0 SDK):
- Expect hashtable containing enum names as key, and corresponding
integral numbers as value.
- Do not report exception for whitespace-only value.
- Support space (MS docs are not clear about this) delimited list 
of names.
- typeName is only used to construct exception message.

svn path=/trunk/mcs/; revision=56700
2006-02-09 13:30:02 +00:00
Lluis Sanchez fdc236d965 2005-09-21 Lluis Sanchez Gual <[email protected]>
* XmlSerializationWriter.cs: Also internally serialize
	arrays of object (see previous change).


svn path=/trunk/mcs/; revision=50375
2005-09-21 14:07:20 +00:00
Lluis Sanchez 86a817047b 2005-09-21 Lluis Sanchez Gual <[email protected]>
* XmlSerializationWriter.cs: Properly serialize arrays
	of primitive types when not explicitely specified in
	a container class. Based on a patch by Konstantin Triger.
	Fixes bug #75986. 


svn path=/trunk/mcs/; revision=50371
2005-09-21 12:55:58 +00:00
Lluis Sanchez ce518937f0 Reverting invalid patch.
svn path=/trunk/mcs/; revision=42993
2005-04-14 10:46:13 +00:00
Andrew Skiba b89b895ffd Call XmlConvert.EncodeLocalName where needed
svn path=/trunk/mcs/; revision=42986
2005-04-14 06:41:10 +00:00
Lluis Sanchez a3fc0d1cd0 2005-03-29 Lluis Sanchez Gual <[email protected]>
* XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
	This fixes bug #73901 and should fix #70384.
	* XmlSerializationReader.cs: When reading an object element, return
	an Object instance if the element has no children. This fixes bug #73974.
	* XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
	type (it is written as an element with those nodes as children). 


svn path=/trunk/mcs/; revision=42328
2005-03-29 11:41:57 +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 4564ef55fd 2005-01-12 Lluis Sanchez Gual <[email protected]>
* XmlTypeMapElementInfo.cs: Added new IndexOfElement method.
	* XmlSchemaImporter.cs: When importing a base type of a complex type,
	make sure that the base class is always imported as a class and not
	as an array. If it has been imported as array, import it again.
	This fixes bug #70839. Other minor fixes as well.
	* XmlSerializationWriter.cs: Fixed warning.


svn path=/trunk/mcs/; revision=38750
2005-01-12 00:55:05 +00:00
Atsushi Eno db97ee020e 2004-10-19 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : When namespace is an empty string,
	  XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
	  such case.

svn path=/trunk/mcs/; revision=35146
2004-10-19 22:10:37 +00:00
Lluis Sanchez 3a465797dc * MapCodeGenerator.cs: When the Object type is exported, export all
derived maps. This was done in IncludeMetadata, but this method is
	  not called by the xsd tool.
	* XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
	  attribute for primitive types and arrays.
	* XmlSchemaImporter.cs: Only export all object-derived maps if the
	  Object type is explicitly referenced by an element.
	* XmlSerializationWriter.cs: Minor fix.

svn path=/trunk/mcs/; revision=34573
2004-09-30 20:56:52 +00:00
Lluis Sanchez 5221e53fda * CodeExporter.cs: Added private constructor.
* CodeGenerationOptions.cs: Set the correct enum values.
	* CodeIdentifier.cs: Added private constructor.
	* SchemaImporter.cs: Added internal constructor.
	* XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
	* XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
	* XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
	  XmlSerializerVersionAttribute.cs: Set correct attribute usage.
	* XmlSerializationReader.cs: Added missing setter for DecodeName.

svn path=/trunk/mcs/; revision=30970
2004-07-09 23:19:41 +00:00
Lluis Sanchez c397230784 * CodeIdentifier.cs: Removed constructor for NET_2_0.
* SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
	  XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
	  XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
	  XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
	  XmlSerializerNamespaces.cs: Added 2.0 stubs.
	* XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
	* IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
	  ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
	  SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
	  XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
	  XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
	  XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.

svn path=/trunk/mcs/; revision=30757
2004-07-05 18:12:19 +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
Gert Driesen 1c052d21b8 * XmlSerializationWriter.cs: changed signature of protected method
FromByteArrayBase64 to match MS.NET

svn path=/trunk/mcs/; revision=29527
2004-06-14 17:00:12 +00:00
Gert Driesen 7329ab8e6b * XmlSerializationReader.cs: added missing protected members
to fix API compatibility with MS.NET
* XmlSerializationWriter.cs: added missing protected members
to fix API compatibility with MS.NET

svn path=/trunk/mcs/; revision=28770
2004-06-03 16:37:47 +00:00
Lluis Sanchez 30314b972c * XmlSerializationWriter.cs: Implemented some missing methods.
In .NET 1.0, encoded null elements use the attribute null="1", while in
	  1.1 the attribute is nil="true".
	* XmlTypeMapping.cs: Little fix for nested classes.

svn path=/trunk/mcs/; revision=27279
2004-05-13 15:09:35 +00:00
Atsushi Eno 622f40ad6d 2004-05-05 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : It do not have to handle schema
	  namespace as special one.

svn path=/trunk/mcs/; revision=26736
2004-05-05 04:28:54 +00:00
Lluis Sanchez ef8f047dbe * TypeTranslator.cs, XmlCustomFormatter.cs: Removed map from Uri to anyUri,
not present in MS.NET.
	* XmlSerializationWriter.cs: Improved error message.

svn path=/trunk/mcs/; revision=25465
2004-04-14 11:33:19 +00:00
David Sheldon 9c885b9674 2004-03-13 David Sheldon <[email protected]>
* XmlSerializationWriter.cs: Implement WriteElementStringRaw with a
   byte [].

svn path=/trunk/mcs/; revision=23979
2004-03-13 14:23:15 +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
Lluis Sanchez 4f742ec7ce * XmlSerializationWriter.cs: When writing the root element, use a prefix
if the namespace of the element is defined in the list of namespaces
	  provided to the XmlSerializer. This fixes bug #54427.

svn path=/trunk/mcs/; revision=23163
2004-02-17 11:15:50 +00:00
Lluis Sanchez dd0ee66e03 * SoapReflectionImporter.cs: Types included with SoapInclude don't need
to be derived types of the one that has the attribute.
	* XmlReflectionImporter.cs: Recursively register the derived maps of a given
	  map to the parent map. This fixes #53246.
	* XmlSerializationWriter.cs: Some fixes regarding empty namespaces.

svn path=/trunk/mcs/; revision=22457
2004-01-24 02:01:59 +00:00
Lluis Sanchez 5100b15cfe * XmlSchemaExporter.cs: AddSchemaElement, use XmlTypeMapElementInfo.IsPrimitive
to check if a type is primitive, instead of Type.IsPrimitive, since CLR
	  primitive types are not the same as XML primitive types. Patch proposed
	  by Mordechai Taitelman. This fixes bug #52228.
	* XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.

svn path=/trunk/mcs/; revision=21244
2003-12-16 15:56:53 +00:00
Lluis Sanchez 247e8203ac * XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs:
Removed several TODOs already done.

svn path=/trunk/mcs/; revision=19893
2003-11-12 15:58:12 +00:00
Lluis Sanchez f9d7ff25d2 * ReflectionHelper.cs: In CheckSerializableType() check that the type
is public.
	* XmlSerializationWriter.cs: Added check for circular references.
	  This fixes bug #49879.

svn path=/trunk/mcs/; revision=19239
2003-10-20 23:10:14 +00:00
Lluis Sanchez a9a47195a8 * XmlSerializer.cs, XmlSerializationWriter.cs: Fixed bug #49353
(XmlSerializer.Serialize() handles namespace parameter incorrectly)

svn path=/trunk/mcs/; revision=18755
2003-10-08 16:38:04 +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 d19e51679d * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
* XmlSchemas.cs: Find method: make sure the returned object belongs to
	  the requested type.
	* XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
	  Add null checks for eventSource.
	* XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
	* XmlSerializationWriter.cs: In Initialize method, initialize the provided
	  namespece declarations. Virtual method WriteObject not needed any more.
	  In WriteStartElement, write the provided namespaces.
	* XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
	  Added GetTypeMap method, that returns the map for a given type. Added some
	  virtual methods, so writer behavior can be extended at several places by
	  derived classes.
	* XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
	  methods CreateReader and CreateWriter are not called unless no type or
	  type mapping was provided in the constructor.

svn path=/trunk/mcs/; revision=17690
2003-08-28 12:13:06 +00:00
Lluis Sanchez d77ee8ff9f * CodeIdentifier.cs: Fixed MakeValid method.
* TypeTranslator.cs: Added support for more primitive types. Added
	  GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
	  maps by default.
	* XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
	  are different from the type ns and name.
	  Generate class and field comments.
	  Fixed default attribute generation. In elements with ref attribute, it has to be
	  generated in the referred attribute.
	* XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
	  Added suport for text nodes in members of type "any".
	* XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
	  content.
	* XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
	* XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
	  that have already been declared.
	  WriteStartElement(): elements from schema namespace are always written with ns prefix.
	* XmlTypeMapMember.cs: Added documentation property.
	* XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
	  represents a simple type.

svn path=/trunk/mcs/; revision=17175
2003-08-07 23:15:36 +00:00
Lluis Sanchez 4de0bcd2ae * XmlSchemaImporter.cs: Implemented ImportTypeMapping and all needed parsing
stuff.
	* SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
	* TypeData.cs: Added property that returns a TypeData that represents an array of
	  the given TypeData.
	* TypeTranslator.cs: Added GetArrayName() method.
	  Added TypeDatas for missing primitive types.
	* XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
	  XmlRootAttribute. Added the namespace to all attributes being generated.
	  Other fixes in the generation of code.
	* XmlReflectionImporter: store the namespace of the type in the maps.
	* XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
	  class can generate text. Do not export inherited attributes of a class.
	  Use the new root namespace stored in the map when generating the root element.
	* XmlSerializationWriter: Always write a prefix when writing a qname, even if the
	  namespace is the default namespace.
	* XmlSerializationWriterInterpreter.cs: fixed missing "else".
	* XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
	  namespace instead of the map namespace (which can be different if the type
	  has a XmlRoot element).
	* XmlTypeMapMember.cs: Set the default value of the DefaultValue property
	  to System.DBNull.Value.
	* XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
	  the collection if it has not yet been created.
	* XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
	  of the type. It may be different from the namespace of the map if the type
	  has a XmlRoot element. Also added IsSimpleType property.
	  In ClassMap, added AllMembers property.

svn path=/trunk/mcs/; revision=17075
2003-08-05 17:22:50 +00:00
Lluis Sanchez 8432c1b289 * SoapReflectionImporter.cs: Set the BaseMap property of map. Small fix.
* TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
	* XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
	* XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
	* XmlSchemaExporter.cs: Implemented.
	* XmlSchemas.cs: Support schemas with TargetNamespace set to null.
	* XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
	  GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
	* XmlSerializationWriterInterpreter.cs: Fixed management of default values.
	  GetStringValue() returns null if the value is null, instead of empty string.
	  (attributes with null values are not written).
	* XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
	* XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
	  DataType value can is now in TypeData.
	* XmlTypeMapMemberElement.cs: Small fix.
	* XmlTypeMapping.cs: Added FindMember method and BaseMap property.

svn path=/trunk/mcs/; revision=16235
2003-07-14 18:43:11 +00:00