Hey, I'm writing a program that I need to test with 1000s of XML files - any idea where I can get some?
Asked
Active
Viewed 646 times
0
-
2Are you writing an XML parser? – Jeremy Jan 14 '11 at 18:50
-
1No. I'm writing a metric spaces Library, and I want to test on Trees. – Robert Jan 14 '11 at 18:52
-
Could also use a bunch of "open" Office XML files (.docx, .xlsx, etc). – Ben L Jan 14 '11 at 21:47
-
Is it important that the test collection exercises a wide range of XML features, e.g. namespaces, comments and processing instructions, mixed content, DTDs, entity references, character encodings, non-BMP data? – Michael Kay Mar 12 '17 at 18:12
2 Answers
5
A Google search by filetype yields promising results. Just save a bunch of those pages. A lot of them are RSS feeds.
If you feel up to it, you could write a quick app to scrape the files from Google's search results.

Craige
- 3,781
- 22
- 30
3
What does your program do?
If you need a particular format, your best bet is probably creating them yourself. You can automate this with a script/simple program.
Actually, creating your own files for testing purposes is likely your best bet in any scenario, since you want to have some control and understanding of your testing inputs in order for the testing to be meaningful.

Adam Lear
- 32,039
-
That's fine, I have a generator - but I want to test on 'Real World' data – Robert Jan 14 '11 at 18:54
-
@robert in which case, you might want to look at finding a public webservice. – Muad'Dib Jan 14 '11 at 18:55