I have an XML, where I have Multiple wd:type="Supplier_Connection_ID" nodes but always i need the last one.
How to write X path If we have same nodes in one XML. Below are my nodes from XML. Always I need the second node if there are 2 nodes ,If there are 100 same nodes I need the 100th node to be represent in X path.
> > > <wd:Supplier_Connection_Reference> > > <wd:ID wd:type="WID">1f09b504c3f610f442c94f852fc1f695</wd:ID> > > <wd:ID > > wd:type="Supplier_Connection_ID">SUPPLIER_CONNECTION-6-1393</wd:ID> > > </wd:Supplier_Connection_Reference> > >
> > <wd:Supplier_Connection_Reference> > <wd:ID wd:type="WID">1f09b504c3f610f44318940ccbe2f721</wd:ID> > <wd:ID wd:type="Supplier_Connection_ID">SUPPLIER_CONNECTION-6-1394</wd:ID> > </wd:Supplier_Connection_Reference> > >
Thanks Sam.