Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateWhitespace() [1/3]

void System.Xml.Schema.XmlSchemaValidator.ValidateWhitespace ( string elementStringValue,
XmlValueGetter elementValueGetter )
inlineprivate

Definition at line 873 of file XmlSchemaValidator.cs.

874 {
875 ValidatorState validatorState = ((_validationStack.Length > 1) ? ValidatorState.Whitespace : ValidatorState.TopLevelTextOrWS);
878 {
879 return;
880 }
881 if (_context.IsNill)
882 {
884 }
886 {
887 case XmlSchemaContentType.Empty:
889 break;
890 case XmlSchemaContentType.TextOnly:
891 if (elementValueGetter != null)
892 {
894 }
895 else
896 {
898 }
899 break;
900 case XmlSchemaContentType.Mixed:
902 {
903 if (elementValueGetter != null)
904 {
906 }
907 else
908 {
910 }
911 }
912 break;
913 case XmlSchemaContentType.ElementOnly:
914 break;
915 }
916 }
static string Sch_ContentInNill
Definition SR.cs:784
static string Sch_InvalidWhitespaceInEmpty
Definition SR.cs:918
Definition SR.cs:7
void CheckStateTransition(ValidatorState toState, string methodName)
static string QNameString(string localName, string ns)

References System.Xml.Schema.XmlSchemaValidator._context, System.Xml.Schema.XmlSchemaValidator.CheckStateTransition(), System.Xml.Schema.ContentValidator.ContentType, System.Xml.Schema.SchemaElementDecl.ContentValidator, System.Xml.Schema.SchemaDeclBase.DefaultValueTyped, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.ValidationState.IsNill, System.Xml.Schema.ValidationState.LocalName, System.Xml.Schema.ValidationState.Namespace, System.Xml.Schema.ValidationState.NeedValidateChildren, System.Xml.Schema.XmlSchemaValidator.QNameString(), System.Xml.Schema.XmlSchemaValidator.s_methodNames, System.Xml.Schema.XmlSchemaValidator.SaveTextValue(), System.SR.Sch_ContentInNill, System.SR.Sch_InvalidWhitespaceInEmpty, and System.Xml.Schema.XmlSchemaValidator.SendValidationEvent().