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
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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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