Lines Matching refs:el
376 static void xml_element_serialize(xml_element *el, int (*fptr)(void *data, const char *text, int si… in xml_element_serialize() argument
385 if(!el) { in xml_element_serialize()
417 if(el->name) { in xml_element_serialize()
418 xml_elem_writefunc(fptr, el->name, data, 0); in xml_element_serialize()
421 if(Q_Size(&el->attrs)) { in xml_element_serialize()
422 xml_element_attr* iter = Q_Head(&el->attrs); in xml_element_serialize()
431 iter = Q_Next(&el->attrs); in xml_element_serialize()
439 if(!el->text.len && !Q_Size(&el->children)) { in xml_element_serialize()
447 if(el->text.len) { in xml_element_serialize()
448 char* escaped_str = el->text.str; in xml_element_serialize()
449 int buflen = el->text.len; in xml_element_serialize()
452 … escaped_str = xml_elem_entity_escape(el->text.str, buflen, &buflen, options->escaping ); in xml_element_serialize()
454 escaped_str = el->text.str; in xml_element_serialize()
464 if(escaped_str != el->text.str) { in xml_element_serialize()
474 xml_element *kids = Q_Head(&el->children); in xml_element_serialize()
483 kids = Q_Next(&el->children); in xml_element_serialize()
493 xml_elem_writefunc(fptr,el->name ? el->name : "None", data, 0); in xml_element_serialize()
537 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len) in xml_elem_serialize_to_string() argument
542 xml_element_serialize(el, simplestring_out_fptr, (void *)&buf, options, 0); in xml_elem_serialize_to_string()
571 void xml_elem_serialize_to_stream(xml_element *el, FILE *output, XML_ELEM_OUTPUT_OPTIONS options) in xml_elem_serialize_to_stream() argument
573 xml_element_serialize(el, file_out_fptr, (void *)output, options, 0); in xml_elem_serialize_to_stream()