Sample code for 30+ languages & platforms
Perl

HTML-to-XML/Text Examples for Chilkat2 Perl