i am using PHP
and soapclient
. one of the web services send XML
data through a variable. (a string variable contain XML
). in PHP
when i print or echo it, the tags not shown. just values printed. something like this: `
value1value2value3value4...
how i can access to the variable XML
data,i want pure XML
code. thanks for any reply.
in web service variable=`
<modul>
<name>value1</name>
</modul>
<modul>
<name>value2</name>
</modul>`
my result after print variable:
value1value2