|
I have some problems using xml as a datasource.
The xml code is as follows:
<config>
<parameter name =\"protocol\" value =\"http\" />
<parameter name =\"summary\" value =\"yes\" />
<parameter name =\"saveresponse\" value =\"yes\" />
<parameter name =\"timeout\" value =\"300\" />
<parameter name =\"haltonerror\" value =\"yes\" />
<parameter name =\"port\" value =\"80\" />
<parameter name =\"resultfile\" value =\"results.xml\" />
<parameter name =\"showhtmlparseroutput\" value =\"no\" />
<parameter name =\"host\" value =\"www.qa.ehealthinsurance.com/\" />
<parameter name =\"haltonfailure\" value =\"yes\" />
<parameter name =\"basepath\" value =\".\" />
<parameter name =\"saveprefix\" value =\"response\" />
</ config>
I use xpath to specify / config / parameter / @ name only to get the protocol, instead of looping to get the name attribute of all parameters |
|