excel vba - how to read childnodes values based on another child node value in vba xml -


 <legalentitydatavorow>       <name>siemens financial services</name>       <activitycode null="true"/>       <attribute1>9474</attribute1>       <attribute10 null="true"/>       <attribute11 null="true"/>       <attribute12 null="true"/>       <attribute13 null="true"/>       <attribute14 null="true"/>       <attribute15 null="true"/>       <attribute16 null="true"/>       <attribute17 null="true"/>       <attribute18 null="true"/>       <attribute19 null="true"/>       <attribute2 null="true"/>       <attribute20 null="true"/>       <attribute3>sfs</attribute3>       <attribute4>sfs inc</attribute4>       <attribute5 null="true"/>       <attribute6 null="true"/>       <attribute7 null="true"/>       <attribute8 null="true"/>       <attribute9 null="true"/>       <attributecategory>us</attributecategory>       <effectivefrom>1951-01-01</effectivefrom>       <effectiveto null="true"/>       <leinformation1 null="true"/>       <leinformation10 null="true"/>       <leinformation11 null="true"/>       <leinformation12 null="true"/>       <leinformation13 null="true"/>       <leinformation14 null="true"/>       <leinformation15 null="true"/>       <leinformation16 null="true"/>       <leinformation17 null="true"/>       <leinformation18 null="true"/>       <leinformation19 null="true"/>       <leinformation2 null="true"/>       <leinformation20 null="true"/>       <leinformation3 null="true"/>       <leinformation4 null="true"/>       <leinformation5 null="true"/>       <leinformation6 null="true"/>       <leinformation7 null="true"/>       <leinformation8 null="true"/>       <leinformation9 null="true"/>       <leinformationcontext>us</leinformationcontext>       <legalemployerflag>y</legalemployerflag>       <legalentityidentifier>011</legalentityidentifier>       <psuflag>y</psuflag>       <subactivitycode null="true"/>       <transactingentityflag>y</transactingentityflag>       <typeofcompany null="true"/>       <geographycode>us</geographycode>       <territoryshortname>united states</territoryshortname>       <territorycode>us</territorycode>       <parentpsuleidentifier null="true"/>       <organizationnumber>3</organizationnumber>       <legaladdress null="true"/>       <registrationcodeetbvalue>133138748</registrationcodeetbvalue>       <registrationcodelevalue null="true"/>       <establishmentdata>          <establishmentdatavorow>             <activitycode null="true"/>             <attribute10 null="true"/> 

legalentitydatavorow node has many childnodes , 1 childnode again contains childnodes i.e establishmentdata. here requirement need select establishmentdata childnodes when legalentityidentifier attribute equal value i.e 011,012,etc. i'm using follwing code

for each jur in oxmlfile.selectnodes("/legalentitydatavo/legalentitydatavorow.childnodes(47)="010")\registrationdata/registrationdatavorow/name/text()")

here "47" index of legalentityidentifier,but above code not working me.

could please me in this.thanks in advance


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -