private Allows ( |
||
qname | ||
Résultat | bool |
private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) { if (!baseAny.Allows(derivedElement.QualifiedName)) { restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString()); return false; } if (!IsValidOccurrenceRangeRestriction(derivedElement, baseAny)) { restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString()); return false; } return true; }
private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) { return (baseAny.Allows(derivedElement.QualifiedName) && this.IsValidOccurrenceRangeRestriction(derivedElement, baseAny)); }
private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) { if (!baseAny.Allows(derivedElement.QualifiedName)) { this.restrictionErrorMsg = Res.GetString("Sch_ElementFromAnyRule1", new object[] { derivedElement.QualifiedName.ToString() }); return false; } if (!this.IsValidOccurrenceRangeRestriction(derivedElement, baseAny)) { this.restrictionErrorMsg = Res.GetString("Sch_ElementFromAnyRule2", new object[] { derivedElement.QualifiedName.ToString() }); return false; } return true; }