0

I have an xml whose attributes have quotes in the values. Is there any possible way to validate the xml with the xsd ?

The XML:

<root>
    <item size="11"x17""/>
</root>

The error:

Error displayed: Assertion failure message: fatal: line=5 col=268 Element type "item" must be followed by either attribute specifications, ">" or "/>".
Lyuben Todorov
  • 13,987
  • 5
  • 50
  • 69
WANT3D
  • 1

1 Answers1

0

As I understand you are using jmeter's XML Schema Assertion.

As well you can try to validate your xml against xsd manually instead: simply use corresponding java code with e.g. BeanShell Assertion or BeanShell PostProcessor; here is a pretty nice working solution: https://stackoverflow.com/a/16054/993246 (as well you can use any other you want for this).

Community
  • 1
  • 1
Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90