bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
doHTML.cpp
- Committer:
- bosko001
- Date:
- 2020-04-05
- Revision:
- 2:45b351b4fc2a
- Child:
- 3:1196befeace0
File content as of revision 2:45b351b4fc2a:
#include "string.h" #include "dxml.h" #include "doHTML.h" #include "HTMLpage.h" char* p_HTMLpage; dxml_t p_rootHTML; void inic_html( void ) { p_HTMLpage = (char*)malloc(sizeof(HTMLpage)); strcpy( p_HTMLpage, HTMLpage); p_rootHTML = dxml_parse_str(p_HTMLpage, strlen(p_HTMLpage)); auto body = dxml_child(p_rootHTML, "body"); auto form = dxml_child(body, "form"); auto table = dxml_child(form, "table"); auto tr = dxml_child(table, "tr"); auto td = dxml_child(tr, "td"); auto input = dxml_child(td, "input"); dxml_set_attr(input, "value", "dragomir"); } char *getHTML_free( void ) { return dxml_toxml(p_rootHTML); }