It is if I guessed the field names correctly. They are case sensitive, so it’s likely that you will need to change some lower case letters to upper case or vice versa, at the very least.
For some background, I’m an avid LEGO designer/builder. This procedure allowed me to convert my parts list into the xml format needed to upload to a “Wanted List” on the Bricklink website. Bricklink is a worldwide market place for purchasing LEGO parts. Again thanks for your help. Regards, John
A suggestion for the future - this procedure could be created with less typing by using the xtag( function. This would eliminate the need to type each tag name twice, and also eliminate the need to type the /. So less chance for errors.
So for example:
" <COLOR>"+Color+"</COLOR>"+lf()+
could be written as:
" "+xtag("COLOR",Color)+lf()+
A minor change, but slightly easier. I wouldn’t change the working code you already have though.
As I said, I wouldn’t bother changing the working code you already have. I added my suggestion for the benefit of future readers who may come across this topic months or years from now.
You would place this statement ahead of the filesave statement, and you would use the variable you used to capture the path as the first parameter in the filesave.