I have a bunch of LTE CDR's that when decoded look and feel just like XML, but aren't (I'm not sure the exact differences, but it's hierarchical, similar to XML). I've copied one of the lines below. There are 50 or 60 entries just like this in each file.

My goal is to search for an entry that matches and IP address (below in HEX) and time range. Then to correlate the IMSI to it. These field are below.

Fields I'm searching for:

```
...
<servedIMSI>13 91 03 00 00 00 10 F8</servedIMSI>
...
<servedPDPAddress>
        <iPAddress>
            <iPBinaryAddress>
                <iPBinV4Address>0A 37 00 11</iPBinV4Address>
            </iPBinaryAddress>
        </iPAddress>
    </servedPDPAddress>
...
<timeOfFirstUsage>14 02 04 04 09 40 2D 06 00</timeOfFirstUsage>
<timeOfLastUsage>14 02 04 04 12 44 2D 06 00</timeOfLastUsage>
...

```

I've tried to use XML tools, but since this is not XML, they don't work.

I was wondering if there is a better way to search and retrieve the data I want. I can use regex expressions to find the data, but the XML approach seems to be a better approach (even though this isn't XML). I'm open to any and all ideas!

Snippet of CDR:

```
<GPRSRecord>
    <egsnPDPRecord>
        <recordType>70</recordType>
        <servedIMSI>13 91 03 00 00 00 10 F8</servedIMSI>
        <ggsnAddress>
            <iPBinaryAddress>
                <iPBinV4Address>AB CD 72 62</iPBinV4Address>
            </iPBinaryAddress>
        </ggsnAddress>
        <chargingID>126400647</chargingID>
        <sgsnAddress>
                <iPBinaryAddress>
                    <iPBinV4Address>AB CD 72 62</iPBinV4Address>
                </iPBinaryAddress>

        </sgsnAddress>
        <accessPointNameNI><bs/>Internet<si/>syringawireless<etx/>com</accessPointNameNI>
        <pdpType>01 21</pdpType>
        <servedPDPAddress>
            <iPAddress>
                <iPBinaryAddress>
                    <iPBinV4Address>0A 37 00 11</iPBinV4Address>
                </iPBinaryAddress>
            </iPAddress>
        </servedPDPAddress>
        <dynamicAddressFlag><true/></dynamicAddressFlag>
        <listOfTrafficVolumes>
            <ChangeOfCharCondition>
                <dataVolumeGPRSUplink>192323</dataVolumeGPRSUplink>
                <dataVolumeGPRSDownlink>320043</dataVolumeGPRSDownlink>
                <changeCondition><recordClosure/></changeCondition>
                <changeTime>14 02 04 04 12 46 2D 06 00</changeTime>
                <userLocationInformation>01 13 01 39 01 86 BD 01</userLocationInformation>
            </ChangeOfCharCondition>
        </listOfTrafficVolumes>
        <recordOpeningTime>14 02 04 04 09 40 2D 06 00</recordOpeningTime>
        <duration>186</duration>
        <causeForRecClosing>16</causeForRecClosing>
        <recordSequenceNumber>26784</recordSequenceNumber>
        <nodeID>1</nodeID>
        <localSequenceNumber>8858562</localSequenceNumber>
        <apnSelectionMode><mSorNetworkProvidedSubscriptionVerified/></apnSelectionMode>
        <servedMSISDN>91 02 98 99 00 81</servedMSISDN>
        <chargingCharacteristics>01 00</chargingCharacteristics>
        <chChSelectionMode><sGSNSupplied/></chChSelectionMode>
        <sgsnPLMNIdentifier>13 01 39</sgsnPLMNIdentifier>
        <servedIMEISV>53 97 04 40 81 57 80 00</servedIMEISV>
        <rATType>6</rATType>
        <userLocationInformation>01 13 01 39 01 86 BD 01</userLocationInformation>
        <listOfServiceData>
            <ChangeOfServiceCondition>
                <ratingGroup>1</ratingGroup>
                <localSequenceNumber>1</localSequenceNumber>
                <timeOfFirstUsage>14 02 04 04 09 40 2D 06 00</timeOfFirstUsage>
                <timeOfLastUsage>14 02 04 04 12 44 2D 06 00</timeOfLastUsage>
                <serviceConditionChange>
                    00000000000000000000000010000000
                </serviceConditionChange>
                <sgsn-Address>
                    <iPBinaryAddress>
                        <iPBinV4Address>AB CD 72 62</iPBinV4Address>
                    </iPBinaryAddress>
                </sgsn-Address>
                <sGSNPLMNIdentifier>13 01 39</sGSNPLMNIdentifier>
                <datavolumeFBCUplink>192323</datavolumeFBCUplink>
                <datavolumeFBCDownlink>320043</datavolumeFBCDownlink>
                <timeOfReport>14 02 04 04 12 46 2D 06 00</timeOfReport>
                <rATType>6</rATType>
                <userLocationInformation>01 13 01 39 01 86 BD 01</userLocationInformation>
            </ChangeOfServiceCondition>
        </listOfServiceData>
    </egsnPDPRecord>
</GPRSRecord>    

```