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

◆ CopyNode()

void System.Xml.Xsl.Runtime.XmlQueryOutput.CopyNode ( XPathNavigator navigator)
inlineprivate

Definition at line 657 of file XmlQueryOutput.cs.

658 {
659 int depth = _depth;
660 while (true)
661 {
662 if (StartCopy(navigator, _depth == depth))
663 {
664 XPathNodeType nodeType = navigator.NodeType;
665 if (navigator.MoveToFirstAttribute())
666 {
667 do
668 {
670 }
671 while (navigator.MoveToNextAttribute());
672 navigator.MoveToParent();
673 }
674 CopyNamespaces(navigator, (_depth - 1 == depth) ? XPathNamespaceScope.ExcludeXml : XPathNamespaceScope.Local);
676 if (navigator.MoveToFirstChild())
677 {
678 continue;
679 }
680 EndCopy(navigator, _depth - 1 == depth);
681 }
682 while (true)
683 {
684 if (_depth == depth)
685 {
686 return;
687 }
688 if (navigator.MoveToNext())
689 {
690 break;
691 }
692 navigator.MoveToParent();
693 EndCopy(navigator, _depth - 1 == depth);
694 }
695 }
696 }
void EndCopy(XPathNavigator navigator)
bool StartCopy(XPathNavigator navigator)
void CopyNamespaces(XPathNavigator navigator, XPathNamespaceScope nsScope)

References System.Xml.Xsl.Runtime.XmlQueryOutput._depth, System.Xml.Xsl.Runtime.XmlQueryOutput.CopyNamespaces(), System.Xml.Xsl.Runtime.XmlQueryOutput.EndCopy(), System.Xml.Xsl.Runtime.XmlQueryOutput.StartCopy(), and System.Xml.Xsl.Runtime.XmlQueryOutput.StartElementContentUnchecked().

Referenced by System.Xml.Xsl.Runtime.XmlQueryOutput.WriteItem(), and System.Xml.Xsl.Runtime.XmlQueryOutput.XsltCopyOf().