Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Directory Scanning >Thread Next - Re: Directory Scanning Re: Directory ScanningTo: 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. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
