A question about XML parsing. thank you.

Source: Internet
Author: User
Thank you for your XMLcode & lt; alipay & gt; & lt; is_success & gt; T & lt;/is_success & gt; & lt; request & gt; & lt; paramname = & quot; partner & quot; & gt; ask you a question about XML parsing. thank you.
XML code
     
  
   
T
    
      
   2088002007 ***    
   Daily    
   EMS    
   2008040902 ***    
   20880020070 ***    
   Http: // 10.2.5.100/api/apireceive/returnSuccess. php      
   3455 **      
   Send_goods_confirm_by_platform      
   UTF-8      
   EMS      
   Http: // 10.2.5.100/api/returnResultList. php    
    
      
         
    
     
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.
This is the code I wrote.
$ Message = $ doc-> getElementsByTagName ("alipay")-> item (0)-> nodeValue;
However, it seems that the obtained value is incorrect. Ask how to obtain 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.