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

◆ ValidateChildrenTillNextAncestor()

void System.Xml.DocumentSchemaValidator.ValidateChildrenTillNextAncestor ( XmlNode parentNode,
XmlNode childToStopAt )
inlineprivate

Definition at line 627 of file DocumentSchemaValidator.cs.

628 {
629 XmlNode xmlNode = parentNode.FirstChild;
630 while (xmlNode != null && xmlNode != childToStopAt)
631 {
632 switch (xmlNode.NodeType)
633 {
634 case XmlNodeType.EntityReference:
636 break;
637 case XmlNodeType.Element:
639 break;
640 case XmlNodeType.Text:
641 case XmlNodeType.CDATA:
643 break;
644 case XmlNodeType.Whitespace:
645 case XmlNodeType.SignificantWhitespace:
647 break;
648 default:
650 case XmlNodeType.ProcessingInstruction:
651 case XmlNodeType.Comment:
652 break;
653 }
654 xmlNode = xmlNode.NextSibling;
655 }
656 }
static string Xml_UnexpectedNodeType
Definition SR.cs:236
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
void ValidateSingleElement(XmlElement elementNode, bool skipToEnd, XmlSchemaInfo newSchemaInfo)
void ValidateChildrenTillNextAncestor(XmlNode parentNode, XmlNode childToStopAt)
void ValidateWhitespace(string elementValue)
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DocumentSchemaValidator._currentNode, System.Xml.DocumentSchemaValidator._validator, System.Xml.XmlNode.FirstChild, System.SR.Format(), System.Xml.XmlNode.NodeType, System.Xml.DocumentSchemaValidator.ValidateChildrenTillNextAncestor(), System.Xml.DocumentSchemaValidator.ValidateSingleElement(), System.Xml.Schema.XmlSchemaValidator.ValidateText(), System.Xml.Schema.XmlSchemaValidator.ValidateWhitespace(), and System.SR.Xml_UnexpectedNodeType.

Referenced by System.Xml.DocumentSchemaValidator.GetTypeFromAncestors(), and System.Xml.DocumentSchemaValidator.ValidateChildrenTillNextAncestor().