posted 20 years ago
Your topic is "upload multiple xml files", so I assume you want to check that the file is xml before it is uploaded?
There is probably a javascript trick to do that on the client side.
Otherwise, if you have already uploaded the file and want to check it, there are a couple of things you can do.
First, look at the file extension. Not ".xml"? Probably not what you want.
Second, grab the first line out of the file. If it isn't an xml declaration, you probably don't want it.
Of course, validating the file will tell you right away if it valid xml or not...