System.Xml.Xsl.Runtime.RtfNavigator.ToNavigator C# (CSharp) Method

ToNavigator() public abstract method

Discard serialization hints and return a navigator that actually allows navigation.
public abstract ToNavigator ( ) : XPathNavigator
return System.Xml.XPath.XPathNavigator
        public abstract XPathNavigator ToNavigator();

Usage Example

Ejemplo n.º 1
0
        public static XPathNavigator ToNode(XPathItem item)
        {
            XsltLibrary.CheckXsltValue(item);

            if (!item.IsNode)
            {
                // Create Navigator over text node containing string value of item
                XPathDocument doc    = new XPathDocument();
                XmlRawWriter  writer = doc.LoadFromWriter(XPathDocument.LoadFlags.AtomizeNames, string.Empty);
                writer.WriteString(ToString(item));
                writer.Close();
                return(doc.CreateNavigator());
            }

            RtfNavigator rtf = item as RtfNavigator;

            if (rtf != null)
            {
                return(rtf.ToNavigator());
            }

            return((XPathNavigator)item);
        }
All Usage Examples Of System.Xml.Xsl.Runtime.RtfNavigator::ToNavigator