I managed to create a SVG file containing the D3JS tree layout, however, the data in the file is enclosed in a tags instead of tags.