People, I need help with this problem.
I have a string like the following.
<JDF ID="n20090409EQ0001" Type="Product" JobID="000004-01" xmlns="http://www.CIP4.org/JDFSchema_1_1" Status="Waiting" Version="1.3" xsi:type="Product" JobPartID="B30" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:scr="htt://new.scr.url/abc" Activation="Active".......
It continues like that. From it, I need to extract ALL the occurrences which start with "xmlns:"
For example, you have these three tags in the above example:
xmlns="http://www.CIP4.org/JDFSchema_1_1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scr="htt://new.scr.url/abc"
From those, I need to extract the second and third ones, namely,
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
AND
xmlns:scr="htt://new.scr.url/abc"
(I need the full string, including the parts "xmlns:xsi=" , "xmlns:scr", etc, not just the value of those tags)
How can I do that?
Please help ASAP. Thanks in advance.