Lines Matching refs:node

66  * \fn static int find_nodes_s(xmlNode *node)
67 * \brief Function that browses the xml file and parses it, to find the xml children node.
70 * \return 0 if a xml child node is found, 1 otherwise
73 find_nodes_s(xmlNode *node)
75 xmlNode *child = node->children;
86 print_xml_job_status(xmlNode *node,
90 while (node) {
91 if (node->type == XML_ELEMENT_NODE) {
92 if (find_nodes_s(node)) {
93 if (strcmp((const char *)node->name, "JobState") == 0) {
94 const char *state = (const char *)xmlNodeGetContent(node);
103 else if (strcmp((const char *)node->name, "ImagesToTransfer") == 0) {
104 const char *state = (const char *)xmlNodeGetContent(node);
110 print_xml_job_status(node->children, job, image);
111 node = node->next;
116 print_xml_platen_and_adf_status(xmlNode *node,
123 while (node) {
124 if (node->type == XML_ELEMENT_NODE) {
125 if (find_nodes_s(node)) {
126 if (strcmp((const char *)node->name, "State") == 0) {
128 const char *state = (const char *)xmlNodeGetContent(node);
141 else if (adf && strcmp((const char *)node->name, "AdfState") == 0) {
142 const char *state = (const char *)xmlNodeGetContent(node);
165 else if (jobId && job && strcmp((const char *)node->name, "JobUri") == 0) {
166 if (strstr((const char *)xmlNodeGetContent(node), jobId)) {
167 print_xml_job_status(node, job, image);
172 print_xml_platen_and_adf_status(node->children,
178 node = node->next;
202 xmlNode *node = NULL;
237 node = xmlDocGetRootElement(data);
238 if (node == NULL) {
244 print_xml_platen_and_adf_status(node, &platen, &adf, jobId, job, &image);