* 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
of XmlInclude attributes needed for the service class.
IsMapExported: Removed check for object type, since it can now be exported.
SetMapExported: Use the type name as key, since different importers may
be used to create a map for the same type.
GenerateClassInclude: Updated signature.
* SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
GenerateClassInclude(): Updated signature.
* SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
Implemented IncludeTypes.
* XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
GenerateClassInclude(): Updated signature.
* XmlMemberMapping.cs: Added missing property.
* XmlReflectionImporter.cs: GetReflectionMembers must be private.
Implemented IncludeTypes().
* XmlSchemaExporter.cs: Added support for exporting typeof(object).
* XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
Now, it does a regular import and then assign the required base class to
the imported map. In this way it is possible to assign a base type for a
map that was previously imported without a base type.
* XmlTypeMapping.cs: Added internal method SetRoot().
svn path=/trunk/mcs/; revision=23510
Those are basically methods to add custom attributes to element and
attribute members.
* SoapCodeExporter.cs: Track changes in MapCodeGenerator.
* XmlCodeExporter.cs: Better support for custom attribute generation for
method parameters.
* XmlCustomFormatter.cs: Added null check.
* XmlSchemaImporter.cs: do not set IsOptionalValueType property to
attributes that are required.
* XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
as attributes.
svn path=/trunk/mcs/; revision=23131
* TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
string, not string[].
* XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
for array parameters. In general, improved generation of schema Form
property.
* XmlMemberMapping.cs: Added Form property.
* XmlReflectionImporter.cs: Types that inherit from other types cannot be
simple types. Added a check for this.
* XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
Form. The key used to determine if a map has been already generated must
include the XmlType, since there can be two xml types with the same CLR
type and namespace (for example, they may differ in the Form property).
* XmlSchemaImporter.cs: When getting the TypeData for a schema element,
also return the corresponding map. There can be two maps that have the
same TypeData, so given a TypeData is not always possible to get the
correct corresponding map (for example two arrays that only differ in the
Form of the item).
* XmlTypeMapping.cs: Added method to set if a map can represent a simple
type or not.
svn path=/trunk/mcs/; revision=22968
parameter of type enum.
* XmlAttributeAttribute.cs: little fix.
* XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
for method parameters.
* XmlMemberMapping.cs: Improved support for members of type "any".
* XmlReflectionImporter.cs: Improved assignment of the attribute form.
If the namespace is explicitly specified, then the form should be
qualified. Also fixed issues with the namespace assigned to attributes.
This should fix bug #53384.
* XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
methods that return values of type "any". Changed the methods
AddSchemaArrayElement and AddSchemaElement, so instead of adding the
element, return it, and the caller must add it to the collection.
Other fixes in attribute generation.
* XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
generate the AnyType mapping from the type described in the schema.
Small fixes regarding IsMixed property of complex types (it means that
the type can contain text, so the XmlTextAttribute must be generated).
* XmlSerializationReaderInterpreter.cs: Reading of members by-order must
be only used in the bare+encoded format.
svn path=/trunk/mcs/; revision=22533
default namespace for members.
* XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
* XmlReflectionImporter.cs: Fixed the assignment of root and type
namespaces.
* XmlSchemaExporter.cs: Use type namespace instead of root namespace as
default namespace for members. In AddSchemaElement, if the element is
a root element never use a "ref" attribute.
* XmlSchemaImporter.cs: Fixed issue when importing root elements.
svn path=/trunk/mcs/; revision=22064
* XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
* XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
encoded array type. Added support for enums with [Flags].
In encoded format, unqualified types are schema types by default.
svn path=/trunk/mcs/; revision=21072
between XmlCodeExporter and SoapCodeExporter.
* SoapCodeExporter.cs: Implemented.
* XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
* XmlSerializationReaderInterpreter.cs: Fixed problem when reading
encoded bare parameter list.
* XmlTypeMapping.cs: Added method for getting member element by index.
svn path=/trunk/mcs/; revision=19069