Click here to Skip to main content
15,907,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have to take a php output in XML format from web services, and then fills those values into drop down, output XML is completed , but i am getting problem while filling drop down , with it, while breaking XML values, the message as come"String could not be parsed as XML' error message in PHP"

code for retrieve web services in XML

$client = new SoapClient(http://localhost/ETaxHiber/ETaxReg?wsdl",array("trace"=>1 ));

$result = $client->GetDivision();
echo "Response:\n"; . $client->__getLastResponse();

and output iam getting

<divisions> <divid>01 <divname>Meerut <divisions> <divid>02 <divname>Saharanpur <divisions> <divid>03 <divname>Agra <divisions> <divid>04 <divname>Aligarh <divisions> <divid>05 <divname>Moradabad <divisions> <divid>06 <divname>Bareilly <divisions> <divid>07 <divname>Lucknow <divisions> <divid>08 <divname>Faizabad <divisions> <divid>09 <divname>Devipatan <divisions> <divid>10 <divname>Gorakhpur <divisions> <divid>11 <divname>Basti <divisions> <divid>12 <divname>Azamgarh <divisions> <divid>13 <divname>Vindhyanchal <divisions> <divid>14 <divname>Varanasi <divisions> <divid>15 <divname>Allahabad <divisions> <divid>16 <divname>Kanpur <divisions> <divid>17 <divname>Jhansi <divisions> <divid>18 <divname>Chitrakootdham

how can i fill drop box ......

kindly help me
Updated 24-Nov-14 0:46am
Maciej Los 24-Nov-14 6:14am    
Do not repost!
Richard MacCutchan 24-Nov-14 6:25am    
How can we guess what the string contains if you do not show it? Or which lines of code are involved.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900