Age | Commit message (Collapse) | Author |
|
* XsdValidatingReader.cs : skip text validation under xs:any.
Fixed part of bug #449512.
* XmlSchemaValidator.cs : skip text validation under xs:any.
* XmlValidatingReaderTests.cs : added test for validating mixed
element under xs:any.
svn path=/trunk/mcs/; revision=121093
|
|
svn path=/trunk/mcs/; revision=117232
|
|
svn path=/trunk/mcs/; revision=117216
|
|
* XmlSchemaValidatingReader.cs : call EndValidation() only once.
Fixed a bug additionally reported to #324606 (but wrong to
attach).
svn path=/trunk/mcs/; revision=112075
|
|
* XsdParticleValidationState.cs : a choice with only empty particle
children is emptiable. Fixed bug #376395.
* XsdValidatingReaderTests.cs : added test for bug #376395.
* 376395.xml, 376395.xsd : new test files.
* Makefile : extra distfiles (376395.xml, 376395.xsd).
svn path=/trunk/mcs/; revision=99679
|
|
* XsdWildcard.cs : block extra compilation and made compilation reset.
This somehow fixed bug #360541.
* XmlSchemaAny.cs : block extra compilation in anyTypeContent.
* XmlSchemasTests.cs : new test file (for bug #360541).
* System.Xml_test.dll.sources: added XmlSchemasTests.cs.
svn path=/trunk/mcs/; revision=96115
|
|
* XsdValidatingReader.cs : r68046 didn't really fix the issue.
Enabled the actual fix. and fixed bug #336625.
* XsdValidatingReaderTests.cs : added test for #336625.
* 336625.xsd : new test file.
* Makefile : extra distfiles (336625.xsd).
svn path=/trunk/mcs/; revision=88537
|
|
* XmlSchemaValidator.cs : do not reject whitespaces in elementOnly
content model. Fixed bug #82183.
* XsdValidatingReader.cs : reject more whitespaces in empty model
element.
svn path=/trunk/mcs/; revision=82652
|
|
* XsdValidatingReader.cs : Process empty and element-only contents
differently along with the spec 3.4.4 Element Locally Valid (Complex
Type) 2.3 (and 2.1 respectively). Itchy specification indeed.
This demanded not a few internal changes. Fixed bug #82099.
* XmlSchemaValidator.cs : dependent changes to
XsdParticleValidationState. Changed ValidateWhitespace() to do
the same as we do in XsdValidatingReader.
* XsdValidatingReaderTests.cs : added test for bug #82099.
svn path=/trunk/mcs/; revision=82098
|
|
* XmlSchemaValidatingReader.cs : nsResolver field must be initialized.
Fixed bug #81460.
* XsdValidatingReaderTests.cs : added test for bug #81460.
svn path=/trunk/mcs/; revision=76376
|
|
* XsdValidatingReader.cs : when ValidationType is None, it does not
load external schemas. Fixed bug #79924.
* XmlReaderSettingsTests.cs : added test for bug #79224; it does not
load external schemas when validation mode is none.
svn path=/trunk/mcs/; revision=68046
|
|
* XmlReaderSettings.cs : in copy constructor, copy (dispatch)
validation event as well. Add OnValidationError() to be invoked
by other internal stuff to raise the validation event.
* XmlSchemaValidatingReader.cs : dispatch validation events from
XmlReaderSettings. Turned out that outside System.Xml.dll
XmlReaderSettings.ValidationEventHandler is useless.
* XmlReaderSettingsTests.cs : added validation event handler test
case.
svn path=/trunk/mcs/; revision=67814
|
|
* XsdValidatingReader.cs : Fixed bug #79650. Enumeration facet was
not validated for attributes. Also, simple type restriction should
require namespace manager to resolve QNames.
* XmlSchemaSimpleTypeRestriction.cs : for facet validation, it should
use namespacemanager. Though the change is not perfect, thus I
disable this change for now.
* XmlValidatingReaderTests.cs : added bug #79650 case.
* 79650.xsd : added test for bug #79650.
* Makefile : added 79650.xsd to dist file.
svn path=/trunk/mcs/; revision=67031
|
|
* XsdIdentityState.cs : Fixed bug #78985. If there are two identical
field path "@key" in two different keys where one is in scope
within another, it incorrectly matched the attribute whose name
is same but in different element hierarchy (depth).
* XmlSchemaTest.cs : added bug #78985 case.
* 78985.xsd, 78985.xml : test for bug #78985.
svn path=/trunk/mcs/; revision=63338
|
|
* System.Xml_test.dll.sources :
Added Test/System.Xml/XmlDefaultReader.cs.
* XmlSchemaValidatingReader.cs : don't reject such XmlReader that
does not implement IXmlNamespaceResolver.
* XmlReaderSettingsTests.cs :
Added CreateValidatorFromNonIXmlNamespaceResolver() which is
uncovered by NVDL validator.
* XmlDefaultReader.cs : new file for above.
svn path=/trunk/mcs/; revision=59399
|
|
* DTDValidatingReader2.cs : added Source XmlReader property for
XsdValidatingReader use (see XsdValidatingReader change as well).
* XsdValidatingReader.cs : when DTD did not appear in
DTDValidatingReader, it almost makes no sense to use it, so just
use its internal EntityResolvingXmlReader (it is required to
detect "undeclared entity in use" well-formedness violation).
It could double processing speed (or more).
svn path=/trunk/mcs/; revision=57077
|
|
* XsdValidatingReader.cs : whitespace nodes should be allowed inside
empty or element-only content types. Fixed bug #77241.
* XsdValidatingReaderTests.cs : test from bug #77241.
svn path=/trunk/mcs/; revision=55523
|
|
* XmlSchemaValidatingReader.cs : removed unused constructors.
Now it implements IXmlSchemaInfo. Use XmlSchemaType instead of
Object to represent schema types.
* XmlSchemaAttribute.cs, XmlSchemaElement.cs : AttributeSchemaType
and ElementSchemaType were not working fine for anySimpleType.
* XmlSchemaValidator.cs : When actual schema type was complex,
schema types was not filled correctly. Modified some extra comments.
* XmlSchemaSet.cs, XmlSchemaType.cs : removed extra MonoTODOs.
svn path=/trunk/mcs/; revision=55371
|
|
* XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
nodes as target string nodes as well as other text nodes.
* XsdValidatingReader.cs :
Don't use normalized string as input to AssessStringValid(). It
incorrectly invalidates strings against simple types with length-
related facets.
Now that we don't ignore whitespaces, we need to explicitly allow
pure whitespace texts in ElementOnly/Empty model.
* XmlSchemaSimpleTypeRestriction.cs : maxLength and minLength were
likely to be ignored in ValidateNonListValueWithFacets().
* XmlSchemaValidator.cs : Don't use normalized string value as the
input to AssessStringValid().
* XsdValidatingReaderTests.cs : test for ReadTypeValue() that it
does not ignore whitespace nodes, and it does not normalize string
incorrectly.
svn path=/trunk/mcs/; revision=55129
|
|
* XsdValidatingReader.cs : Fixed the bug that only the last
* schema
URL in a schemaLocation was processed. Patch by Vorobiev
Maksim.
* XsdValidatingReaderTests.cs : test for multi URLs in
schemaLocation. Test by Vorobiev Maskim.
* multi-schemaLocation.xml,
x-net-config-storage-factory-provider-schema.xsd,
x-net-config-schema.xsd :
test support files for XsdValidatingReaderTests
.MultipleSchemaInSchemaLocation() by Vorobiev Maskim.
svn path=/trunk/mcs/; revision=54848
|
|
* XsdValidatingReader.cs : it is not IXmlNamespaceResolver anymore.
svn path=/trunk/mcs/; revision=54229
|
|
* XmlReader.cs : dependent XmlSchemaValidationFlags fix.
Added ReadElementContentAsObject() and ReadContentAsObject().
* XmlReader.cs, XmlTextReader.cs :
LookupNamespace(string,bool) is now private.
* XmlReader.cs, XmlNode,cs :
[DebuggerDisplay].
* XmlSchemaValidationFlags.cs : updated to match 2.0 RTM.
* XmlSchemaValidator.cs : related fix.
* XmlSchemaValidatingReader.cs : XmlSchemaValidationFlags is updated.
* XmlReaderSettingsTests.cs : XmlSchemaValidationFlags is updated.
svn path=/trunk/mcs/; revision=52659
|
|
* XmlValueGetter.cs, XmlSchemaValidator.cs, XmlSchemaException.cs,
XmlSchemaAttribute.cs : Updated API to match 2.0 RTM. Most of the
changes are related to XmlValueGetter change.
* XsdValidatingReader.cs, XmlSchemaValidatingReader.cs,
XsdIdentityState.cs :
Dependent changes caused by XmlValueGetter changes.
* xsdtest.cs : updated to match 2.0 RTM API.
svn path=/trunk/mcs/; revision=52650
|
|
* XsdValidatingReader.cs : XmlReader.ReadTypedValue() does not exist
anymore, so it is not override.
* XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
* XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
ReadTypedValue() is removed.
* XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
* XmlWriter.cs : Settings is virtual.
* XPathNodeIterator.cs : added [DebuggerDisplay]. pretty useless tho.
* XPathNavigator.cs : [DebuggerDisplay] as well.
SelectSingleNode() and AppendChildElement() are now virtual.
svn path=/trunk/mcs/; revision=52637
|
|
* XmlSchemaUtil.cs: (GetParserContext) if reader is not internal
IHasXmlParserContext, silently return null. This is for NVDL xsd
support.
* XsdValidatingReader.cs: make ParserContext and its NamespaceManager
optional. This is for NVDL xsd support.
svn path=/trunk/mcs/; revision=51035
|
|
* XsdValidatingReader.cs: allow validation for such XmlReader whose
ReadState is Interactive (hold different "is started" flag). This
is a fix for nvdl support.
svn path=/trunk/mcs/; revision=51034
|
|
* XmlSchemaValidationFlags.cs, XmlSchemaValidator.cs :
NET_2_0 API updates.
* XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
XmlSchemaValidationFlags updates.
* XmlSchemaValidatingReader.cs: XmlSchemaValidationFlags updates.
* XmlReaderSettingsTests.cs : XmlSchemaValidationFlags NET_2_0 update.
svn path=/trunk/mcs/; revision=50732
|
|
* XmlSchemaInfo.cs: Added ContentType property.
* XmlSchemaObjectEnumerator.cs: No longer sealed in Beta 2.
* XmlSchemaSet.cs: No longer sealed in Beta 2. XmlResolver property
is now CLSCompliant.
* XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
* XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to RoundtripKind
to match .NET 2.0 Beta 2.
* XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2, and is explicit interface implementation.
* XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlValidatingReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlNamespaceManager.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic IDictionary in
.NET 2.0 Beta 2.
* DTDValidatingReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XsltArgumentList.cs: No longer sealed in .NET 2.0.
* XsltException.cs: Message override is back in .NET 2.0 Beta 2.
* XmlMapping.cs: API compatibility fixes. Ctor is not protected in .NET 1.1.
SetKey is not obsolete in .NET 2.0 Beta 2.
* XPathNavigator.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XsdValidationReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlSchemaValidatingReader.cs: GetNamespacesInScope returns generic
IDictionary in .NET 2.0 Beta 2.
* SubtreeXmlReader.cs: GetNamespacesInScope now returns generic IDictionary.
svn path=/trunk/mcs/; revision=47974
|
|
* XsdValidatingReader.cs : when xsi:schemaLocation could not be
resolved, it still does not raise error when corresponding schema
already exists.
* XsdValidatingReaderTests.cs : added test case for duplicating
assignment of both Schemas.Add() and xsi:schemaLocation where
schemaLocation could not be resolved.
svn path=/trunk/mcs/; revision=47803
|
|
* System.Xml.dll.sources : XPathAtomicValue.cs -> XmlAtomicValue.cs.
* XmlAtomicValue.cs : moved from XPathAtomicValue, removed some stuff.
* SubtreeXmlReader.cs :
removed atomizedName related 2.0 member (deprecated).
* XPathAtomicValue.cs :
it is now XmlAtomicValue and in sys.xml.schema.
* XPathNavigator.cs, Expression.cs :
removed atomizedName related 2.0 members (deprecated).
* XsdValidatingReader.cs :
removed atomicName related 2.0 members (deprecated in beta2).
* XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
DTDValidatingReader.cs : Removed most of "atomizedName" related
stuff that are obsoleted in 2.0 beta2.
* XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
* XmlNamespaceManagerTests.cs : removed atomizedName related tests.
svn path=/trunk/mcs/; revision=44083
|
|
* XsdValidatingReader.cs : removed unused method which was warned.
svn path=/trunk/mcs/; revision=42058
|
|
* 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
|
|
* XsdValidatingReader.cs : added ActualSchemaType to context type.
* XmlSchemaValidatingReader.cs : added SchemaInfo override.
svn path=/trunk/mcs/; revision=37834
|
|
* 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
|
|
* 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
|
|
* 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
|
|
* 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
|
|
* XsdKeyTable.cs : eliminated XmlReader dependency.
* XsdValidatingReader.cs :
AssertIdentityConstraints() is now splited to selector validation
and field validation. Extracted EndKeyrefValidation() to process
keyref constraints.
Added ReadExternalSchema() and commonized xsi:schemaLocation
handling and xsi:noNamespaceSchemaLocation handling.
* XsdIdentityState.cs :
Eliminated XsdValidatingReader dependency.
In XsdKeyEntryField, renamed KeySequence to OwnerSequence.
XsdKeyEntryFieldCollection is now based on CollectionBase.
In XsdKeyEntry, FieldMatches() is renamed to ProcessMatch() and
modified to accept splited XsdValidatingReader members.
* XsdIdentityPath.cs : added default .ctor() and IsAttribute property.
svn path=/trunk/mcs/; revision=37695
|
|
* XsdIdentityState.cs,
XsdIdentityPath.cs,
XsdKeyTable.cs : fixed mixed line ending.
svn path=/trunk/mcs/; revision=37694
|
|
* XsdValidatingReader.cs,
XsdIdentityState.cs : more refactoring.
Reduced XmlReader dependency in identity constraint classes.
Hide State in XsdValidationContext.
Simplify character validation and state resetting.
Need more event deligation on ExamineAdditionalSchema().
Just cache attribute type directly instead of QName.
Use XmlSchemaUtil.ReadTypedValue() common code.
svn path=/trunk/mcs/; revision=37627
|
|
* XsdKeyTable.cs :
Replaced ArrayList with new XsdKeyEntryCollection type.
Workarounded bug #70419.
* XsdValidatingReader.cs : propagate validation event handler and
XmlResolver. And used them.
Renamed local variables a bit (unified to other blocks).
svn path=/trunk/mcs/; revision=37581
|
|
* XsdValidatingReader.cs,
XsdParticleValidationState.cs : Fixed the previous problem ==
inconsistent start assessment and end assessment.
More refactory: stateManager is just renamed to state, and its type
name is now XsdParticleStateManager.
Now Context is included in state.
Shortened lengthy xsd related type names with usingdecl.
svn path=/trunk/mcs/; revision=37518
|
|
* XsdValidatingReader.cs : mhm, something is wrong with call to
context.PopScope(). So quick fix and marked as FIXME.
svn path=/trunk/mcs/; revision=37490
|
|
* XsdParticleValidationState.cs : removed unused enum.
* XsdValidatingReader.cs : more refactoring. Validation process is
now strictly done only when not skipping (no side effect).
- elementQnameStack is used only in keyref resolution, so just moved
Pop() into EndElement block and thus removed popContext.
- Renamed currentQName to attrQName (only used for attribute).
- Create defaultAttributes array only when required.
So now XsdValidationContext has only Element, State and XsiType.
- It now just holds Stack for state objects (instead of Hashtable).
Child state is set inside StartElementSchemaValidity (it is kind
of StartTagCloseDeriv()).
- Removed Clear().
svn path=/trunk/mcs/; revision=37489
|
|
* XsdValidatingReader.cs : more refactoring on XsdValidationContext.
context.Load() was unnecessary. SchemaType is not necessary.
SiblingState and Element are now not accessed externally.
svn path=/trunk/mcs/; revision=37482
|
|
* XsdValidatingReader.cs : more refactoring.
svn path=/trunk/mcs/; revision=37474
|
|
* XsdValidatingReader.cs : making smarter relationship between
XmlValidatingReader. Added ValidationEventHandler and ValidationType.
nonDefaultAttributeCount was extraneous.
Added 'checkIdentity' (i.e. !IgnoreIdentityConstraints).
DefaultAttributesCache property did make little sense, so just
reverted to ArrayList field.
* XmlValidatingReader.cs : making smarter relationship between
XsdValidatingReader.
svn path=/trunk/mcs/; revision=37429
|
|
* XsdValidatingReader.cs : warning elimination
svn path=/trunk/mcs/; revision=36593
|
|
* XsdValidatingReader.cs : commented out some fields and depending
code that are currently not used.
Fixed "one incorrect missing component handling" in the last commit
(it was correct).
* XsdIdentityState.cs : removed unused fields and local variables.
svn path=/trunk/mcs/; revision=36467
|
|
* XsdValidatingReader.cs : quick fix for bug #69620. In some cases
SchemaSet looks not compiled.
Fixed one incorrect missing component handling.
svn path=/trunk/mcs/; revision=36340
|