Læse XMLoutput
Jeg kalder en webservice og få følgende retur:HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Mon, 23 Apr 2007 12:58:07 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 845
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><LogOnResponse xmlns="http://tempuri.org/"><LogOnResult><strSessionID>88310959-d83a-4b16-ae7d-1f24fe87bf7d</strSessionID><strLoginID>4179</strLoginID><strRoleType>Account User</strRoleType><arryRights><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int><int>0</int></arryRights><SessionID>88310959-d83a-4b16-ae7d-1f24fe87bf7d</SessionID><LoginID>4179</LoginID><RoleType>Account User</RoleType></LogOnResult></LogOnResponse></soap:Body></soap:Envelope>
Men dette kan jeg kun få ud ved at sættes det som indholdet af et textarea.
Kan jeg ikke lave det sådan, at jeg får selve XML delen ned i en streng som jeg så kan behandle med SimpleXML?
