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

◆ ValidateNodes()

void System.Xml.Schema.XNodeValidator.ValidateNodes ( XElement e)
inlineprivate

Definition at line 346 of file XNodeValidator.cs.

347 {
349 IXmlLineInfo originalLineInfo = SaveLineInfo(xNode);
350 if (xNode != null)
351 {
352 do
353 {
354 xNode = xNode.next;
355 if (xNode is XElement e2)
356 {
358 }
359 else if (xNode is XText xText)
360 {
361 string value = xText.Value;
362 if (value.Length > 0)
363 {
366 }
367 }
368 }
369 while (xNode != e.content);
370 source = e;
371 }
372 else if (e.content is string { Length: >0 } text)
373 {
375 }
377 }
void RestoreLineInfo(IXmlLineInfo originalLineInfo)
IXmlLineInfo SaveLineInfo(XObject source)

References System.Xml.Linq.XContainer.content, System.Xml.Dictionary, System.Xml.Schema.XNodeValidator.RestoreLineInfo(), System.Xml.Schema.XNodeValidator.SaveLineInfo(), System.Xml.Schema.XNodeValidator.source, System.text, System.Xml.Schema.XNodeValidator.ValidateElement(), System.Xml.Schema.XmlSchemaValidator.ValidateText(), System.Xml.Schema.XNodeValidator.validator, and System.value.

Referenced by System.Xml.Schema.XNodeValidator.ValidateElement().