Forum Discussion

sundaresansubra's avatar
14 years ago

Loop in XML file

Hi ,

I am using Soap ui for first time, Need to loop an attribute... but i getting the following error.


Could some one help in this ....

<faultstring>org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.</faultstring>


Snippet of code :
======================

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="uri://alcatel.com/apc/4.0">
<soapenv:Header/>
<soapenv:Body>
<ns:execute>
int i = 1 ;
int j = 9 ;
while { i < j } {

<command>
<commandId>[$i]</commandId>
<action>CONFIGURE</action>
<objectName>Test:1-1-2-1-[$i]</objectName>
<templateName>Buffer</templateName>
<argument>

<name>Number</name>
<value>ALCLA0AA78[$i]</value>
</argument>
</command>

i++;
}

</ns:execute>
</soapenv:Body>
</soapenv:Envelope>
No RepliesBe the first to reply