Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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 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, MichaelT, DougM, GlenH7, Ampt
If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Are you writing an XML parser? –  Jeremy Heiler Jan 14 '11 at 18:50
1  
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 Jan 14 '11 at 21:47

2 Answers 2

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.