* XmlSchemaDatatype.cs : Removed FromName(localName) that cannot
handle xdt:* types.
* XmlSchemaType.cs : added internal GetBuiltInType() methods that
mix GetBuiltInSimpleType() and GetBuiltInComplexType().
svn path=/trunk/mcs/; revision=33009
+2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlSchemaDatatype.cs : Removed FromName(localName) that cannot
+ handle xdt:* types.
+ * XmlSchemaType.cs : added internal GetBuiltInType() methods that
+ mix GetBuiltInSimpleType() and GetBuiltInComplexType().
+
2004-08-25 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaSimpleType.cs : Fill list types such as xs:IDREFS.
return FromName (qname.Name, qname.Namespace);\r
}\r
\r
- internal static XmlSchemaDatatype FromName (string localName)\r
- {\r
- return FromName (localName, XmlSchema.Namespace);\r
- }\r
-\r
internal static XmlSchemaDatatype FromName (string localName, string ns)\r
{\r
switch (ns) {\r
#endif\r
#endregion\r
\r
+ internal static XmlSchemaType GetBuiltInType (XmlQualifiedName qualifiedName)\r
+ {\r
+ XmlSchemaType t = GetBuiltInSimpleType (qualifiedName);\r
+ if (t == null)\r
+ t = GetBuiltInComplexType (qualifiedName);\r
+ return t;\r
+ }\r
+\r
+ internal static XmlSchemaType GetBuiltInType (XmlTypeCode typecode)\r
+ {\r
+ if (typecode == XmlTypeCode.Item)\r
+ return XmlSchemaComplexType.AnyType;\r
+ return GetBuiltInSimpleType (typecode);\r
+ }\r
+\r
#if NET_2_0\r
public static XmlSchemaComplexType GetBuiltInComplexType (XmlQualifiedName qualifiedName)\r
#else\r