Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ StartCopy() [2/2]

bool System.Xml.Xsl.Runtime.XmlQueryOutput.StartCopy ( XPathNavigator navigator,
bool callChk )
inlineprivate

Definition at line 698 of file XmlQueryOutput.cs.

699 {
700 bool result = false;
701 switch (navigator.NodeType)
702 {
703 case XPathNodeType.Element:
704 if (callChk)
705 {
706 WriteStartElement(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI);
707 }
708 else
709 {
710 WriteStartElementUnchecked(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI);
711 }
712 result = true;
713 break;
714 case XPathNodeType.Attribute:
715 if (callChk)
716 {
717 WriteStartAttribute(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI);
718 }
719 else
720 {
721 WriteStartAttributeUnchecked(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI);
722 }
723 WriteString(navigator.Value);
724 if (callChk)
725 {
727 }
728 else
729 {
731 }
732 break;
733 case XPathNodeType.Namespace:
734 if (callChk)
735 {
736 if (Writer is XmlAttributeCache { Count: not 0 })
737 {
738 throw new XslTransformException(System.SR.XmlIl_NmspAfterAttr, string.Empty);
739 }
741 }
742 else
743 {
745 }
746 break;
747 case XPathNodeType.Text:
748 case XPathNodeType.SignificantWhitespace:
749 case XPathNodeType.Whitespace:
750 if (callChk)
751 {
753 }
754 else
755 {
757 }
758 break;
759 case XPathNodeType.Root:
761 break;
762 case XPathNodeType.Comment:
766 break;
767 case XPathNodeType.ProcessingInstruction:
771 break;
772 }
773 return result;
774 }
static string XmlIl_NmspAfterAttr
Definition SR.cs:2034
Definition SR.cs:7
void WriteNamespaceDeclarationUnchecked(string prefix, string ns)
override void WriteStartElement(string prefix, string localName, string ns)
override void WriteString(string text)
void WriteStartProcessingInstruction(string target)
void WriteStartElementUnchecked(string prefix, string localName, string ns)
void WriteProcessingInstructionString(string text)
void WriteStartAttributeUnchecked(string prefix, string localName, string ns)
override void WriteStartAttribute(string prefix, string localName, string ns)
void ThrowInvalidStateError(XPathNodeType constructorType)
void WriteNamespaceDeclaration(string prefix, string ns)

References System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteCommentString(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteEndAttribute(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteEndAttributeUnchecked(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteEndComment(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteEndProcessingInstruction(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteNamespaceDeclaration(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteNamespaceDeclarationUnchecked(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteProcessingInstructionString(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttributeUnchecked(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartComment(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartElement(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartElementUnchecked(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartProcessingInstruction(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteString(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStringUnchecked(), and System.SR.XmlIl_NmspAfterAttr.