I'm looking for a quick and easy method to check if a given string is a开发者_Python百科 valid xpath. Does anybody know if something like this exists?
You could try to compile it into a XPathExpression. http://msdn.microsoft.com/en-us/library/system.xml.xpath.xpathexpression.aspx
The nice side-benefit is that, if it works, you have a compiled expression that you can just execute.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论