items = new XmlSchemaObjectCollection(this);\r
schemaTypes = new XmlSchemaObjectTable();\r
}\r
- [XmlIgnore]\r
- public XmlSchemaObjectTable AttributeGroups \r
- {\r
- get{ return attributeGroups; }\r
- }\r
- [XmlIgnore]\r
- public XmlSchemaObjectTable Groups \r
- {\r
- get{ return groups; }\r
- }\r
+ \r
[XmlElement("annotation",typeof(XmlSchemaAnnotation),Namespace="http://www.w3.org/2001/XMLSchema")]\r
[XmlElement("simpleType",typeof(XmlSchemaSimpleType),Namespace="http://www.w3.org/2001/XMLSchema")]\r
[XmlElement("complexType",typeof(XmlSchemaComplexType),Namespace="http://www.w3.org/2001/XMLSchema")]\r
[XmlElement("group",typeof(XmlSchemaGroup),Namespace="http://www.w3.org/2001/XMLSchema")]\r
- //NOTE: AttributeGroup and not AttributeGroupRef\r
+ //NOTE: AttributeGroup and not AttributeGroupRef\r
[XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroup),Namespace="http://www.w3.org/2001/XMLSchema")]\r
public XmlSchemaObjectCollection Items \r
{\r
get{ return items; }\r
}\r
+\r
+ [XmlIgnore]\r
+ public XmlSchemaObjectTable AttributeGroups \r
+ {\r
+ get{ return attributeGroups; }\r
+ }\r
+ \r
[XmlIgnore]\r
public XmlSchemaObjectTable SchemaTypes \r
{\r
get{ return schemaTypes; }\r
}\r
+\r
+ [XmlIgnore]\r
+ public XmlSchemaObjectTable Groups \r
+ {\r
+ get{ return groups; }\r
+ }\r
//<redefine \r
// id = ID \r
// schemaLocation = anyURI \r
{\r
redefine.SchemaLocation = reader.Value;\r
}\r
- else if(reader.NamespaceURI == "" || reader.NamespaceURI == XmlSchema.Namespace)\r
+ else if((reader.NamespaceURI == "" && reader.Name != "xmlns") || reader.NamespaceURI == XmlSchema.Namespace)\r
{\r
error(h,reader.Name + " is not a valid attribute for redefine",null);\r
}\r
else\r
{\r
- //TODO: Add to Unhandled attributes\r
+ XmlSchemaUtil.ReadUnhandledAttribute(reader,redefine);\r
}\r
}\r
\r