views:

75

answers:

7

I would like to test something and for it I need a complex XML file of decent size(few hundred kilobytes at least). Does anyone know where I can get such a file? Everything I've seen on the internet is short and simple examples.

By "complex" I mean I also want some form of relationships and nesting between elements of the file.

A: 

If you just want it to be a big file size, can you try to just repeat some elements in the XML file?

For instance, write a small program to repeat the element until the file gets big enough for you.

<bookstore>
    <book>Book1</book>
     ....
    <book>Book1000</book>
</bookstore>
Ryan Liang
Read the edit on my question
Earlz
+2  A: 

well,

try taking a word document and saving it as Word XML...

should be convoluted enough for any test.

Randy
+2  A: 

Try the XML spec itself it is 221kb

Mark
+1  A: 

You could download OMG's MOF model for CWM 1.1. It is about 1.1 MB.

ChrisH
+4  A: 

Try using XMark to generate a real world type file upto several gigs, if you want a ready made one - 38 MB - here you go

RandomNoob
+1  A: 

The Office Open XML smoke test might be of interest for you, it has plenty of relationships:

http://www.adjb.net/post/OOXML-and-Office-2007-Conformance-a-Smoke-Test.aspx

jdehaan
A: 

Any web.config file should do the trick ;)

James Westgate
Isn't that the truth! :P
Earlz
Apparently ASP.NET 4 tries to address this with much cleaner web.config files. This video shows a 9 line file for a blank webpage: http://www.asp.net/aspnet-4/videos/aspnet-4-quick-hit-clean-webconfig-files
Greg Bray