Lines Matching refs:xml
44 struct xml_node_ctx *xctx = ctx->xml; in hs20_spp_validate()
117 spp_node = xml_node_create_root(ctx->xml, SPP_NS_URI, "spp", &ns, in build_spp_post_dev_data()
124 xml_node_add_attr(ctx->xml, spp_node, ns, "sppVersion", "1.0"); in build_spp_post_dev_data()
125 xml_node_add_attr(ctx->xml, spp_node, NULL, "requestReason", reason); in build_spp_post_dev_data()
127 xml_node_add_attr(ctx->xml, spp_node, ns, "sessionID", in build_spp_post_dev_data()
129 xml_node_add_attr(ctx->xml, spp_node, NULL, "redirectURI", in build_spp_post_dev_data()
132 xml_node_create_text(ctx->xml, spp_node, ns, "supportedSPPVersions", in build_spp_post_dev_data()
134 xml_node_create_text(ctx->xml, spp_node, ns, "supportedMOList", in build_spp_post_dev_data()
138 add_mo_container(ctx->xml, ns, spp_node, URN_OMA_DM_DEVINFO, in build_spp_post_dev_data()
140 add_mo_container(ctx->xml, ns, spp_node, URN_OMA_DM_DEVDETAIL, in build_spp_post_dev_data()
160 uri = get_spp_attr_value(ctx->xml, update, "managementTreeURI"); in process_update_node()
170 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
176 str = xml_node_get_text(ctx->xml, update); in process_update_node()
179 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
197 tnds = xml_node_from_buf(ctx->xml, tmp); in process_update_node()
202 tnds = xml_node_from_buf(ctx->xml, str); in process_update_node()
203 xml_node_get_text_free(ctx->xml, str); in process_update_node()
206 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
210 unode = tnds_to_mo(ctx->xml, tnds); in process_update_node()
211 xml_node_free(ctx->xml, tnds); in process_update_node()
214 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
220 if (get_node_uri(ctx->xml, unode, name) == NULL) { in process_update_node()
222 xml_node_free(ctx->xml, unode); in process_update_node()
223 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
229 xml_node_free(ctx->xml, unode); in process_update_node()
230 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
237 xml_node_free(ctx->xml, unode); in process_update_node()
238 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
246 xml_node_free(ctx->xml, unode); in process_update_node()
247 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
255 xml_node_free(ctx->xml, unode); in process_update_node()
256 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
263 node = get_node(ctx->xml, pps, pos); in process_update_node()
265 parent = xml_node_get_parent(ctx->xml, node); in process_update_node()
266 xml_node_detach(ctx->xml, node); in process_update_node()
275 parent = get_node(ctx->xml, pps, pos); in process_update_node()
279 xml_node_free(ctx->xml, unode); in process_update_node()
280 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
285 xml_node_add_child(ctx->xml, parent, unode); in process_update_node()
287 xml_node_get_attr_value_free(ctx->xml, uri); in process_update_node()
297 xml_node_for_each_sibling(ctx->xml, update) { in update_pps()
298 xml_node_for_each_check(ctx->xml, update); in update_pps()
335 urn = get_spp_attr_value(ctx->xml, cmd, "moURN"); in hs20_spp_upload_mo()
343 xml_node_get_attr_value_free(ctx->xml, urn); in hs20_spp_upload_mo()
346 xml_node_get_attr_value_free(ctx->xml, urn); in hs20_spp_upload_mo()
357 add_mo_container(ctx->xml, ns, node, URN_HS20_PPS, pps_fname); in hs20_spp_upload_mo()
367 xml_node_free(ctx->xml, ret_node); in hs20_spp_upload_mo()
383 urn = get_spp_attr_value(ctx->xml, add_mo, "moURN"); in hs20_add_mo()
391 xml_node_get_attr_value_free(ctx->xml, urn); in hs20_add_mo()
394 xml_node_get_attr_value_free(ctx->xml, urn); in hs20_add_mo()
396 uri = get_spp_attr_value(ctx->xml, add_mo, "managementTreeURI"); in hs20_add_mo()
404 xml_node_get_attr_value_free(ctx->xml, uri); in hs20_add_mo()
464 xml_node_free(ctx->xml, ret_node); in hs20_spp_user_input_completed()
503 xml_node_free(ctx->xml, ret_node); in hs20_spp_get_certificate()
527 xml_node_for_each_child(ctx->xml, cmd, exec) { in hs20_spp_exec()
528 xml_node_for_each_check(ctx->xml, cmd); in hs20_spp_exec()
538 name = xml_node_get_localname(ctx->xml, cmd); in hs20_spp_exec()
542 uri = xml_node_get_text(ctx->xml, cmd); in hs20_spp_exec()
551 xml_node_get_text_free(ctx->xml, uri); in hs20_spp_exec()
610 status = get_spp_attr_value(ctx->xml, node, "sppStatus"); in process_spp_post_dev_data_response()
618 session_id = get_spp_attr_value(ctx->xml, node, "sessionID"); in process_spp_post_dev_data_response()
627 xml_node_for_each_child(ctx->xml, child, node) { in process_spp_post_dev_data_response()
629 xml_node_for_each_check(ctx->xml, child); in process_spp_post_dev_data_response()
631 name = xml_node_get_localname(ctx->xml, child); in process_spp_post_dev_data_response()
729 err = get_node(ctx->xml, node, "sppError"); in process_spp_post_dev_data_response()
731 code = xml_node_get_attr_value(ctx->xml, err, in process_spp_post_dev_data_response()
735 xml_node_get_attr_value_free(ctx->xml, code); in process_spp_post_dev_data_response()
743 xml_node_get_attr_value_free(ctx->xml, status); in process_spp_post_dev_data_response()
744 xml_node_get_attr_value_free(ctx->xml, session_id); in process_spp_post_dev_data_response()
745 xml_node_free(ctx->xml, node); in process_spp_post_dev_data_response()
775 xml_node_free(ctx->xml, ret_node); in spp_post_dev_data()
831 status = get_spp_attr_value(ctx->xml, node, "sppStatus"); in process_spp_exchange_complete()
839 session_id = get_spp_attr_value(ctx->xml, node, "sessionID"); in process_spp_exchange_complete()
842 xml_node_get_attr_value_free(ctx->xml, status); in process_spp_exchange_complete()
848 xml_node_get_attr_value_free(ctx->xml, session_id); in process_spp_exchange_complete()
852 xml_node_get_attr_value_free(ctx->xml, status); in process_spp_exchange_complete()
858 xml_node_get_attr_value_free(ctx->xml, status); in process_spp_exchange_complete()
871 spp_node = xml_node_create_root(ctx->xml, SPP_NS_URI, "spp", &ns, in build_spp_update_response()
876 xml_node_add_attr(ctx->xml, spp_node, ns, "sppVersion", "1.0"); in build_spp_update_response()
877 xml_node_add_attr(ctx->xml, spp_node, ns, "sessionID", session_id); in build_spp_update_response()
878 xml_node_add_attr(ctx->xml, spp_node, ns, "sppStatus", spp_status); in build_spp_update_response()
881 node = xml_node_create(ctx->xml, spp_node, ns, "sppError"); in build_spp_update_response()
883 xml_node_add_attr(ctx->xml, node, NULL, "errorCode", in build_spp_update_response()
922 xml_node_free(ctx->xml, ret_node); in hs20_spp_update_response()
927 xml_node_free(ctx->xml, ret_node); in hs20_spp_update_response()