For example, here is the XML from a TOAW *.gam file:



ORIGINAL: 76mm
....in particular, the data in the *.eqp files does not seem to be hierarchical, and does not seem to include XML features such as attributes.
So can anyone suggest how to work with the data in these files in C#? I guess I can use Regex? Or is there a better way to proceed? At least at this stage, I think I only need read-only access, if that matters.
Hey Larry, thanks, that's really helpful, and more or less confirms what I'm seeing. So when you were "just editing the contents" (:-)) were you doing it manually or programatically? Do you know if there is there an easy way to work with XML tags-as-commas? I'm sure it I could make it work with Regex, but my understanding is that Regex is fiendishly difficult and I'd rather avoid it if possible...Think of the XML tags as commas separating the values.
So when you were "just editing the contents" (:-)) were you doing it manually or programatically?
ORIGINAL: larryfulkerson
ORIGINAL: 76mm
....in particular, the data in the *.eqp files does not seem to be hierarchical, and does not seem to include XML features such as attributes.
So can anyone suggest how to work with the data in these files in C#? I guess I can use Regex? Or is there a better way to proceed? At least at this stage, I think I only need read-only access, if that matters.
IIRC early in the design process many years ago when the separate output files were being designed I seem to remember the combat losses being output in XML and I needed to parse the file to get values I needed but then CSV style came along and it was a tiny bit easier to parse. I got the impression that the EQP files weren't true XML but rather a really handy way to designate the various values for each item of equipment describing them as a collection of parameters handled as a group. Don't think of it so much as an XML file but a new way of describing disperate pieces of equipment. The file isn't going to be read as true XML but rather as just another input file. Think of the XML tags as commas separating the values. [ Also, the CSV files aren't true CSV files because the column headers are missing from the output stream. ]. I've learned to just edit the contents and not worry so much about keeping it a true XML document.
Nope. Ralph has been very helpful on the couple of topics that I've asked him about, but his attention is a scarce resource so I'd prefer to only ask him about stuff as a last resort. Larry and cathar have provided helpful info, so not sure I'll turn to Ralph on this one.I don't suppose anyone has bothered asking Ralph about this? Or maybe Bob?
I had to strip off the numbers and reduce them all to "item" with the numeric suffix.
Really ? They don't have the time needed to work on the game and you want them to contribute to a third party program that will eventually become as useless as Bio-Ed, Scenario Viewer and OOD ?ORIGINAL: Lobster
I don't suppose anyone has bothered asking Ralph about this? Or maybe Bob? [:)]
Yeah, I understood [;)]ORIGINAL: cathar1244
Sorry, I meant to write without the numeric suffix vice "with". Everything then started with <ITEM> and closed with </ITEM>. Since the import read the records in sequential order, it didn't trouble me. I suppose one could write a brief program in VBA behind excel to import .eqp files and write them back out
Whoa, dude, all the negative waves! [:D]ORIGINAL: sPzAbt653
Really ? They don't have the time needed to work on the game and you want them to contribute to a third party program that will eventually become as useless as Bio-Ed, Scenario Viewer and OOD ?
ORIGINAL: 76mm
Nope. Ralph has been very helpful on the couple of topics that I've asked him about, but his attention is a scarce resource so I'd prefer to only ask him about stuff as a last resort. Larry and cathar have provided helpful info, so not sure I'll turn to Ralph on this one.I don't suppose anyone has bothered asking Ralph about this? Or maybe Bob?
[EDIT] And Bob seems to monitor the forum pretty closely and jump in as necessary, so generally I don't address specific issues to him either...

Sure, Notepad++ can open them too, but if you look at the file, it is not "real" XML.ORIGINAL: Curtis Lemay
XMLPad doesn't seem to have any issue with them:
Nope, off by a country mile. [8D]ORIGINAL: VHauser
Am I close?