Full Version : Generating XML file
xmlspawner >>Scripting Support >>Generating XML file


<< Prev | Next >>

Dreef- 07-17-2006
Hello everyone ...
Maybe this is wrong forum for my question ... but i'm out of ideas where to post my "request" :-).

If i take it from beggining. I've got a simple software created in Visual Basic, which have functionality as "autoupdater" and his "quest" is to download only newer files from server ... information if the file is newer he getting from XML file ... this XML must look like this ...

QUOTE
-
<Files>
-
<Extra>
<FileName>file1.ext</FileName>
<MD5>2d2e6fc743c9065d163c0e01b7f7e024</MD5>
<Size>131200</Size>
<LocalPath>folder/subfolder/</LocalPath>
<ServerPath>folder/</ServerPath>
</Extra>
-
<Extra>
<FileName>file2.ext</FileName>
<MD5>eef6dd9b8bce38bae0dbe846ec98e7aa</MD5>
<Size>741240</Size>
<LocalPath>folder/subfolder/</LocalPath>
<ServerPath>folder/</ServerPath>
</Extra>
-
<Extra>
<FileName>file3.ext</FileName>
<MD5>4d57326d8d971011932e0c5a52e58e8b</MD5>
<Size>34700</Size>
<LocalPath>folder/subfolder/</LocalPath>
<ServerPath>folder/</ServerPath>
</Extra>
</Files>


Now i must enter all values by hand ... and in fact that these files r updated so often and its high ammount of em ... my decision is to find a way how to generate it automaticaly ...

So the best way for me is to find console application which i can place somewhere and it will scan folder or same path with these files and he will write XML file with these values after run? Can it be that easy?

Paths can be constatns because this feature is there if i need to edit any UO files in diff folders :-)

If can someone point me to any already done software or have someone a lil time to spare for me by creating it ... i will kiss ur feet :-) Thx for reply ...