Commit Graph
17 Commits
Author SHA1 Message Date
Atsushi Eno d4545913a0 Now we can safely set eol-style:native.
svn path=/trunk/mcs/; revision=67665
2006-11-10 10:28:24 +00:00
Atsushi Eno 56e9bba3ea This namespace is a horrible nest of mixed line endings :-(
svn path=/trunk/mcs/; revision=67664
2006-11-10 10:27:11 +00:00
Atsushi Eno 6331ad5c79 2006-07-26 Atsushi Enomoto <[email protected]>
Refactoring compilation to make Compile() portable to
	XmlSchemaSet.Compile() and fix multi-schema bugs (not done yet)

	* XmlSchema.cs : 
	  Removed "root schema" concept from Compile().
	  Since nested inclusion does not result in an error, the role of
	  schemaLocationStack is identical to handledUris, thus removed it.
	  The handledUris does not have to be a field.
	  Moved NamedIdentities and IDCollections to XmlSchemaSet.
	  Renamed a Compile() which is called from XmlSchemaCollection and
	  XmlSchemaSet as CompileSubset(). Renamed private Compile() as
	  DoCompile().
	  public Compile() now internally creates a new XmlSchemaSet and
	  compiles the set.
	* XmlSchemaCollection.cs : now it hooks its schemaSet's validation
	  event handler and thus XmlSchemaSet does not need to check this
	  collection's event handler by itself.
	  XmlSchema.Compile() -> XmlSchema.CompileSubset().
	* XmlSchemaSet.cs :
	  Removed SchemaCollection which became unneccessary.
	  Added NamedIdentities and IDCollection.
	  XmlSchema.Compile() -> XmlSchema.CompileSubset().
	* XmlSchemaAttributeGroupRef.cs, XmlSchemaXPath.cs
	  XmlSchemaSimpleTypeList.cs, XmlSchemaComplexContentRestriction.cs,
	  XmlSchemaGroup.cs, XmlSchemaComplexContentExtension.cs,
	  XmlSchemaSequence.cs, XmlSchemaSimpleContentRestriction.cs,
	  XmlSchemaSimpleContentExtension.cs, XmlSchemaAny.cs,
	  XmlSchemaElement.cs, XmlSchemaNotation.cs, XmlSchemaAll.cs,
	  XmlSchemaComplexType.cs, XmlSchemaAnnotation.cs,
	  XmlSchemaAttributeGroup.cs, XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleContent.cs, XmlSchemaGroupRef.cs,
	  XmlSchemaChoice.cs, XmlSchemaSimpleType.cs,
	  XmlSchemaIdentityConstraint.cs, XmlSchemaSimpleTypeUnion.cs,
	  XmlSchemaAnyAttribute.cs, XmlSchemaComplexContent.cs,
	  XmlSchemaAttribute.cs, XmlSchemaObject.cs :
	  removed XmlSchemaObject.IsCompiled(). Check compilation state by
	  comparing compilation ID directly.

	* XmlReader.cs :
	  For DTD validator, call to SetSchemas() makes no sense.
	* XmlValidatingReader.cs : now it internally holds old
	  XmlSchemaCollection instead of new XmlSchemaSet, to make
	  XmlSchemaSet.SchemaCollection unneccessary.
	  Removed SetSchemas() since it is now extraneous because of the
	  XmlReaderChange above.


svn path=/trunk/mcs/; revision=62988
2006-07-26 10:13:56 +00:00
Gert Driesen c631bfb0eb * XmlSchema.cs: XmlElementAttribute, XmlAttributeAttribute and
DefaultValueAttribute corrections to match MS.NET.
* XmlSchemaAll.cs:
* XmlSchemaAnnotated.cs:
* XmlSchemaAnnotation.cs:
* XmlSchemaAppInfo.cs:
* XmlSchemaAttribute.cs:
* XmlSchemaAttributeGroup.cs:
* XmlSchemaChoice.cs:
* XmlSchemaComplexContent.cs:
* XmlSchemaComplexContentExtension.cs:
* XmlSchemaComplexContentRestriction.cs:
* XmlSchemaComplexType.cs:
* XmlSchemaDocumentation.cs:
* XmlSchemaElement.cs:
* XmlSchemaExternal.cs:
* XmlSchemaGroup.cs:
* XmlSchemaIdentityConstraint.cs:
* XmlSchemaImport.cs:
* XmlSchemaInclude.cs:
* XmlSchemaRedefine.cs:
* XmlSchemaSequence.cs:
* XmlSchemaSimpleContent.cs:
* XmlSchemaSimpleContentExtension.cs:
* XmlSchemaSimpleContentRestriction.cs:
* XmlSchemaSimpleType.cs:
* XmlSchemaSimpleTypeList.cs:
* XmlSchemaSimpleTypeRestriction.cs:
* XmlSchemaSimpleTypeUnion.cs:
* XmlSchemaXPath.cs:

svn path=/trunk/mcs/; revision=48074
2005-08-07 08:57:05 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +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 bba3fd5d13 2004-06-03 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs,
	  XmlSchemaFacet.cs,
	  XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaXPath.cs : modified some enum const to static readonly
	  (.NET 1.0 does not allow it). Use safe overload of LookupNamespace().

svn path=/trunk/mcs/; revision=28790
2004-06-03 21:03:29 +00:00
Ben Maurer bc37e00fc3 constify
svn path=/trunk/mcs/; revision=26464
2004-04-30 20:46:43 +00:00
Atsushi Eno 65e898a786 2004-01-21 Atsushi Enomoto <[email protected]>
* XmlSchemaXPath.cs : wildcard with prefix (e.g. @foo:*) was
	  incorrectly treated.

svn path=/trunk/mcs/; revision=22320
2004-01-21 04:52:34 +00:00
Nick Drochak 42c9156637 2004-01-08 Nick Drochak <[email protected]>
* XmlSchemaSimpleType.cs: Needed a 'new' on the property
	* XmlSchemaXPath.cs: Removed unreachable code.

svn path=/trunk/mcs/; revision=21816
2004-01-07 15:10:49 +00:00
Atsushi Eno c62c061680 2003-09-30 Atsushi Enomoto <[email protected]>
* Forgot to append 8/24/2003 ChangeLog.
	* BUGS.txt, BUGS-MS.txt : Appended additional bug info.
	* BuiltInDatatype.cs, ValidationHandler.cs, XmlSchema.cs,
	  XmlSchemaAll.cs, XmlSchemaAnnotation.cs. XmlSchemaAny.cs,
	  XmlSchemaAnyAttribute.cs, XmlSchemaAttribute.cs,
	  XmlSchemaAttributeGroup.cs, XmlSchemaAttributeGroupRef.cs,
	  XmlSchemaChoice.cs, XmlSchemaCollection.cs,
	  XmlSchemaComplexContent.cs, XmlSchemaComplexContentExtension.cs,
	  XmlSchemaComplexContentRestriction.cs, XmlSchemaComplexType.cs,
	  XmlSchemaContent.cs, XmlSchemaDatatype.cs, XmlSchemaElement.cs,
	  XmlSchemaException.cs, XmlSchemaGroup.cs, XmlSchemaGroupBase.cs,
	  XmlSchemaGroupRef.cs, XmlSchemaIdentityConstraint.cs,
	  XmlSchemaKey.cs, XmlSchemaKeyref.cs, XmlSchemaNotation.cs,
	  XmlSchemaObject.cs, XmlSchemaObjectTable.cs, XmlSchemaParticle.cs,
	  XmlSchemaReader.cs, XmlSchemaSequence.cs, XmlSchemaSimpleContent.cs,
	  XmlSchemaSimpleContentExtension.cs,
	  XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleType.cs,
	  XmlSchemaSimpleTypeContent.cs, XmlSchemaSimpleTypeList.cs,
	  XmlSchemaSimpleTypeRestriction.cs, XmlSchemaSimpleTypeUnion.cs,
	  XmlSchemaType.cs, XmlSchemaUnique.cs, XmlSchemaUtil.cs,
	  XmlSchemaXPath.cs :

	  - Almost all classes are changed to implement schema component
	    constraints, and schema validation using XsdValidatingReader.
	  - better exception messages.
	  - More datatype support.
	  and so on.

svn path=/trunk/mcs/; revision=18444
2003-09-30 19:17:56 +00:00
Atsushi Eno d51892ae10 2003-07-19 Atsushi Enomoto <[email protected]>
* XmlSchema.cs, XmlSchemaAll.cs, XmlSchemaAnnotated.cs,
	  XmlSchemaAnnotation.cs, XmlSchemaAny.cs, XmlSchemaAnyAttribute.cs,
	  XmlSchemaAttribute.cs, XmlSchemaAttributeGroup.cs,
	  XmlSchemaAttributeGroupRef.cs, XmlSchemaChoice.cs,
	  XmlSchemaComplexContent.cs, XmlSchemaComplexContentExtension.cs,
	  XmlSchemaComplexContentRestriction.cs, XmlSchemaComplexType.cs,
	  XmlSchemaElement.cs, XmlSchemaGroup.cs, XmlSchemaGroupRef.cs,
	  XmlSchemaIdentityConstraint.cs, XmlSchemaImport.cs,
	  XmlSchemaInclude.cs, XmlSchemaKey.cs, XmlSchemaKeyref.cs,
	  XmlSchemaNotation.cs, XmlSchemaObject.cs, XmlSchemaRedefine.cs,
	  XmlSchemaSequence.cs, XmlSchemaSimpleContent.cs,
	  XmlSchemaSimpleContentExtension.cs,
	  XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleType.cs,
	  XmlSchemaSimpleTypeList.cs, XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleTypeUnion.cs, XmlSchemaUnique.cs,
	  XmlSchemaXPath.cs,
	  As to Compile() and Validate(),
	  - Added CompilationId and check it while compiling schema components.
	  - Code refactory. Replaced literal xmlns with XmlSchema.Namespace
	  - Replaced XmlSchemaInfo with compiling XmlSchema itself (XmlSchema
	    also has PSVI components inside it, so passing itself seems enough).
	  - Related to above change, IDCollection was moved to XmlSchema, and
	    blockDefault/finalDefault/blockResolved/finalResolved resolution
	    was changed to reference only to schema.BlockDefault/FinalDefault.
	  - The similar change has done against XmlSchemaForm related stuff.
	  - Changed compilation order of schema type definitions (it is
	    workaround). First it compiles types, and then it compiles others.
	* XmlSchemaElement.cs : added ElementType PSVI contribution support.

svn path=/trunk/mcs/; revision=16435
2003-07-19 18:40:45 +00:00
Ajay kumar Dwivedi b0729d1659 2002-06-18 Dwivedi, Ajay kumar <[email protected]>
* XmlSchema: The Read and Write methods are no more [MonoTODO] :)

	* XmlSchemaAppInfo: Xml Markup is now being read.

	* XmlSchemaDocumentation: Xml Markup is now being read.

	* All: Unhandled attributes are being handled properly.

	* All: Reordered the properties in all cs files to match with MS
	       Implementation. This was required since the order is importatnt
	       for the XmlSerializer.

svn path=/trunk/mcs/; revision=5322
2002-06-18 10:47:40 +00:00
Ajay kumar Dwivedi d22745d614 2002-06-14 Dwivedi, Ajay kumar <[email protected]>
* General: Fixed a few more Bugs

svn path=/trunk/mcs/; revision=5280
2002-06-14 10:42:02 +00:00
Ajay kumar Dwivedi 74f114a665 2002-06-10 Dwivedi, Ajay kumar <[email protected]>
* XmlSchemaReader: A Wrapper class around XmlReader with customized
	  methods to suit reading a schema.
	* General: Implemented Read() method for the schema. There are only
	  a few minor bugs remaining.

svn path=/trunk/mcs/; revision=5200
2002-06-10 08:36:16 +00:00
Duncan Mak bbca9ecade 2002-03-27 Duncan Mak <[email protected]>
* *.cs: Updates from Ajay Dwivedi <[email protected]>.

svn path=/trunk/mcs/; revision=3383
2002-03-27 02:06:09 +00:00
Miguel de Icaza aa2c54ee1f Add System.Xml.Schema from Ajay
svn path=/trunk/mcs/; revision=3216
2002-03-19 15:27:27 +00:00