void wbxml_tree_clb_wbxml_start_element(void *ctx, WBXMLTag *element, WBXMLAttribute **attrs, WB_BOOL empty) { WBXMLTreeClbCtx *tree_ctx = (WBXMLTreeClbCtx *) ctx; if (tree_ctx->error != WBXML_OK) return; /* Add a new Node to tree */ tree_ctx->current = wbxml_tree_add_elt_with_attrs(tree_ctx->tree, tree_ctx->current, element, attrs); if (tree_ctx->current == NULL) { tree_ctx->error = WBXML_ERROR_INTERNAL; } }
void wbxml_tree_clb_wbxml_start_element(void *ctx, WBXMLTag *element, WBXMLAttribute **attrs, WB_BOOL empty) { WBXMLTreeClbCtx *tree_ctx = (WBXMLTreeClbCtx *) ctx; if (tree_ctx->error != WBXML_OK) return; if(WbxmlUserCBs) // CSH Added for WBXML parser { WbxmlUserCBs->start_element_Userclb(WbxmlUserData, (const char *)element->u.token->xmlName, attrs); return; } #ifdef ENABLE_WBXML2XML //Origin CSH1213. 2008 /* Add a new Node to tree */ tree_ctx->current = wbxml_tree_add_elt_with_attrs(tree_ctx->tree, tree_ctx->current, element, attrs); if (tree_ctx->current == NULL) { tree_ctx->error = WBXML_ERROR_INTERNAL; } #endif }