Home
last modified time | relevance | path

Searched refs:xml_obj (Results 1 – 25 of 64) sorted by relevance

123

/dports/net-mgmt/py-napalm/napalm-3.3.1/test/nxapi_plumbing/
H A Dtest_show_xml.py18 xml_obj = result
20 input_obj = xml_obj.find("./input")
21 msg_obj = xml_obj.find("./msg")
22 code_obj = xml_obj.find("./code")
31 assert xml_obj.tag == "output"
32 body_obj = xml_obj.find("./body")
34 msg_obj = xml_obj.find("./msg")
35 code_obj = xml_obj.find("./code")
49 xml_obj = result_show_hostname
52 msg_obj = xml_obj.find("./msg")
[all …]
H A Dtest_config.py19 xml_obj = mock_pynxos_device_xml.config("logging history size 200")
20 status_code = xml_obj.find("./code")
21 msg = xml_obj.find("./msg")
32 xml_obj = mock_pynxos_device_xml.config_list(cfg_cmds)
33 assert len(xml_obj) == 3
34 for element in xml_obj:
/dports/net-mgmt/py-nxapi-plumbing/nxapi_plumbing-0.5.2/test/
H A Dtest_show_xml.py23 xml_obj = result
25 input_obj = xml_obj.find("./input")
26 msg_obj = xml_obj.find("./msg")
27 code_obj = xml_obj.find("./code")
36 assert xml_obj.tag == "output"
37 body_obj = xml_obj.find("./body")
39 msg_obj = xml_obj.find("./msg")
40 code_obj = xml_obj.find("./code")
54 xml_obj = result_show_hostname
57 msg_obj = xml_obj.find("./msg")
[all …]
H A Dtest_config.py26 xml_obj = mock_pynxos_device_xml.config("logging history size 200")
27 status_code = xml_obj.find("./code")
28 msg = xml_obj.find("./msg")
39 xml_obj = mock_pynxos_device_xml.config_list(cfg_cmds)
40 assert len(xml_obj) == 3
41 for element in xml_obj:
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/lib/pacemaker/
H A Dpcmk_sched_constraints.c74 xmlNode *xml_obj = NULL; in unpack_constraints() local
77 for (xml_obj = pcmk__xe_first_child(xml_constraints); xml_obj != NULL; in unpack_constraints()
78 xml_obj = pcmk__xe_next(xml_obj)) { in unpack_constraints()
654 cons_id = ID(xml_obj); in tag_to_set()
899 id = ID(xml_obj); in unpack_location_tags()
1006 orig_xml = xml_obj; in unpack_location()
2074 id = ID(xml_obj); in unpack_order_tags()
2632 id = ID(xml_obj); in unpack_colocation_tags()
2922 id = ID(xml_obj); in unpack_simple_rsc_ticket()
2994 id = ID(xml_obj); in unpack_rsc_ticket_tags()
[all …]
/dports/net/pacemaker1/pacemaker-Pacemaker-1.1.24/pengine/
H A Dconstraints.c55 xmlNode *xml_obj = NULL; in unpack_constraints() local
58 for (xml_obj = __xml_first_child_element(xml_constraints); xml_obj != NULL; in unpack_constraints()
59 xml_obj = __xml_next_element(xml_obj)) { in unpack_constraints()
306 if (xml_obj == NULL) { in unpack_simple_rsc_order()
486 if (xml_obj == NULL) { in expand_tags_in_sets()
611 if (xml_obj == NULL) { in tag_to_set()
851 if (xml_obj == NULL) { in unpack_location_tags()
962 orig_xml = xml_obj; in unpack_location()
983 xml_obj = orig_xml; in unpack_location()
1979 if (xml_obj == NULL) { in unpack_order_tags()
[all …]
/dports/net/pacemaker1/pacemaker-Pacemaker-1.1.24/lib/cib/
H A Dcib_attrs.c185 xmlNode *xml_obj = NULL; in update_attr_delegate() local
280 xml_obj = create_xml_node(xml_obj, tag); in update_attr_delegate()
289 xml_obj = create_xml_node(xml_obj, XML_CIB_TAG_PROPSET); in update_attr_delegate()
291 xml_obj = create_xml_node(xml_obj, XML_TAG_META_SETS); in update_attr_delegate()
295 xml_obj = create_xml_node(xml_obj, set_type); in update_attr_delegate()
298 xml_obj = create_xml_node(xml_obj, XML_TAG_ATTR_SETS); in update_attr_delegate()
308 xml_obj = crm_create_nvpair_xml(xml_obj, attr_id, attr_name, attr_value); in update_attr_delegate()
310 xml_top = xml_obj; in update_attr_delegate()
360 xmlNode *xml_obj = NULL; in delete_attr_delegate() local
389 free_xml(xml_obj); in delete_attr_delegate()
[all …]
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/lib/cib/
H A Dcib_attrs.c178 xmlNode *xml_obj = NULL; in update_attr_delegate() local
275 xml_obj = create_xml_node(xml_obj, tag); in update_attr_delegate()
284 xml_obj = create_xml_node(xml_obj, XML_CIB_TAG_PROPSET); in update_attr_delegate()
286 xml_obj = create_xml_node(xml_obj, XML_TAG_META_SETS); in update_attr_delegate()
290 xml_obj = create_xml_node(xml_obj, set_type); in update_attr_delegate()
293 xml_obj = create_xml_node(xml_obj, XML_TAG_ATTR_SETS); in update_attr_delegate()
303 xml_obj = crm_create_nvpair_xml(xml_obj, attr_id, attr_name, attr_value); in update_attr_delegate()
305 xml_top = xml_obj; in update_attr_delegate()
355 xmlNode *xml_obj = NULL; in delete_attr_delegate() local
384 free_xml(xml_obj); in delete_attr_delegate()
[all …]
/dports/net/pacemaker1/pacemaker-Pacemaker-1.1.24/lib/pengine/
H A Dcontainer.c142 xmlNode *xml_obj = NULL; in create_ip_resource() local
158 crm_create_nvpair_xml(xml_obj, NULL, in create_ip_resource()
192 xmlNode *xml_obj = NULL; in create_docker_resource() local
348 xmlNode *xml_obj = NULL; in create_rkt_resource() local
830 xmlNode *xml_obj = NULL; in container_unpack() local
842 if (xml_obj != NULL) { in container_unpack()
846 if (xml_obj != NULL) { in container_unpack()
894 if(xml_obj) { in container_unpack()
989 add_node_copy(xml_resource, xml_obj); in container_unpack()
991 } else if(xml_obj) { in container_unpack()
[all …]
H A Dcomplex.c246 if (xml_obj == NULL) { in unpack_template()
256 id = ID(xml_obj); in unpack_template()
280 xmlNodeSetName(new_xml, xml_obj->name); in unpack_template()
353 if (xml_obj == NULL) { in add_template_rsc()
363 id = ID(xml_obj); in add_template_rsc()
463 common_unpack(xmlNode * xml_obj, resource_t ** rsc, in common_unpack() argument
472 const char *id = crm_element_value(xml_obj, XML_ATTR_ID); in common_unpack()
477 crm_log_xml_trace(xml_obj, "Processing resource input..."); in common_unpack()
499 (*rsc)->orig_xml = xml_obj; in common_unpack()
502 (*rsc)->xml = xml_obj; in common_unpack()
[all …]
H A Dunpack.c550 xmlNode *xml_obj = NULL; in unpack_nodes() local
557 for (xml_obj = __xml_first_child_element(xml_nodes); xml_obj != NULL; in unpack_nodes()
558 xml_obj = __xml_next_element(xml_obj)) { in unpack_nodes()
638 xmlNode *xml_obj = NULL; in unpack_remote_nodes() local
641 for (xml_obj = __xml_first_child_element(xml_resources); xml_obj != NULL; in unpack_remote_nodes()
642 xml_obj = __xml_next_element(xml_obj)) { in unpack_remote_nodes()
767 xmlNode *xml_obj = NULL; in unpack_resources() local
774 for (xml_obj = __xml_first_child_element(xml_resources); xml_obj != NULL; in unpack_resources()
775 xml_obj = __xml_next_element(xml_obj)) { in unpack_resources()
946 for (xml_obj = __xml_first_child_element(xml_tickets); xml_obj != NULL; in unpack_tickets_state()
[all …]
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/lib/pengine/
H A Dbundle.c133 xmlNode *xml_obj = NULL; in create_ip_resource() local
184 xmlNode *xml_obj = NULL; in create_docker_resource() local
348 xmlNode *xml_obj = NULL; in create_podman_resource() local
514 xmlNode *xml_obj = NULL; in create_rkt_resource() local
1017 xmlNode *xml_obj = NULL; in pe__unpack_bundle() local
1030 if (xml_obj != NULL) { in pe__unpack_bundle()
1034 if (xml_obj != NULL) { in pe__unpack_bundle()
1038 if (xml_obj != NULL) { in pe__unpack_bundle()
1079 if(xml_obj) { in pe__unpack_bundle()
1187 } else if(xml_obj) { in pe__unpack_bundle()
[all …]
H A Dcomplex.c280 if (xml_obj == NULL) { in unpack_template()
290 id = ID(xml_obj); in unpack_template()
315 xmlNodeSetName(new_xml, xml_obj->name); in unpack_template()
387 if (xml_obj == NULL) { in add_template_rsc()
397 id = ID(xml_obj); in add_template_rsc()
493 common_unpack(xmlNode * xml_obj, pe_resource_t ** rsc, in common_unpack() argument
501 const char *id = crm_element_value(xml_obj, XML_ATTR_ID); in common_unpack()
515 crm_log_xml_trace(xml_obj, "Processing resource input..."); in common_unpack()
537 (*rsc)->orig_xml = xml_obj; in common_unpack()
540 (*rsc)->xml = xml_obj; in common_unpack()
[all …]
H A Dunpack.c532 xmlNode *xml_obj = NULL; in unpack_nodes() local
548 for (xml_obj = pcmk__xe_first_child(xml_nodes); xml_obj != NULL; in unpack_nodes()
549 xml_obj = pcmk__xe_next(xml_obj)) { in unpack_nodes()
631 xmlNode *xml_obj = NULL; in unpack_remote_nodes() local
636 for (xml_obj = pcmk__xe_first_child(xml_resources); xml_obj != NULL; in unpack_remote_nodes()
637 xml_obj = pcmk__xe_next(xml_obj)) { in unpack_remote_nodes()
773 for (xml_obj = pcmk__xe_first_child(xml_resources); xml_obj != NULL; in unpack_resources()
774 xml_obj = pcmk__xe_next(xml_obj)) { in unpack_resources()
797 crm_element_name(xml_obj), crm_str(ID(xml_obj))); in unpack_resources()
948 for (xml_obj = pcmk__xe_first_child(xml_tickets); xml_obj != NULL; in unpack_tickets_state()
[all …]
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/datasets/src/
H A Dor_pascal.cpp169 XMLElement *xml_obj = xml_ann->FirstChildElement("object"); in parseAnnotation() local
171 while (xml_obj) in parseAnnotation()
174 pascal_obj.name = xml_obj->FirstChildElement("name")->GetText(); in parseAnnotation()
175 pascal_obj.pose = parseNodeText(xml_obj, "pose", "Unspecified"); in parseAnnotation()
176 pascal_obj.truncated = atoi(parseNodeText(xml_obj, "truncated", "0")) > 0; in parseAnnotation()
177 pascal_obj.difficult = atoi(parseNodeText(xml_obj, "difficult", "0")) > 0; in parseAnnotation()
178 pascal_obj.occluded = atoi(parseNodeText(xml_obj, "occluded", "0")) > 0; in parseAnnotation()
181 XMLElement *xml_bndbox = xml_obj->FirstChildElement("bndbox"); in parseAnnotation()
189 XMLElement *xml_part = xml_obj->FirstChildElement("part"); in parseAnnotation()
209 xml_obj = xml_obj->NextSiblingElement("object"); in parseAnnotation()
/dports/net/pacemaker1/pacemaker-Pacemaker-1.1.24/tools/
H A Dcrm_resource_print.c28 xmlNode *xml_obj = NULL; in cli_resource_print_cts_constraints() local
32 for (xml_obj = __xml_first_child_element(cib_constraints); xml_obj != NULL; in cli_resource_print_cts_constraints()
33 xml_obj = __xml_next_element(xml_obj)) { in cli_resource_print_cts_constraints()
34 const char *id = crm_element_value(xml_obj, XML_ATTR_ID); in cli_resource_print_cts_constraints()
40 lifetime = first_named_child(xml_obj, "lifetime"); in cli_resource_print_cts_constraints()
46 if (safe_str_eq(XML_CONS_TAG_RSC_DEPEND, crm_element_name(xml_obj))) { in cli_resource_print_cts_constraints()
48 crm_element_name(xml_obj), in cli_resource_print_cts_constraints()
49 cons_string(crm_element_value(xml_obj, XML_ATTR_ID)), in cli_resource_print_cts_constraints()
50 cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE)), in cli_resource_print_cts_constraints()
51 cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_TARGET)), in cli_resource_print_cts_constraints()
[all …]
/dports/net/pacemaker1/pacemaker-Pacemaker-1.1.24/lib/common/
H A Dxpath.c198 get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level) in get_xpath_object_relative() argument
205 if (xml_obj == NULL || xpath == NULL) { in get_xpath_object_relative()
209 xpath_prefix = (char *)xmlGetNodePath(xml_obj); in get_xpath_object_relative()
216 result = get_xpath_object(xpath_full, xml_obj, error_level); in get_xpath_object_relative()
224 get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level) in get_xpath_object() argument
233 return xml_obj; /* or return NULL? */ in get_xpath_object()
236 xpathObj = xpath_search(xml_obj, xpath); in get_xpath_object()
237 nodePath = (char *)xmlGetNodePath(xml_obj); in get_xpath_object()
242 crm_log_xml_explicit(xml_obj, "Unexpected Input"); in get_xpath_object()
259 crm_log_xml_explicit(xml_obj, "Bad Input"); in get_xpath_object()
/dports/net/boinc-client/boinc-client_release-7.8-7.8.6/html/ops/
H A Dfix_prefs.php37 $xml_obj = @simplexml_load_string($p);
38 if ($xml_obj) {
40 $xml_obj->mod_time = 1 + intval($xml_obj->mod_time);
41 $p = $xml_obj->asXML();
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/lib/common/
H A Dxpath.c192 get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level) in get_xpath_object_relative() argument
198 if (xml_obj == NULL || xpath == NULL) { in get_xpath_object_relative()
202 xpath_prefix = (char *)xmlGetNodePath(xml_obj); in get_xpath_object_relative()
206 result = get_xpath_object(xpath_full, xml_obj, error_level); in get_xpath_object_relative()
214 get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level) in get_xpath_object() argument
223 return xml_obj; /* or return NULL? */ in get_xpath_object()
226 xpathObj = xpath_search(xml_obj, xpath); in get_xpath_object()
227 nodePath = (char *)xmlGetNodePath(xml_obj); in get_xpath_object()
234 crm_log_xml_explicit(xml_obj, "Unexpected Input"); in get_xpath_object()
255 crm_log_xml_explicit(xml_obj, "Bad Input"); in get_xpath_object()
/dports/textproc/p5-XML-Smart/XML-Smart-1.79/t/
H A Dencode_tests.t58 my $xml_obj = new XML::Smart( $xml_input ) ;
60 my $data = $xml_obj->data(
93 my $xml_obj = XML::Smart->new() ;
97 $xml_obj->{ response }{ data } = $utf8 ;
103 $response_xml = $xml_obj->data() ;
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/tools/
H A Dcrm_resource_print.c21 xmlNode *xml_obj = NULL; in cli_resource_print_cts_constraints() local
25 for (xml_obj = pcmk__xe_first_child(cib_constraints); xml_obj != NULL; in cli_resource_print_cts_constraints()
26 xml_obj = pcmk__xe_next(xml_obj)) { in cli_resource_print_cts_constraints()
27 const char *id = crm_element_value(xml_obj, XML_ATTR_ID); in cli_resource_print_cts_constraints()
34 lifetime = first_named_child(xml_obj, "lifetime"); in cli_resource_print_cts_constraints()
44 crm_element_name(xml_obj), in cli_resource_print_cts_constraints()
45 cons_string(crm_element_value(xml_obj, XML_ATTR_ID)), in cli_resource_print_cts_constraints()
46 cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_SOURCE)), in cli_resource_print_cts_constraints()
47 cons_string(crm_element_value(xml_obj, XML_COLOC_ATTR_TARGET)), in cli_resource_print_cts_constraints()
48 cons_string(crm_element_value(xml_obj, XML_RULE_ATTR_SCORE)), in cli_resource_print_cts_constraints()
[all …]
/dports/net/pacemaker1/pacemaker-Pacemaker-1.1.24/attrd/
H A Dcommands.c1103 xmlNode *xml_obj = NULL; in build_update_element() local
1106 crm_xml_add(xml_obj, XML_ATTR_ID, nodeid); in build_update_element()
1108 xml_obj = create_xml_node(xml_obj, XML_TAG_TRANSIENT_NODEATTRS); in build_update_element()
1109 crm_xml_add(xml_obj, XML_ATTR_ID, nodeid); in build_update_element()
1111 xml_obj = create_xml_node(xml_obj, XML_TAG_ATTR_SETS); in build_update_element()
1113 crm_xml_set_id(xml_obj, "%s", a->set); in build_update_element()
1117 set = ID(xml_obj); in build_update_element()
1119 xml_obj = create_xml_node(xml_obj, XML_CIB_TAG_NVPAIR); in build_update_element()
1121 crm_xml_set_id(xml_obj, "%s", a->uuid); in build_update_element()
1123 crm_xml_set_id(xml_obj, "%s-%s", set, a->id); in build_update_element()
[all …]
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/daemons/attrd/
H A Dattrd_commands.c1191 xmlNode *xml_obj = NULL; in build_update_element() local
1194 crm_xml_add(xml_obj, XML_ATTR_ID, nodeid); in build_update_element()
1196 xml_obj = create_xml_node(xml_obj, XML_TAG_TRANSIENT_NODEATTRS); in build_update_element()
1197 crm_xml_add(xml_obj, XML_ATTR_ID, nodeid); in build_update_element()
1199 xml_obj = create_xml_node(xml_obj, XML_TAG_ATTR_SETS); in build_update_element()
1201 crm_xml_set_id(xml_obj, "%s", a->set); in build_update_element()
1205 set = ID(xml_obj); in build_update_element()
1207 xml_obj = create_xml_node(xml_obj, XML_CIB_TAG_NVPAIR); in build_update_element()
1209 crm_xml_set_id(xml_obj, "%s", a->uuid); in build_update_element()
1211 crm_xml_set_id(xml_obj, "%s-%s", set, a->id); in build_update_element()
[all …]
/dports/databases/p5-SQL-Translator/SQL-Translator-1.62/lib/SQL/Translator/Producer/XML/
H A DSQLFairy.pm198 xml_obj($xml, $schema,
207 xml_obj($xml, $table,
321 xml_obj($xml, $obj,
346 sub xml_obj { subroutine
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/include/crm/pengine/
H A Drules.h49 void pe_eval_nvpairs(xmlNode *top, xmlNode *xml_obj, const char *set_name,
54 void pe_unpack_nvpairs(xmlNode *top, xmlNode *xml_obj, const char *set_name,
60 void pe_eval_versioned_attributes(xmlNode *top, xmlNode *xml_obj,

123