Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ tool to generate random XML files from XML Schema?

Tags:

c++

xml

xsd

I think there should be a tool to do so ? is anyone here aware of any ?

I saw other posts related to this but found none for C++, I am aware that I can do that with JAVA and C#.

like image 407
Ramadheer Singh Avatar asked Mar 23 '10 23:03

Ramadheer Singh


1 Answers

If you use XML Spy or oXygen, you can generate sample XML files based on a schema. Both tools accept commandline options and can be run in batch mode so that'll probably fit in your unit tests, if that's what you're after. Wrap your own C++ code around it and you're in business.

If you need quality XML, with tons of tweakable options, you might want to check out http://www.code-generator.com/XML-Sample-Generator.aspx. No C++ here, just a tool that works, and rises beyond the default "lorem ipsum..." output.

HTH, ~Rob

like image 69
Rob Vermeulen Avatar answered Sep 20 '22 23:09

Rob Vermeulen