Exemple #1
0
 public IXmlCursor Select(
     CompiledXPath path,
     IXmlIncludedTypeMap knownTypes,
     IXmlNamespaceSource namespaces,
     CursorFlags flags
     )
 {
     return(node.Select(path, knownTypes, namespaces, flags));
 }
Exemple #2
0
        public IXmlCursor SelectBase(IXmlNode node)         // node is root
        {
            if (path != null)
            {
                return(node.Select(path, this, context, RootFlags));
            }

            return(node.SelectChildren(this, context, RootFlags));
        }
Exemple #3
0
        public void AsVirtual_WhenParentIsRealNode()
        {
            IXmlNode root   = Node("<X/>");
            var      cursor = root.Select(Path("Item"), IncludedTypes, NamespaceSource.Instance, CursorFlags.Mutable);

            cursor.MoveNext();
            IXmlNode node = cursor;

            node.Value = "1";

            CustomAssert.AreXmlEquivalent("<X> <Item>1</Item> </X>", root.Xml);
        }
Exemple #4
0
        public override IXmlCursor SelectCollectionItems(IXmlNode node, bool create)
        {
            var flags = CursorFlags.AllNodes.MutableIf(create) | CursorFlags.Multiple;

            return(node.Select(path, this, Context, flags));
        }
Exemple #5
0
        public override IXmlCursor SelectPropertyNode(IXmlNode node, bool create)
        {
            var flags = CursorFlags.AllNodes.MutableIf(create);

            return(node.Select(path, this, Context, flags));
        }