A question about parsing XML, thank you.

Source: Internet
Author: User
Ask you a question of parsing XML, thank you
XML Code
     
  
   
    T
   
    
  
   
    2088002007*** daily 
    EMS  
     2008040902*** 
     20880020070*** 
     
     
     http://10.2.5.100/api/apireceive/returnSuccess.php 
     3455** 
     Send_goods_co Nfirm_by_platform 
     utf-8 
     EMS 
     HTTP://10.2.5.100/API/RETURNRESULTLIST.P HP    
 
   
    
      
         
    
     
      2088002007301423***
     
          
    
     
      [Refund,confirm_goods]
     
          
    
     
      
 ***

     
          
    
     
      Private_account
     
          
    
     
      2088002007****
     
          
    
     
      interface/digi***
     
          
    
     
      2008-04-09 16:10:25
     
          
    
     
      156
     
          
    
     
      1
     
          
    
     
      2008-04-10 14:35:25
     
          
    
     
      B
     
          
    
     
      123455666***
     
          
    
     
      2088002007***6
     
          
    
     
      208800200730***156
     
          
    
     
      [Extend_timeout]
     
          
    
     
      song_xia**hoo.com.cn
     
          
    
     
      Private**ount
     
          
    
     
      208800**301410
     
          
    
     
      0.00
     
          
    
     
      0.0
     
          
    
     
      F
     
          
    
     
      2.00
     
          
    
     
      Inst_p**er
     
          
    
     
      2008040**81748
     
          
    
     
      Wait_buyer_confirm_goods
     
          
    
     
      S
     
        
     
    
  
   
    eb07c7407baf*****0804751a21c1e
   
    
  
   
    MD5
   
  


I want to get the value of the Is_success node under Alipay.
That's what my code says.
$message = $doc->getelementsbytagname ("Alipay")->item (0)->nodevalue;
But it seems to get the wrong value. Ask how we can get this value. Thank you

------Solution--------------------
$message = $doc->getelementsbytagname ("is_success")->item (0)->nodevalue;
  • 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.