System\Xml\Xsl\Runtime\XmlQueryOutput.cs (24)
163Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Element, ValidateNames.Flags.All), "Name validation failed");
166ConstructWithinContent(XPathNodeType.Element);
634WriteStartComputed(XPathNodeType.Element, tagName, prefixMappingsIndex);
642WriteStartComputed(XPathNodeType.Element, tagName, ns);
650WriteStartComputed(XPathNodeType.Element, navigator);
658WriteStartComputed(XPathNodeType.Element, name);
938Debug.Assert(navigator.NodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
954if (navigator.NodeType == XPathNodeType.Element)
1044Debug.Assert(nodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
1102case XPathNodeType.Element:
1205Debug.Assert(navigator.NodeType == XPathNodeType.Element);
1219Debug.Assert(navigator.NodeType == XPathNodeType.Element, "Only elements have namespaces to copy");
1257Debug.Assert(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction);
1333case XmlState.EnumAttrs: return XPathNodeType.Element;
1334case XmlState.WithinContent: return XPathNodeType.Element;
1341return XPathNodeType.Element;
1451if (nodeType == XPathNodeType.Element)
1470if (nodeType == XPathNodeType.Element)
1493if (nodeType == XPathNodeType.Element)
1508prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty;
1511if (nodeType == XPathNodeType.Element)
1527prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty;
1568case XPathNodeType.Element:
1583goto case XPathNodeType.Element;