jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From indireddysankar <>
Subject XML schema Assertion related problem
Date Tue, 30 Mar 2010 05:35:00 GMT
         I wanted to test the response xml of an application for both the
schema as well as the data. so I created a test plan as below

    Simple controller
       http request
           XML schema assertion
       view results tree

sample response of the application looks like as below
<?xml version="1.0" encoding="UTF-8"?>


        <content name="nammakathappani">
            <property language="eng" name="PPT" type="binary"
            <property name="CODE" type="data" value="009114500003033"/>
        <content name="bit">
            <property language="eng" name="PPT" type="binary"
            <property name="CODE" type="data" value="009110200006840"/>
and i have created corresponding xsd file for the above as below

<?xml version="1.0"?>
<!-- Generated using Flame-Ware Solutions XML-2-XSD v2.0 at -->
<xs:schema id="Search" xmlns=""
  <xs:element name="Search" msdata:IsDataSet="true"
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="contents">
              <xs:element name="content" minOccurs="0" maxOccurs="unbounded">
                    <xs:element name="property" minOccurs="0"
                        <xs:attribute name="language" type="xs:string" />
                        <xs:attribute name="name" type="xs:string" />
                        <xs:attribute name="type" type="xs:string" />
                        <xs:attribute name="value" type="xs:string" />
                  <xs:attribute name="name" type="xs:string" />

   Now my problem is , i am getting error when response is compared with
this xsd file. I error is as shown below

 fatal: line=14 col=6 The processing instruction target matching
"[xX][mM][lL]" is not allowed.

  Please suggest me how to resolve this issue. I suspect this is occurring
due to the new lines involved just above to the actual  xml content in the

Or is there any other simple solution for easy testing of response xml

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message