/// <summary> /// Get the expected elements - elements which minOccurs >= 0. /// </summary> /// <param name="result"></param> /// <returns>True if there are expected elements in this particle.</returns> public virtual bool GetExpectedElements(ExpectedChildren result) { if (result != null) { result.Add(XsdAnyPrefidefinedValue.GetNamespaceString(_particleConstraint.NamespaceValue)); } return(true); }
/// <summary> /// Get the required elements - elements which minOccurs > 0. /// </summary> /// <param name="result"></param> /// <returns>True if there are required elements in this particle.</returns> public virtual bool GetRequiredElements(ExpectedChildren result) { if (this.ParticleConstraint.MinOccurs > 0) { if (result != null) { result.Add(XsdAnyPrefidefinedValue.GetNamespaceString(this._particleConstraint.NamespaceValue)); } return(true); } return(false); }