Okay, so I get the concept of XML as a general rule but I've never had to program w/ it up to this point. So I'm confusing the heck out of myself here about what its the proper way to implement something.
My goal is to create an xml file that defines encodes our electronic file management process. So the required directory structure, file contents and naming procedures for projects. Simply put certain files have be in specific locations w/ certain names.
So is it better to :
- have the xml be structured like the directory: Meaning child directories are subsets w/in the xml data set?
- having a singular element for each required file type that describes the relative path from the top most parent?
In my mind option 1 would be the best bet. Am I correct?
Code:
<dir name="xxx">
<file ref="http://..." name="aaa" record="y" etc. ></file>
<file ref="http://..." name="bbb" record="n" etc. ></file>
<file ref="http://..." name="ccc" record="y" etc. ></file>
<dir name = "yyy">
</dir>
<dir>
Thanks for all the assistance on this.