Bonjour, j'ai ce XML ci-dessous et je souhaite récupérer la valeur de l'attribut "company_num" (3042)
Comment faire svp ? je suis totalement néophyte sur la manipulation de XML
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <?xml version="1.0" encoding="ISO-8859-1"?> <MessageResponse> <Entity name="REF_COMPANY"> <Property name="company_num" type="INTEGER" value="3042"/> <Property name="company_type_ind" type="INTEGER" value="10"/> <Property name="company_netting_ind" type="INTEGER" value="0"/> <Property name="restricted_ind" type="INTEGER" value="0"/> <Property name="status_ind" type="INTEGER" value="1"/> <Property name="last_modify_dt" type="DATE" value="20171025105927"/> <Property name="modify_person_num" type="INTEGER" value="1505"/> <Property name="lock_num" type="INTEGER" value="3"/> <Property name="company_certified_ind" type="INTEGER" value="0"/> <Property name="company_self_billed_ind" type="INTEGER" value="0"/> <Property name="company_us_person_ind" type="INTEGER" value="0"/> <Property name="language_cd" type="STRING" value="en"/> <Property name="confirm_print_copies" type="INTEGER" value="1"/> <Property name="comp_hierarchy_filter_ind" type="INTEGER" value="2"/> <Property name="joint_venture_ind" type="INTEGER" value="0"/> <Property name="split_equally_ind" type="INTEGER" value="0"/> </Entity> </MessageResponse>
Partager