Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Directory Scanning

From: Alan Searle <aj_searle@--------.--->
To: NULL
Date: 3/2/2006 5:57:00 PM
Hi Joe,

>> 1. Which is the best structure to store variable depth heirarchies in 
>> XML (i.e. different branches of the directory structure will have 
>> different 'depths').
> 
> 
> XML structure is a tree. Directory structure is a tree (barring 
> additional links/symlinks). Map the latter to the former, however makes 
> most stense for your application.

OK.  But other contributers have said I should only store data in the 
very 'tips' of the XML tree (i.e. not in intermediate branches).  This 
seems to rule out handling directory structures in the body of the tree.

Or should I use the directory names as 'tags' rather than data items in 
the tree?

>> coding 'leg-work'?  (i.e. directly transfer the directory structures 
>> into XML)
> 
> 
> Find a code example of walking a directory tree. Alter it to output XML.

Yes, I have found some code to handle this :-)

Thanks very much for your tips.

Regards,
Alan Searle.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent