67 references to XmlState
System.Data.SqlXml (67)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (67)
46private XmlState xstate; // Current XML state 66this.xstate = XmlState.WithinSequence; 76this.xstate = XmlState.WithinContent; 184if (this.xstate == XmlState.EnumAttrs) { 235if (this.xstate == XmlState.WithinNmsp) { 383Debug.Assert(this.xstate == XmlState.WithinSequence, "StartTree cannot be called in the " + this.xstate + " state."); 386this.xstate = (rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace) ? XmlState.EnumAttrs : XmlState.WithinContent; 393Debug.Assert(this.xstate == XmlState.EnumAttrs || this.xstate == XmlState.WithinContent, "EndTree cannot be called in the " + this.xstate + " state."); 395this.xstate = XmlState.WithinSequence; 408Debug.Assert(this.xstate == XmlState.WithinContent, "WriteStartElement cannot be called in the " + this.xstate + " state."); 414this.xstate = XmlState.EnumAttrs; 429Debug.Assert(this.xstate == XmlState.EnumAttrs, "StartElementContent cannot be called in the " + this.xstate + " state."); 436this.xstate = XmlState.WithinContent; 443Debug.Assert(this.xstate == XmlState.EnumAttrs || this.xstate == XmlState.WithinContent, "WriteEndElement cannot be called in the " + this.xstate + " state."); 445this.xstate = XmlState.WithinContent; 461Debug.Assert(this.xstate == XmlState.EnumAttrs, "WriteStartAttribute cannot be called in the " + this.xstate + " state."); 463this.xstate = XmlState.WithinAttr; 478Debug.Assert(this.xstate == XmlState.WithinAttr, "WriteEndAttribute cannot be called in the " + this.xstate + " state."); 480this.xstate = XmlState.EnumAttrs; 493Debug.Assert(this.xstate == XmlState.EnumAttrs, "WriteNamespaceDeclaration cannot be called in the " + this.xstate + " state."); 523Debug.Assert(this.xstate != XmlState.WithinSequence && this.xstate != XmlState.EnumAttrs, "WriteTextBlock cannot be called in the " + this.xstate + " state."); 531Debug.Assert(this.xstate != XmlState.WithinSequence && this.xstate != XmlState.EnumAttrs, "WriteTextBlockNoEntities cannot be called in the " + this.xstate + " state."); 545if (this.xstate != XmlState.WithinSequence) 684this.xstate = XmlState.WithinNmsp; 692Debug.Assert(this.xstate == XmlState.WithinNmsp, "WriteNamespaceString cannot be called in the " + this.xstate + " state."); 700Debug.Assert(this.xstate == XmlState.WithinNmsp, "WriteEndNamespace cannot be called in the " + this.xstate + " state."); 702this.xstate = XmlState.EnumAttrs; 720this.xstate = XmlState.WithinComment; 728Debug.Assert(this.xstate == XmlState.WithinComment, "WriteCommentString cannot be called in the " + this.xstate + " state."); 736Debug.Assert(this.xstate == XmlState.WithinComment, "WriteEndComment cannot be called in the " + this.xstate + " state."); 740this.xstate = XmlState.WithinContent; 760this.xstate = XmlState.WithinPI; 768Debug.Assert(this.xstate == XmlState.WithinPI, "WriteProcessingInstructionString cannot be called in the " + this.xstate + " state."); 776Debug.Assert(this.xstate == XmlState.WithinPI, "WriteEndProcessingInstruction cannot be called in the " + this.xstate + " state."); 780this.xstate = XmlState.WithinContent; 797if (this.xstate == XmlState.WithinSequence) 804Debug.Assert(this.xstate == XmlState.WithinSequence, "Values can only be written at the top-level."); 893case XmlState.WithinSequence: 896goto case XmlState.WithinContent; 898case XmlState.WithinContent: 905case XmlState.EnumAttrs: 908goto case XmlState.WithinContent; 910case XmlState.WithinAttr: 914case XmlState.WithinNmsp: 918case XmlState.WithinComment: 923case XmlState.WithinPI: 1063Debug.Assert(this.xstate != XmlState.WithinSequence, "StartCopy should not called if state is WithinSequence"); 1093Debug.Assert(this.xstate == XmlState.WithinContent, "EndCopy cannot be called in the " + this.xstate + " state."); 1142case XmlState.WithinSequence: 1145this.xstate = XmlState.WithinContent; 1148case XmlState.WithinContent: 1152case XmlState.EnumAttrs: 1171case XmlState.WithinSequence: 1173this.xstate = XmlState.EnumAttrs; 1176case XmlState.EnumAttrs: 1206private XPathNodeType XmlStateToNodeType(XmlState xstate) { 1208case XmlState.EnumAttrs: return XPathNodeType.Element; 1209case XmlState.WithinContent: return XPathNodeType.Element; 1210case XmlState.WithinAttr: return XPathNodeType.Attribute; 1211case XmlState.WithinComment: return XPathNodeType.Comment; 1212case XmlState.WithinPI: return XPathNodeType.ProcessingInstruction; 1437if (this.xstate == XmlState.WithinContent)