public IXmlCursor Select( CompiledXPath path, IXmlIncludedTypeMap knownTypes, IXmlNamespaceSource namespaces, CursorFlags flags ) { return(node.Select(path, knownTypes, namespaces, flags)); }
public IXmlCursor SelectBase(IXmlNode node) // node is root { if (path != null) { return(node.Select(path, this, context, RootFlags)); } return(node.SelectChildren(this, context, RootFlags)); }
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); }
public override IXmlCursor SelectCollectionItems(IXmlNode node, bool create) { var flags = CursorFlags.AllNodes.MutableIf(create) | CursorFlags.Multiple; return(node.Select(path, this, Context, flags)); }
public override IXmlCursor SelectPropertyNode(IXmlNode node, bool create) { var flags = CursorFlags.AllNodes.MutableIf(create); return(node.Select(path, this, Context, flags)); }