I have this XML string:
<TransactionId>1231231</TransactionId>
<TransactionDescription>Card was succesfully created: DDCARD-26913899</TransactionDescription>
<Error>00</Error>
<ExpiryDate>1084412</ExpiryDate>
I need to extract the string after the colon( which is unique) and containing the number, in this case (DDCARD-26913899). The string after the value i want to extract is an XML tag and can be any other tag other than TransactionDescription.
I want to do it by using regular expression in Java , but i don't know how. Appreciate any help