VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Dir2XML

by Frodooo (3 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (12 Votes)

Dir2XML exports the directory structure, from a root folder of your choice on, in an XML file. I supplied a DTD to validate the XML, a XSL transform to render it in Internet Explorer, a CSS and some JavaScript to convert the whole into a nice DHTML application. This application is actually an extension of my Dir2HTML app and adds some nice features: dynamic HTML to collapse and expand on clicking folders, DHTML coloring on mouseover and a better lay-out in general. I think the XML should also be useful outside the browser now (you can use the MSXML to parse the nodes in VB for example) and is a nice example as well of how XML, XSL, CSS and JavaScript work together.

Inputs
The directory of your choice
Assumes
You need some good background in different languages (XML, JavaScript, XSL, CSS, VB) I think to understand how the various aspects of the application work. But it's rewarding, I think.
Code Returns
an XML file, renderable on screen via XSL
Side Effects
The XML export is only useful in IE I'm afraid. To use it for netscape you need to convert the XML via XSL on the server side. I do explain how in the ReadMe.txt file.

Rate Dir2XML

Download Dir2XML

Download Dir2XML (11 KB)

Dir2XML Comments

No comments have been posted about Dir2XML. Why not be the first to post a comment about Dir2XML.

Post your comment

Subject:
Message:
0/1000 characters