System\Xml\Xsl\Runtime\XmlQueryOutput.cs (24)
154Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Element, ValidateNames.Flags.All), "Name validation failed");
157ConstructWithinContent(XPathNodeType.Element);
579WriteStartComputed(XPathNodeType.Element, tagName, prefixMappingsIndex);
586WriteStartComputed(XPathNodeType.Element, tagName, ns);
593WriteStartComputed(XPathNodeType.Element, navigator);
600WriteStartComputed(XPathNodeType.Element, name);
850Debug.Assert(navigator.NodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
865if (navigator.NodeType == XPathNodeType.Element)
949Debug.Assert(nodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
1000case XPathNodeType.Element:
1092Debug.Assert(navigator.NodeType == XPathNodeType.Element);
1105Debug.Assert(navigator.NodeType == XPathNodeType.Element, "Only elements have namespaces to copy");
1139Debug.Assert(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction);
1208case XmlState.EnumAttrs: return XPathNodeType.Element;
1209case XmlState.WithinContent: return XPathNodeType.Element;
1216return XPathNodeType.Element;
1317if (nodeType == XPathNodeType.Element)
1335if (nodeType == XPathNodeType.Element)
1356if (nodeType == XPathNodeType.Element)
1370prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty;
1373if (nodeType == XPathNodeType.Element)
1387prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty;
1425case XPathNodeType.Element:
1440goto case XPathNodeType.Element;