XML XPATH - How to get attribute text where there is a colon in the tag



I have the following XML line:



< super:FirstName> Tom < /super:FirstName>


And I want to get the value of the text between the tags i.e. I only want to get "Tom".


I have tried using:



//*[name()='super:FirstName'][text()]


However this is outputting the full XML line including the tags.


Any one have any suggestions?


Thanks in advance!!!


No comments:

Post a Comment