Extract attribute's value with XPATH in a special case

total1985

New Member
hi i need help to extract information from XML with xpath.I will use Xpath to extract the value of the attribute of one Tag that start with a generic keywork:\[code\]<st:Testprova id='abcd'> ....</st> or<st:Test1prova id='defg'> ....</st>\[/code\]I used that Xpath expression:\[code\]"//*[contains(.,'prova')]/@ID"\[/code\]but does not work. Can you help me??
 
Back
Top