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

◆ CopyNode()

void System.Xml.Xsl.Runtime.XmlMergeSequenceWriter.CopyNode ( XPathNavigator nav)
inlineprivate

Definition at line 63 of file XmlMergeSequenceWriter.cs.

64 {
65 int num = 0;
66 while (true)
67 {
68 if (CopyShallowNode(nav))
69 {
70 XPathNodeType nodeType = nav.NodeType;
71 if (nodeType == XPathNodeType.Element)
72 {
73 if (nav.MoveToFirstAttribute())
74 {
75 do
76 {
77 CopyShallowNode(nav);
78 }
79 while (nav.MoveToNextAttribute());
80 nav.MoveToParent();
81 }
84 {
86 nav.MoveToParent();
87 }
89 }
90 if (nav.MoveToFirstChild())
91 {
92 num++;
93 continue;
94 }
95 if (nav.NodeType == XPathNodeType.Element)
96 {
98 }
99 }
100 while (true)
101 {
102 if (num == 0)
103 {
104 return;
105 }
106 if (nav.MoveToNext())
107 {
108 break;
109 }
110 num--;
111 nav.MoveToParent();
112 if (nav.NodeType == XPathNodeType.Element)
113 {
115 }
116 }
117 }
118 }
bool MoveToFirstNamespace(XPathNamespaceScope namespaceScope)
override void WriteEndElement()
override void WriteFullEndElement()
void CopyNamespaces(XPathNavigator nav, XPathNamespaceScope nsScope)

References System.Xml.Xsl.Runtime.XmlMergeSequenceWriter._xwrt, System.Xml.Xsl.Runtime.XmlMergeSequenceWriter.CopyNamespaces(), System.Xml.Xsl.Runtime.XmlMergeSequenceWriter.CopyShallowNode(), System.Xml.Dictionary, System.Xml.XPath.XPathNavigator.LocalName, System.Xml.XPath.XPathNavigator.MoveToFirstAttribute(), System.Xml.XPath.XPathNavigator.MoveToFirstChild(), System.Xml.XPath.XPathNavigator.MoveToFirstNamespace(), System.Xml.XPath.XPathNavigator.MoveToNext(), System.Xml.XPath.XPathNavigator.MoveToNextAttribute(), System.Xml.XPath.XPathNavigator.MoveToParent(), System.Xml.XPath.XPathNavigator.NamespaceURI, System.Xml.XPath.XPathNavigator.NodeType, System.Xml.XPath.XPathNavigator.Prefix, System.Xml.XmlRawWriter.StartElementContent(), System.Xml.XmlRawWriter.WriteEndElement(), and System.Xml.XmlRawWriter.WriteFullEndElement().

Referenced by System.Xml.Xsl.Runtime.XmlMergeSequenceWriter.WriteItem().