How to Read xmlsoap using php?

Source: Internet
Author: User
I encountered another problem when reading xmlsoap using php. could you please help me solve this problem? there is an xml file in a strange format. maybe I have never touched on such a file, XMLcode & lt ;? Xmlversion = & quot; 1.0 & quot; encoding = & quot; UTF-8 & quot; use php to read xml soap
I encountered another problem. please help me solve it.

There is an xml file in a strange format. maybe I have never touched this file.

XML code
  
  
  
   
    
     
      
Order_flag = 0 & Name_num = 2077 & StartCity = SZX & EndCity = PEK & Dates = 2012-5-31 & ...... there is a lot of such data behind it.
     
    
   
  


How can I read such files?

------ Solution --------------------
Parse it as xml using simplexml
PHP code
  
  
   
    
     
      
Order_flag = 0 & Name_num = 2077 & StartCity = SZX & EndCity = PEK & Dates = 2012-5-31 & ...... there is a lot of such data behind it.
     
    
   
  SOAP; $ xml = simplexml_load_string ($ soap); $ result = $ xml-> children ('http: // schemas.xmlsoap.org/soap/envelope/')-> children ('http: // tempuri.org /') -> QueryResponse-> QueryResult; echo $ result; // Order_flag = 0 & Name_num = 2077 & StartCity = SZX & EndCity = PEK & Dates = 2012-5-31 &....... there is a lot of such data.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.