You can try the Css2Xpath library found here: https://bitbucket.org/MostThingsWeb/css2xpath/wiki/Home
I have never used it, but maybe you can share your experience with us.
Below is a small usage example:
String css = "div#test .note span:first-child";
String xpath = css2xpath.Transform(css);
MUG4N source
share