Commit Graph
251 Commits
Author SHA1 Message Date
Atsushi Eno fea4a4c50c 2004-12-16 Atsushi Enomoto <[email protected]>
* XsdParticleValidationState.cs :
	  Removed some unused or unnecessary members. Readonlify some members.
	  Added GetExpectedParticles(ArrayList) and overriden in all state
	  types, which is used in XmlSchemaValidator.GetExpectedParticles().

	* XmlSchemaValidator.cs : implemented GetExpectedParticles() and
	  SkipToEndElement ().



svn path=/trunk/mcs/; revision=37823
2004-12-16 09:53:19 +00:00
Atsushi Eno 103fb0642d 2004-12-15 Atsushi Enomoto <[email protected]>
* xsdtest.cs : added --v2 option that uses XmlReader.Create()
	  instead of XmlValidatingReader.

	* XmlFilterReader.cs : don't expect XmlReaderSettings of its source.

	* XmlSchemaValidatingReader.cs : xsi:* attributes are now handled via
	  XmlSchemaValidator.ValidateElement().
	  Removed some obsolete overrides.

	* XmlReader.cs :
	  Create() should assure NameTable!=null on creating XmlTextReader.
	  Now use XmlSchemaValidatingReader for all xsd validation.
	* XmlTextReader2.cs :
	  Don't use input reader's Settings. It is null.
	* XmlReaderSettings.cs : added XmlResolver.

	* XmlSchemaSet.cs : set default resolver. Clear components before
	  recompilation.
	* XmlSchemaValidator.cs :
	  SourceUri is System.Uri.
	  GetUnspecifiedDefaultAttributes() is allowed only when it is inside
	  start tag.
	  Added AddSchema().
	  Added duplicate attribute check.
	  Added ValidateElement() that takes xsi:* parameters.
	  (http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackId=7fc38ea1-c306-4fb7-8631-0e174b0ff3c6)
	  HandleXsiNil() now just takes string parameter.



svn path=/trunk/mcs/; revision=37782
2004-12-15 13:58:32 +00:00
Atsushi Eno 2ff40096cb 2004-12-14 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaValidatingReader.

	* XmlSchemaValidatingReader.cs : new file; another XmlReader 
	  implementation that handles XSD validation. It is an reference
	  application for XmlSchemaValidator.
	* XsdValidatingReader.cs : Use readerLineInfo for IXmlLineInfo.

	* XmlReaderSettings.cs : XsdValidate and DtdValidate are now
	  ValidationType.
	* XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
	  validation.

	* XmlSchemaValidator.cs : implemented basic validation feature.



svn path=/trunk/mcs/; revision=37739
2004-12-14 12:09:23 +00:00
Atsushi Eno c7390b0c71 2004-12-14 Atsushi Enomoto <[email protected]>
* XsdIdentityState.cs : use validation exception for 2.0.
	  ProcessMatch() does not have to return bool. Use break and continue
	  and reduced indentation.
	* XsdValidatingReader.cs : use validation exception for 2.0.
	  Added new XsdIDManager class and id handling is delegated to it.
	  XmlQualifiedName -> QName. AssessElementLocallyValidElement() does
	  not need XmlSchemaElement (it is context). Moved some static
	  methods to XmlSchemaUtil.cs. Collected key constraints stuff to a
	  region.

	* XmlSchemaUtil.cs : added FindAttributeDeclaration() and
	  AttributeWildcardItemValid().


svn path=/trunk/mcs/; revision=37724
2004-12-14 05:22:26 +00:00
Atsushi Eno 2ddbb7f34f 2004-12-11 Atsushi Enomoto <[email protected]>
* XmlSchemaUtil.cs : added static ReadTypedValie().
	* XmlSchemaInference.cs : compile at the end of inference.



svn path=/trunk/mcs/; revision=37626
2004-12-11 05:09:42 +00:00
Atsushi Eno 9a2a6c86f3 2004-12-08 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaValidator.cs,
	  XmlValueGetter.cs and XmlSchemaValidationFlags.cs.

	* XmlException.cs : added SecurityPermissionAttributes.
	* XmlReaderSettings.cs,
	  XmlReader.cs : added ValidationFlags and removed obsolete ones.

	* XmlValueGetter.cs,
	  XmlSchemaValidationFlags.cs,
	  XmlSchemaValidator.cs : added.
	* XmlSchemaSet.cs : XmlResolver is now internally gettable.


svn path=/trunk/mcs/; revision=37398
2004-12-08 17:14:21 +00:00
Atsushi Eno 97d56f4694 2004-12-04 Atsushi Enomoto <[email protected]>
* XmlSchemaObject.cs : added Parent.
	* XmlSchema.cs,
	  XmlSchemaElement.cs,
	  XmlSchemaAttribute.cs,
	  XmlSchemaAttributeGroup.cs,
	  XmlSchemaGroup.cs,
	  XmlSchemaComplexType.cs,
	  XmlSchemaSequence.cs,
	  XmlSchemaChoice.cs,
	  XmlSchemaAll.cs,
	  XmlSchemaIdentityConstraint.cs,
	  XmlSchemaComplexContent.cs,
	  XmlSchemaSimpleContent.cs,
	  XmlSchemaSimpleContentExtension.cs,
	  XmlSchemaSimpleContentRestriction.cs,
	  XmlSchemaComplexContentExtension.cs,
	  XmlSchemaComplexContentRestriction.cs,
	  XmlSchemaSimpleType.cs,
	  XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleTypeList.cs,
	  XmlSchemaSimpleTypeUnion.cs : Fill Parent on Compilation.

	* XmlSchemaException.cs,
	  XmlSchemaInferenceException.cs,
	  XmlSchemaValidationException.cs : added SecurityPermissionAttribute.



svn path=/trunk/mcs/; revision=37094
2004-12-04 19:25:02 +00:00
Atsushi Eno a451e177a3 2004-12-04 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : simplify Compile().



svn path=/trunk/mcs/; revision=37081
2004-12-04 14:16:31 +00:00
Atsushi Eno 5a8d83435a 2004-11-25 Atsushi Enomoto <[email protected]>
* XmlSchemaElement.cs,
	  XmlSchemaComplexType.cs,
	  XmlSchema.cs,
	  XmlSchemaChoice.cs,
	  XmlSchemaSimpleType.cs,
	  XmlSchemaObjectTable.cs,
	  XmlSchemaObjectCollection.cs,
	  XmlSchemaCollection.cs,
	  : All changes are just for warning removal.



svn path=/trunk/mcs/; revision=36586
2004-11-26 02:47:17 +00:00
Atsushi Eno 91d3a2d816 2004-11-24 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatype.cs : added ParseValue() override.
	* XmlSchemaSimpleTypeList.cs,
	  XmlSchemaSimpleTypeUnion.cs : #if NET_2_0 some private fields,
	  just for eliminating warnings :(
	* XmlSchemaSet.cs : commented some fields currently not in use.
	  It is for eliminating warnings.
	* XmlSchemaSimpleTypeRestriction.cs : removed exception field name
	  to eliminate warning.
	* XmlSchemaException.cs : hasLineInfo is also runtime serialized now.



svn path=/trunk/mcs/; revision=36464
2004-11-24 10:39:29 +00:00
Atsushi Eno f9451776fa 2004-11-22 Atsushi Enomoto <[email protected]>
* XmlSchemaException.cs : Message is only 1.x (not 2.0).
	* XmlSchemaInference.cs : use more static readonly QName fields.
	  Type merge inference now traverses every base types.
	* XmlSchemaInfo.cs : added new file.



svn path=/trunk/mcs/; revision=36359
2004-11-22 01:20:17 +00:00
Atsushi Eno 8a2a9a7aca 2004-11-18 Atsushi Enomoto <[email protected]>
* XmlSchemaException.cs : added .ctor(string).
	* XmlSchemaInferenceException.cs : use base.ctor(string).
	* XmlSchemaValidationException.cs : It is 2.0 class. Added some .ctor()



svn path=/trunk/mcs/; revision=36239
2004-11-17 23:47:11 +00:00
Atsushi Eno cd6a5293f4 2004-11-18 Atsushi Enomoto <[email protected]>
* XmlSchemaCollection.cs : obsolete.
	* XmlSchemaInference.cs :
	  Fixed typo in enum. It is still MonoTODO. Reformatted code a bit.



svn path=/trunk/mcs/; revision=36238
2004-11-17 23:38:43 +00:00
Atsushi Eno b1bf46a9d4 2004-11-17 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : don't set TargetNamespace = "".



svn path=/trunk/mcs/; revision=36203
2004-11-17 09:08:23 +00:00
Atsushi Eno 0b121a5aed 2004-11-17 Atsushi Enomoto <[email protected]>
* XmlSchemaInferenceDesign.txt : added (incomplete though.)



svn path=/trunk/mcs/; revision=36202
2004-11-17 08:54:16 +00:00
Atsushi Eno f22b6c863e 2004-11-17 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaInference.cs,
	  XmlSchemaInferenceException.cs and XmlSchemaValidationException.cs.

	* XmlSchemaValidationException.cs : added.


svn path=/trunk/mcs/; revision=36201
2004-11-17 08:49:21 +00:00
Atsushi Eno 2967cb4bf7 2004-11-17 Atsushi Enomoto <[email protected]>
* XmlSchemaInference.cs,
	  XmlSchemaInferenceException.cs : added.



svn path=/trunk/mcs/; revision=36200
2004-11-17 08:46:21 +00:00
Atsushi Eno de5f29b0e5 2004-11-17 Atsushi Enomoto <[email protected]>
* XmlSchemaException.cs : removed get_Message in 2.0 profile (all done
	  in .ctor()).


svn path=/trunk/mcs/; revision=36198
2004-11-17 08:45:06 +00:00
Atsushi Eno 288fb5c552 2004-11-08 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : use NameTable when creating XmlTextReader.

svn path=/trunk/mcs/; revision=35809
2004-11-08 06:33:42 +00:00
Atsushi Eno 836675cffd 2004-11-05 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : reduced extraneous XmlSchemaObjectTable creation.

svn path=/trunk/mcs/; revision=35779
2004-11-07 15:11:44 +00:00
Atsushi Eno eb9afec887 2004-11-05 Atsushi Enomoto <[email protected]>
* XmlSchemaSimpleTypeList.cs,
	  XmlSchemaSimpleTypeUnion.cs : XmlIgnore.

svn path=/trunk/mcs/; revision=35691
2004-11-05 12:59:14 +00:00
Atsushi Eno e0532e3019 2004-10-29 Atsushi Enomoto <[email protected]>
* XmlSchemaAttribute.cs : AttributeSchemaType could be determined on
	  compilation time. AttributeType is obsolete.
	* XmlSchemaElement.cs : ditto for ElementSchemaType and ElementType.

svn path=/trunk/mcs/; revision=35447
2004-10-29 12:21:38 +00:00
Atsushi Eno afd86b9ae9 2004-10-29 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : added LocalElements, with the description
	  why it can never be correct implementation.
	* XmlSchemaUtil.cs : use IHasXmlParserContext.

svn path=/trunk/mcs/; revision=35436
2004-10-29 09:35:12 +00:00
Atsushi Eno fbdfb5852a 2004-10-29 Atsushi Enomoto <[email protected]>
* XmlSchemaSimpleTypeUnion.cs : Added 2.0 BaseMemberTypes property
	  (this property name is also ambiguous and should be changed too.)

svn path=/trunk/mcs/; revision=35433
2004-10-29 08:33:35 +00:00
Atsushi Eno c955879e66 2004-10-29 Atsushi Enomoto <[email protected]>
* XmlSchemaSimpleTypeList.cs : Added 2.0 BaseItemType property (BTW
	  this property name is really ambiguous and should be changed.)

svn path=/trunk/mcs/; revision=35432
2004-10-29 07:15:47 +00:00
Atsushi Eno cdd7af4956 2004-10-28 Atsushi Enomoto <[email protected]>
* XmlSchemaAttributeGroup.cs, XmlSchemaGroup.cs :
	  in 2.0, QualifiedName properties are public.
	* XmlSchemaType.cs : TypeCode is [XmlIgnore] (anyways ignored though).

svn path=/trunk/mcs/; revision=35381
2004-10-28 02:48:41 +00:00
Atsushi Eno d5353dcf78 2004-10-22 Atsushi Enomoto <[email protected]>
* XmlSchemaType.cs : Implemented GetBuiltInComplexType(XmlTypeCode).

svn path=/trunk/mcs/; revision=35265
2004-10-22 19:55:49 +00:00
Atsushi Eno 7866795d55 2004-09-22 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatype.cs : handle xdt:* types in FromName().

svn path=/trunk/mcs/; revision=34224
2004-09-22 15:09:04 +00:00
Atsushi Eno fe93ee2c27 2004-09-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, SchemaDataValueType.cs :
	  ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
	  XmlSchemaUri, but it is derived from System.Uri, while ours was not.

svn path=/trunk/mcs/; revision=33963
2004-09-16 14:58:07 +00:00
Atsushi Eno e38f6d2220 2004-09-07 Atsushi Enomoto <[email protected]>
* IXmlType.cs : deprecated in .NET 2.0.

svn path=/trunk/mcs/; revision=33471
2004-09-07 06:29:02 +00:00
Atsushi Eno d59f500948 2004-09-03 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : When schema inclusion results in a recursion, just
	  skip recursed schema.
	* BUGS-MS.txt : added another entry. Reflected response from Microsoft.

svn path=/trunk/mcs/; revision=33258
2004-09-03 10:02:42 +00:00
Atsushi Eno da424bb0a7 2004-08-30 Atsushi Enomoto <[email protected]>
* XmlSchemaType.cs : quick build fix.

svn path=/trunk/mcs/; revision=33012
2004-08-30 02:50:23 +00:00
Atsushi Eno 8f89524e5f 2004-08-30 Atsushi Enomoto <[email protected]>
* 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 01:33:00 +00:00
Atsushi Eno fe379229e4 2004-08-25 Atsushi Enomoto <[email protected]>
* XmlSchemaSimpleType.cs : Fill list types such as xs:IDREFS.
	* XmlSchemaType.cs :
	  Fixed TypeCode more (broken on predefined list types and xs:anyType).

svn path=/trunk/mcs/; revision=32810
2004-08-25 08:20:25 +00:00
Atsushi Eno 3125c1c2b4 2004-08-25 Atsushi Enomoto <[email protected]>
* XmlSchemaType.cs :
	  anyType was anonymous, thus GetBuiltInComplexType() didn't work.

svn path=/trunk/mcs/; revision=32809
2004-08-25 06:09:20 +00:00
Atsushi Eno 20332463f8 2004-08-24 Atsushi Enomoto <[email protected]>
* XmlSchemaType.cs : return XmlTypeCode.AnyAtomicType for
	  anySimpleType's TypeCode property.

svn path=/trunk/mcs/; revision=32754
2004-08-24 14:30:27 +00:00
Atsushi Eno e91b293dbc 2004-08-10 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Replace XmlSchemaCollection with XmlSchemaSet that
	  used to maintain compiled schema state.
	  Simplified code a bit (Include processing).
	  Set IsCompiled = true only when successfully compiled.
	* XmlSchemaCollection.cs : Now it totally delegates its processing
	  to XmlSchemaSet. Removed unused methods.
	* XmlSchemaElement.cs : Added post-compiled information initializer
	  method, and call it before (re)Compile().
	* XmlSchemaSet.cs :
	  - Replaced internal store from Dictionary to List, since schema
	    resources for one target namespace can be more than one (that's why
	  - Schemas(string targetNamespace) returns ICollection).
	  - Now global schemaset members are added per schema addition (it is
	    more MS compatible than before).
	  - Use GetSafeNs() to do targetNamespace comparison correctly.

	  XmlSchemaSet looks still unstable, so it will be changed again.

	* XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleTypeUnion.cs,
	* XmlSchemaUtil.cs : Consider xdt namespace.

svn path=/trunk/mcs/; revision=32143
2004-08-10 14:25:39 +00:00
Atsushi Eno 4fe7d6d0e2 2004-08-10 Atsushi Enomoto <[email protected]>
* XmlSchemaCollection.cs : replaced CRLF to LF (they were mixed).

svn path=/trunk/mcs/; revision=32142
2004-08-10 14:08:10 +00:00
Atsushi Eno 2fe23db0c0 2004-08-10 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : code reformatting. convert CRLF to LF.
	  Use String.Format() instead of +. Removed commented code.

svn path=/trunk/mcs/; revision=32132
2004-08-10 05:56:33 +00:00
Atsushi Eno af9ff658c4 2004-07-28 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs : use XmlQualifiedName.Parse().

svn path=/trunk/mcs/; revision=31541
2004-07-28 09:12:16 +00:00
Atsushi Eno adb3e06e63 2004-07-23 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Added internal XdtNamespace constant. don't fill
	  schemaset compoenents here.
	* XmlSchemaAttribute.cs : Implemented AttributeSchemaType.
	* XmlSchemaElement.cs : Implemented ElementSchemaType.
	* XmlSchemaSimpleType.cs : Added predefined simple types
	* XmlSchemaType.cs : Implemented GetBuiltInSimpleType().
	* XmlSchemaDatatype.cs : Allow Xdt namespaces too (not completed;
	  quick fix for GetBuiltInSimpleType()).

svn path=/trunk/mcs/; revision=31415
2004-07-23 16:07:03 +00:00
Atsushi Eno 6c7ace253c 2004-07-21 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : updated including answer excerpts from MS team.
	* BUGS.txt : it turned out that some bugs I wrote as "MS bugs" are
	  actually my bug. Noted them.
	* BuiltInDatatype.cs :
	  Commented out extraneous [CLSCompliant].
	  Switch ParseValue() argument as IXmlNamespaceResolver for 2.0, and
	  XmlNamespaceManager for 1.x.
	  Added TypeCode overrides.
	* XmlSchemaDatatype.cs : Added 2.0 members.
	  Switch IXmlNamespaceResolver and XmlNamespaceManager.
	* XmlSchemaType.cs : Added some NET_2_0 members. removed old 1.2 stuff.

svn path=/trunk/mcs/; revision=31335
2004-07-21 14:52:25 +00:00
Atsushi Eno c396b3e156 2004-07-13 Atsushi Enomoto <[email protected]>
* XmlSchemaBuiltInType.cs, XmlSchemaValidity.cs, XmlTypeCode.cs
	  : fixed annoying enum errors.
	* XmlSchemaCollection.cs : completely delegate to XmlSchemaSet.
	* XmlSchemaSet.cs : sealed classes. Use ListDictionary (avoid annoying
	  order preservation matter). NameTable null check for .ctor().
	  Fill GlobalAttributes, GlobalElements, GlobalTypes correctly.
	  Add(string, XmlReader) checks namespace conflicts, while
	  Add(XmlSchema) does not. Fixed Schemas() return type.

svn path=/trunk/mcs/; revision=31079
2004-07-13 13:42:32 +00:00
Atsushi Eno 2cd43b9ee7 2004-07-11 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatypeVariety.cs : Fixed class name typo.
	* XmlValueConverter.cs : fixed return types.

svn path=/trunk/mcs/; revision=30991
2004-07-11 03:02:56 +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 4cf0759319 2004-06-18 Atsushi Enomoto <[email protected]>
* CustomSerializer.cs, XmlSchemaException.cs,
	  XmlSchemaParticle.cs, XmlSchemaSimpleTypeRestriction.cs
	  : Globalization.

svn path=/trunk/mcs/; revision=29827
2004-06-18 01:25:07 +00:00
Atsushi Eno 1262953080 2004-06-10 Atsushi Enomoto <[email protected]>
* XmlSchemaFacet.cs : Fixed internal protected --> internal.

svn path=/trunk/mcs/; revision=29158
2004-06-10 05:29:42 +00:00
Atsushi Eno adfc9a4885 2004-06-06 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Make sure to close url-based XmlTextReader.

svn path=/trunk/mcs/; revision=28909
2004-06-06 14:48:43 +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
Atsushi Eno 68bc8cf585 2004-05-22 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatypeVariety.cs,
	  XmlSchemaValidity.cs : they are NET_2_0 enums.

svn path=/trunk/mcs/; revision=27896
2004-05-22 17:54:59 +00:00