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

◆ ValidateDocument()

void System.Xml.Linq.XDocument.ValidateDocument ( XNode previous,
XmlNodeType allowBefore,
XmlNodeType allowAfter )
inlineprivate

Definition at line 443 of file XDocument.cs.

444 {
446 if (xNode == null)
447 {
448 return;
449 }
450 if (previous == null)
451 {
453 }
454 do
455 {
456 xNode = xNode.next;
457 XmlNodeType nodeType = xNode.NodeType;
458 if (nodeType == XmlNodeType.Element || nodeType == XmlNodeType.DocumentType)
459 {
460 if (nodeType != allowBefore)
461 {
463 }
464 allowBefore = XmlNodeType.None;
465 }
466 if (xNode == previous)
467 {
469 }
470 }
471 while (xNode != content);
472 }
static string InvalidOperation_DocumentStructure
Definition SR.cs:40
Definition SR.cs:7

References System.Xml.Linq.XNode.XNode(), System.Xml.Linq.XContainer.content, System.Xml.Dictionary, and System.SR.InvalidOperation_DocumentStructure.

Referenced by System.Xml.Linq.XDocument.ValidateNode().