I'm parsing an XML file and searching for a child value.
As I'm familiar with this XML file structure, I know that the final value is a child of a child, and so I wrote the following code section:
/*Parse XML file and find device friendlyName*/
pxUpnp = ezxml_parse_file(XML_FILE_PATH);
pxUpnpChild = ezxml_child(pxUpnp, "device");
/*Looking for friendlyName sub-child*/
pxUpnpSubChild = ezxml_child(pxUpnpChild, "friendlyName");
This code works, but I wander if there is a better or more elegant method to parse a 'child of a child' value using ezxml library?
Thank you all in advance!