Hi All,

I'm having a minor brain melt down... I know I have done this before, but
my brain is not co-operating with me today.

I have a xml file that kind of looks like this

<dir>
<dir name="images">
<dir name="nuke" />
<dir name="maya" />
</dir>
<dir name="cache">
<dir name="sim">
<dir name="ice" />
<dir name="nucleus" />
</dir>
</dir>
</dir>


And I'm trying to use xml.dom.minidom to create a folder structure from
it... and I can't seem to be able to extract the hierarchy. The problem I
have right now is to catch on how deep each folder is. Any suggestion would
be most helpful right now as I'm feeling old and stupid :) Maybe xml isn't
the way to go when constructing complex folder structures. Anyhow, any
input would be most helpful.

best regards
stefan


-- 
*Stefan Andersson | Digital Janitor*
blog <http://sanders3d.wordpress.com> | showreel<http://vimeo.com/sanders3d>|
twitter <http://twitter.com/sanders3d> |
LinkedIn<http://www.linkedin.com/in/sanders3d>| cell: +46-73-6268850 |
skype:sanders3d

Reply via email to