I've spent several evenings trying to get this to work and I now suspect that the fault is with my xml file which I am unable to do anything with as it is sent from a UPNP device.
I've attached two sample programs to demonstrate the problem. XOM_Weather uses the weather.xml file that is used in the XOM sample program to demonstrate usage of the library and this works correctly. XOM_UPNP is the same program but using an xml file obtained from one of my UPNP devices and I get an uninitialised fault each time I try to search for a value from a child node.
I also have another problem in that the devices on my network do not all adhere completely to the UPNP standard, i.e. the friendly name of a device could be listed as "friendlyname", "FriendlyName" or "friendlyName" or any other combination of caps/mixed caps. Is there a way to search for childelements case insensitively? I suspect that there is not, in which case I'll have to use the program I've already got to iterate over all the children and convert the local name to lower case before comparing against the entries I need.
Hope that makes sense to someone?
Thanks,
RandomCoder
I've attached two sample programs to demonstrate the problem. XOM_Weather uses the weather.xml file that is used in the XOM sample program to demonstrate usage of the library and this works correctly. XOM_UPNP is the same program but using an xml file obtained from one of my UPNP devices and I get an uninitialised fault each time I try to search for a value from a child node.
I also have another problem in that the devices on my network do not all adhere completely to the UPNP standard, i.e. the friendly name of a device could be listed as "friendlyname", "FriendlyName" or "friendlyName" or any other combination of caps/mixed caps. Is there a way to search for childelements case insensitively? I suspect that there is not, in which case I'll have to use the program I've already got to iterate over all the children and convert the local name to lower case before comparing against the entries I need.
Hope that makes sense to someone?
Thanks,
RandomCoder