OS_XML xml;
XML_NODE node = NULL;
-
+
/* File name must be given */
if(argc < 2)
{
return(-1);
}
-
- /* Reading the XML. Printing error and line number */
+
+ /* Reading the XML. Printing error and line number */
if(OS_ReadXML(argv[1],&xml) < 0)
{
printf("OS_ReadXML error: %s, line :%d\n",xml.err, xml.err_line);
{
int j = 0;
XML_NODE cnode;
-
+
cnode = OS_GetElementsbyNode(&xml, node[i]);
if(cnode == NULL)
{
i++;
continue;
}
-
+
while(cnode[j])
{
- printf("Element: %s -> %s\n",
+ printf("Element: %s -> %s\n",
cnode[j]->element,
cnode[j]->content);
if(cnode[j]->attributes && cnode[j]->values)