Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey, I'm writing a program that I need to test with 1000s of XML files - any idea where I can get some?

share|improve this question

closed as off-topic by gnat, MichaelT, DougM, GlenH7, Ampt Jul 6 '14 at 15:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – gnat, Community, DougM, GlenH7, Ampt
If this question can be reworded to fit the rules in the help center, please edit the question.

Are you writing an XML parser? – Jeremy Heiler Jan 14 '11 at 18:50
No. 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
up vote 5 down vote accepted

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.

Google - "< ?xml filetype:xml"

share|improve this answer

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.

share|improve this answer
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.