I have the following xml file which has attributes corresponding to a structure.
How do i read the content from the XML file and populate the coresponding values in the structure?Please see the XML file below.
<Struct>
<StructEntry name="presenceNotification">
<Enum>PRESENCE_NOTIFICATION_UEMOBILITY_UPDATE</Enum>
</StructEntry>
<StructEntry name="ueDirectoryInfo">
<Struct> <!-- ueDirectoryInfo -->
<StructEntry name="acap_PresenceOptsMask">
<Int>0</Int>
</StructEntry>
<StructEntry name="imsi">
<Struct>
<StructEntry name="length">
<Int>10</Int>
</StructEntry>
<StructEntry name="value">
<Sequence>
<Int>1</Int>
<Int>2</Int>
<Int>3</Int>
<Int>4</Int>
<Int>5</Int>
<Int>6</Int>
<Int>7</Int>
<Int>8</Int>
<Int>9</Int>
<Int>1</Int>
</Sequence>
</StructEntry>
</Struct>
</StructEntry>
<StructEntry name="lac">
<Int>3001</Int>
</StructEntry>
<StructEntry name="rac">
<Int>10</Int>
</StructEntry>
<StructEntry name="attachState">
<Enum>BAG_UEPRESENCE_CSPSATTACHED<Enum>
</StructEntry>
<StructEntry name="tmsi">
<Int>123456</Int>
</StructEntry>
<StructEntry name="currentPTMSI">
<Int>22113344</Int>
</StructEntry>
<StructEntry name="oldPTMSI">
<Int>44331122</Int>
</StructEntry>
<StructEntry name="plmnId">
<Struct>
<StructEntry name="mcc">
<Sequence>
<Int>1</Int>
<Int>3</Int>
<Int>2</Int>
</Sequence>
</StructEntry>
<StructEntry name="mnc">
<Struct>
<StructEntry name="length">
<Int>3<Int>
</StructEntry>
<StructEntry name="value">
<Sequence>
<Int>1</Int>
<Int>2</Int>
<Int>3</Int>
</Sequence>
</StructEntry>
</Struct>
</StructEntry>
</Struct>
</StructEntry>
<StructEntry name="psDrxCycleLengthCoefficient">
<Int>5</Int>
</StructEntry>
<StructEntry name="periodicRAUpdateTimer">
<Int>3</Int>
</StructEntry>