i am coding a little program to interact with a huawei umts stick. The api from this stick is webbased, xml.
For several reasons, i need to implement this in C. I am not familiar with libxml but as far as i have learned from my websearch this one should be my best option. (if someone has a better proposal i am happy to hear ;))
I´ve done through the big api description and was left a little bit confused. It seams, thar most of the functions are used for documents or websites.
An example for the code i receive is like this:
<response>
<ConnectionStatus>901</ConnectionStatus>
<SignalStrength>96</SignalStrength>
<SignalIcon>5</SignalIcon>
<CurrentNetworkType>3</CurrentNetworkType>
<CurrentServiceDomain>3</CurrentServiceDomain>
<RoamingStatus>0</RoamingStatus>
<BatteryStatus></BatteryStatus>
<BatteryLevel></BatteryLevel>
<simlockStatus></simlockStatus>
<WanIPAddress>10.140.3.121</WanIPAddress>
<PrimaryDns>84.235.6.55</PrimaryDns>
<SecondaryDns>84.235.57.230</SecondaryDns>
<CurrentWifiUser></CurrentWifiUser>
<TotalWifiUser></TotalWifiUser>
<ServiceStatus>2</ServiceStatus>
<SimStatus>1</SimStatus>
<WifiStatus></WifiStatus>
</response>
which i reveive as a char array. Can anyone give me a hint which function would be best to use to parse such xml structures? They are not very complicated. THe worst is a list of sms messages which i would like to walk through and save in structs.
Thanks in advance and kind regards
Solick