Amy Do you have any code to show us? What part of the assignment are you stuck on? Give a little something to work with -- most people will not simpley tell you how to do your homework (that's what this sounds like).
posted 17 years ago
[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ] [ July 23, 2002: Message edited by: Dirk Schreckmann ]
You have to find a way to distinguish xml files from others. Once you do that then you can code the solution. So what do all xml files have in common? Then when you know that you don't have an xml file you can throw an exception or something like that.