Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. 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

I am searching for a tool that can generate invalid data for xml.

I know data valid in one system might be invalid in other. Still some error like length, signs, repetition could be simulated. I do not found any good tool for that. It could be generated from xml or from xsd- from my point of view this does not matter.

share|improve this question
XML has two levels of validation: 1) checking whether this is correct XML document, 2) checking whether this XML is compliant to XSD. Which one do you care about? – dzieciou Mar 12 '14 at 14:45
Also, the way the question is written, checking that the data contained in the XML is correct. – Kate Paulk Mar 12 '14 at 16:57
What volume of (invalid) XML is needed? Have you considered using a tool to generate valid XML, then modifying it (perhaps manually) to make it invalid in the ways you need? – Joe Strazzere Mar 12 '14 at 23:18
From my point of view both points : 1)checking if XML document is correct and 2) checking if it is ok with xsd are not important. I assume thay ok, and valid. – SkorpEN Mar 24 '14 at 9:35
I want to generate problematic data (single space, invalid item, etc.). It could be done by mutation of valid xml, or by generating valid and then change. Any tool will be good starting point. – SkorpEN Mar 24 '14 at 10:24

dzieciou is right, generating usefully broken XML cases you need to separate feeding in plain oldbroken XML and XML which breaks your schema (the application.) The latter is probably the most useful, because it is hardest to guard against, and a test program that generates valid xml using all the known elements and attributes your application recognizes by randomizing their ordering, their parent/child and so on will probably generate plenty of test-data. I have found SAX or parsing-based apps break if you change the order that nodes appear in the file for example.

So having some knowledge of the approach the application under test uses is going to save you some time.

share|improve this answer

Your Answer


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.