Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 XPathNavigator.Select 选择选定节点值的子字符串?
例如,我想做的是:
xPath = @"//object/@data/substring-after(., '\')" var pathNavigator = xdoc.CreateNavigator(); var pathNodeIterator = pathNavigator.Select(xPath);
在.NET 实现中——不是。获得所需结果后,您应该使用 .NET 字符串函数。