In this fiddle we're creating a vector layer from a KML string.
Dojo 1.7.8, HTML, CSS, JavaScript
Dojo 1.8.10, HTML, CSS, JavaScript