Converting CSS selectors to XPath selectors with C#: css2xpath Reloaded

Almost three years ago I released css2xpath#, a port of Andrea Giammarchi’s project by the same name. Today, I’m excited to announce a new project, css2xpath Reloaded, which will supplant my previous project. css2xpath Reloaded does the same thing that css2xpath# did (convert CSS selectors to XPath selectors), but is instead based off of Ian […]

Using css2xpath to inline CSS stylesheets

I was looking through my referrer stats the other day and found a neat use of my port of css2xpath: http://chrispebble.com/inlining-a-css-stylesheet-with-c/. The author uses css2xpath to aid in inlining CSS stylesheets. Here is an excerpt of the project (I trimmed the first two paragraphs): This week I worked on adding confirmation emails to our quiz system and […]

Automatically embedding images in CSS: CSS Image Embedder

I’ve created a quick, simple tool that converts CSS file references (like url(images/someimage.png)) to inline image data (like url(‘data:….’)). Written in C#, and available as an open source download (see below), the tool is a point-and-click alternative to manually making the data URIs. To use the tool, follow these three steps: Open the CSS file […]

Converting CSS selectors to XPath selectors with C#: css2xpath

While working with HtmlAgilityPack to build a web scrapper/crawler, I noticed something: I hate XPath. It’s big, clunky, and verbose. After a bit of searching, I found a neat online app: http://css2xpath.appspot.com/. As the name suggests, it converts CSS selectors to XPath selectors. The only problem is that I wanted a client-side solution. A little […]