I have a complex set of data which looks like xml.
I need to extract the data in the following format
<Metamorph dxp1:category="ABC" xmlns:dxp1="http://alibaba.com/ab/2012/01/" xmlns="http://apple.com/ab/2012/01/search_request"><d2p1:Or><d2p1:Value>BL:31</d2p1:Value><d2p1:Value>M:B</d2p1:Value></d2p1:Or></MetaDataConstraint>
from the above text: I have to extract the item which occurs after category = "ABC". It comes with quotes.
2) I need to extract the codes between Values: BL:31, M:B and put them in separate columns of the same row.
Is it possible, if yes please guide me.
I have 1000's of similar lines to go over with.
I need to extract the data in the following format
<Metamorph dxp1:category="ABC" xmlns:dxp1="http://alibaba.com/ab/2012/01/" xmlns="http://apple.com/ab/2012/01/search_request"><d2p1:Or><d2p1:Value>BL:31</d2p1:Value><d2p1:Value>M:B</d2p1:Value></d2p1:Or></MetaDataConstraint>
from the above text: I have to extract the item which occurs after category = "ABC". It comes with quotes.
2) I need to extract the codes between Values: BL:31, M:B and put them in separate columns of the same row.
Is it possible, if yes please guide me.
I have 1000's of similar lines to go over with.