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

◆ ValidateNode()

void System.Xml.DocumentSchemaValidator.ValidateNode ( XmlNode node)
inlineprivate

Definition at line 257 of file DocumentSchemaValidator.cs.

258 {
260 switch (_currentNode.NodeType)
261 {
262 case XmlNodeType.Document:
263 {
264 XmlElement documentElement = ((XmlDocument)node).DocumentElement;
265 if (documentElement == null)
266 {
268 }
270 break;
271 }
272 case XmlNodeType.EntityReference:
273 case XmlNodeType.DocumentFragment:
274 {
275 for (XmlNode xmlNode = node.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
276 {
278 }
279 break;
280 }
281 case XmlNodeType.Element:
283 break;
284 case XmlNodeType.Attribute:
285 {
286 XmlAttribute xmlAttribute = _currentNode as XmlAttribute;
289 {
291 }
292 break;
293 }
294 case XmlNodeType.Text:
296 break;
297 case XmlNodeType.CDATA:
299 break;
300 case XmlNodeType.Whitespace:
301 case XmlNodeType.SignificantWhitespace:
303 break;
304 default:
306 case XmlNodeType.ProcessingInstruction:
307 case XmlNodeType.Comment:
308 break;
309 }
310 }
static string Xml_UnexpectedNodeType
Definition SR.cs:236
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_InvalidXmlDocument
Definition SR.cs:216
static string Xdom_NoRootEle
Definition SR.cs:1278
Definition SR.cs:7
object? ValidateAttribute(string localName, string namespaceUri, string attributeValue, XmlSchemaInfo? schemaInfo)
void ValidateWhitespace(string elementValue)
XmlName AddAttrXmlName(string prefix, string localName, string namespaceURI, IXmlSchemaInfo schemaInfo)
XmlDocument Document
Definition XmlNode.cs:253
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DocumentSchemaValidator._attributeSchemaInfo, System.Xml.DocumentSchemaValidator._currentNode, System.Xml.DocumentSchemaValidator._document, System.Xml.DocumentSchemaValidator._nodeValueGetter, System.Xml.DocumentSchemaValidator._psviAugmentation, System.Xml.DocumentSchemaValidator._validator, System.Xml.XmlDocument.AddAttrXmlName(), System.Xml.Dictionary, System.Xml.XmlNode.Document, System.SR.Format(), System.Xml.XmlNode.NodeType, System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(), System.Xml.DocumentSchemaValidator.ValidateElement(), System.Xml.DocumentSchemaValidator.ValidateNode(), System.Xml.Schema.XmlSchemaValidator.ValidateText(), System.Xml.Schema.XmlSchemaValidator.ValidateWhitespace(), System.SR.Xdom_NoRootEle, System.SR.Xml_InvalidXmlDocument, and System.SR.Xml_UnexpectedNodeType.

Referenced by System.Xml.DocumentSchemaValidator.Validate(), System.Xml.DocumentSchemaValidator.ValidateElement(), and System.Xml.DocumentSchemaValidator.ValidateNode().