Omer van Kloeten's .NET Zen

Programming is life, the rest is mere details

News

Omer van Kloeten's Facebook profile

Omer has been professionally developing applications over the past 8 years, both at the IDF’s IT corps and later at the Sela Technology Center, but has had the programming bug ever since he can remember himself.
As a senior developer at NuConomy, a leading web analytics and advertising startup, he leads a wide range of technologies for its flagship products.

Get Firefox


powered by Dapper 

.NET Resources

Articles :: CodeDom

Articles :: nGineer

Culture

Projects

HTML to JavaScript HTML DOM Converter

One of our products demands converting quite a large amount of HTML to equivalent scripts, written in JavaScript that create said HTML. Looking around the Internet, I found no tool that will automate this process for me, so I went ahead and created this simple little application.

htmltojsdom

I've written it using HTML Agility Pack and Simple CSS Parser. It’s hardly perfect and might incorrectly reference attributes, but I’ve tweaked it long enough for it to work, I’m guessing, 95% of the time.

The source is not yet included (I want to set it up as a project on CodePlex later on), but for now you can download it from here.

Comments

Alexander Gyoshev said:

$(html).appendTo("#myLovelyDiv"); ?

http://visualjquery.com/

# December 20, 2008 6:52 AM

Omer van Kloeten said:

Sometimes you just can't use jQuery... :/

# December 20, 2008 7:40 AM

Marc said:

amazing:

Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

# December 21, 2008 9:04 AM

Omer van Kloeten said:

You need to install the .NET Framework 3.5 on your computer.

# December 21, 2008 12:30 PM

Community Blogs said:

.NET 7 Good Rules to Log Exceptions State Machines With Enumerations Periodic Execution in .NET String

# December 22, 2008 10:46 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)