private void Init(XPathNavigator nav, string xpointer)
        {
            var pointer = XPointerParser.ParseXPointer(xpointer);

            _pointedNodes = pointer.Evaluate(nav);
            //There is always at least one identified node
            //XPathNodeIterator is already at the first node
            _reader = new SubtreeXPathNavigator(_pointedNodes.Current).ReadSubtree();
        }
Exemple #2
0
 public static Pointer Compile(string xpointer)
 {
     return(XPointerParser.ParseXPointer(xpointer));
 }