System\Xml\Xsl\Runtime\XmlQueryOutput.cs (24)
162Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Element, ValidateNames.Flags.All), "Name validation failed");
165ConstructWithinContent(XPathNodeType.Element);
633WriteStartComputed(XPathNodeType.Element, tagName, prefixMappingsIndex);
641WriteStartComputed(XPathNodeType.Element, tagName, ns);
649WriteStartComputed(XPathNodeType.Element, navigator);
657WriteStartComputed(XPathNodeType.Element, name);
937Debug.Assert(navigator.NodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
953if (navigator.NodeType == XPathNodeType.Element)
1043Debug.Assert(nodeType == XPathNodeType.Element, "StartCopy should return true only for Element nodes.");
1101case XPathNodeType.Element:
1204Debug.Assert(navigator.NodeType == XPathNodeType.Element);
1218Debug.Assert(navigator.NodeType == XPathNodeType.Element, "Only elements have namespaces to copy");
1256Debug.Assert(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction);
1332case XmlState.EnumAttrs: return XPathNodeType.Element;
1333case XmlState.WithinContent: return XPathNodeType.Element;
1340return XPathNodeType.Element;
1450if (nodeType == XPathNodeType.Element)
1469if (nodeType == XPathNodeType.Element)
1492if (nodeType == XPathNodeType.Element)
1507prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty;
1510if (nodeType == XPathNodeType.Element)
1526prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty;
1567case XPathNodeType.Element:
1582goto case XPathNodeType.Element;