version 1.3.6.1, 2010/09/27 16:08:37
|
version 1.3.6.2, 2010/09/28 07:38:19
|
Line 338 ioXMLGet(const char *csXML, struct tagReqXML *xml)
|
Line 338 ioXMLGet(const char *csXML, struct tagReqXML *xml)
|
*pos++ = 0; |
*pos++ = 0; |
} else |
} else |
pos = (char*) xml->xml_line; |
pos = (char*) xml->xml_line; |
|
// if container is path |
|
if (*pos == '/') { |
|
xml->xml_node.path.value = pos; |
|
xml->xml_node.path.vallen = strlen(pos); |
|
if (!xml->xml_node.path.vallen) |
|
ret = 0; |
|
else |
|
ret |= 32; |
|
return ret; |
|
} else { |
// container |
// container |
xml->xml_container.value = pos; | xml->xml_node.container.value = pos; |
xml->xml_container.vallen = strlen(pos); | xml->xml_node.container.vallen = strlen(pos); |
if (xml->xml_container.vallen) | if (!xml->xml_node.container.vallen) |
ret |= 2; | return 0; |
| else |
| ret |= 2; |
| } |
end = strchr(pos, '?'); |
end = strchr(pos, '?'); |
// if attribute present |
// if attribute present |
if (pos && (p = strchr(pos, '|')) && (!end || end > p)) { |
if (pos && (p = strchr(pos, '|')) && (!end || end > p)) { |
pos = p; |
pos = p; |
*pos++ = 0; |
*pos++ = 0; |
xml->xml_container.vallen = strlen(xml->xml_container.value); | xml->xml_node.container.vallen = strlen(xml->xml_node.container.value); |
if (!xml->xml_container.vallen) | if (!xml->xml_node.container.vallen) |
return 0; |
return 0; |
|
|
xml->xml_attribute.value = pos; |
xml->xml_attribute.value = pos; |
Line 389 ioXMLGet(const char *csXML, struct tagReqXML *xml)
|
Line 402 ioXMLGet(const char *csXML, struct tagReqXML *xml)
|
if (!xml->xml_attribute.vallen) |
if (!xml->xml_attribute.vallen) |
return 0; |
return 0; |
} else if (ret & 2) { |
} else if (ret & 2) { |
xml->xml_container.vallen = strlen(xml->xml_container.value); | xml->xml_node.container.vallen = strlen(xml->xml_node.container.value); |
if (!xml->xml_container.vallen) | if (!xml->xml_node.container.vallen) |
return 0; |
return 0; |
} else |
} else |
return 0; |
return 0; |