Commit Graph
161 Commits
Author SHA1 Message Date
Martin Baulig 58319196aa 2005-01-25 Martin Baulig <[email protected]>
* XmlSchemaSet.cs (XmlSchemaSet.XmlResolver): Mark this as
	not CLS-compliant to avoid a CS3025.

	* XmlSchemaType.cs (XmlSchemaType.ValueConverter): Mark this as
	not CLS-compliant to avoid a CS3025.


svn path=/trunk/mcs/; revision=39448
2005-01-25 01:02:08 +00:00
Atsushi Eno 039af9c871 2005-01-17 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : XmlSchema.Write() should not write duplicating
	  top-level entry in XmlSerializerNamespaces and XmlNamespaceManager.
	  This fixes some DataSet bugs.



svn path=/trunk/mcs/; revision=39024
2005-01-17 15:21:48 +00:00
Atsushi Eno 4e91a8b292 2005-01-17 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : in case of open start tag,
	  ValidateEndElement() calls ValidateEndOfAttributes().



svn path=/trunk/mcs/; revision=39006
2005-01-17 09:41:58 +00:00
Atsushi Eno 55142afb4f 2005-01-17 Atsushi Enomoto <[email protected]>
* xmlschemagen.config,
	  XmlSchemaSerializer.cs : replacement of CustomSerializer.cs which was
	  based on genxs but manually modified.
	* CustomSerializer.cs : removed.

2004-01-17  Atsushi Enomoto  <[email protected]>

	* System.Xml.dll.sources : replaced CustomSerializer with 
	  XmlSchemaSerializer.
	  Replaced XmlNodeReader with XmlNodeReaderImpl.cs and
	  XmlNodeReader2.cs. (dispatches entity reader and non-entity reader.)



svn path=/trunk/mcs/; revision=39005
2005-01-17 09:40:11 +00:00
Atsushi Eno fbb0b0cdc3 2005-01-11 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Write() should handle carefully output
	  namespace/prefix mapping.

	* XmlSchemaTests.cs : added TestWriteNamespaces2 ().



svn path=/trunk/mcs/; revision=38718
2005-01-11 18:31:14 +00:00
Atsushi Eno e38e165c6a 2004-12-26 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : added Remove(), RemoveRecursive(), Reprocess().
	* XmlValueConverter.cs : implemented almost all the feature.
	* XmlSchemaSimpleType.cs : fixed some built-in types.
	* XmlSchemaType.cs : added ValueConverter property.



svn path=/trunk/mcs/; revision=38086
2004-12-26 16:37:32 +00:00
Atsushi Eno ea5f087e84 2004-12-26 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : XmlResolver.ResolveUri() may return null.

	* XmlParserContext.cs : all the string properties must not be set as
	  null. Thanks to Joshua.
	* XmlTextReader.cs,
	  DTDObjectModel.cs,
	  DTDReader.cs : XmlResolver.ResolveUri() may return null.

	* XsdValidatingReader.cs : XmlResolver.ResolveUri() may return null.

	* XslFunction.cs,
	  Compiler.cs : XmlResolver.ResolveUri() may return null.



svn path=/trunk/mcs/; revision=38084
2004-12-26 16:26:30 +00:00
Atsushi Eno b259fe7d06 2004-12-16 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : ValidateElement() was not LAMESPEC. Added
	  some comments on ValidateEndElement().


svn path=/trunk/mcs/; revision=37838
2004-12-16 15:37:31 +00:00
Atsushi Eno 2ef0fa83bf 2004-12-16 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : fill schemaInfo as long as possible right now.


svn path=/trunk/mcs/; revision=37833
2004-12-16 14:00:21 +00:00
Atsushi Eno f305240c9c 2004-12-16 Atsushi Enomoto <[email protected]>
* XmlSchemaInfo.cs : added internal copy constructor.

	* XmlReader.cs : added MoveToFollowing().
	* XmlNode.cs,
	  XmlElement.cs,
	  XmlAttribute.cs : added SchemaInfo support.
	* XmlDocument.cs : added Schemas and Validate().
	  ReadNode() now copies xmlReader's SchemaInfo.
	* XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).

	* SubtreeXmlReader.cs, XmlFilterReader.cs :
	  Override SchemaInfo to return input reader's SchemaInfo.



svn path=/trunk/mcs/; revision=37829
2004-12-16 12:16:32 +00:00
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