libgutenprint API Reference 5.2.14

Typedefs | Functions
xml.h File Reference

XML tree functions. More...

`#include <gutenprint/mxml.h>`

## Typedefs
typedef int(* | stp_xml_parse_func) (stp_mxml_node_t *node, const char *file)

## Functions
void | stp_register_xml_parser (const char *name, stp_xml_parse_func parse_func)
void | stp_unregister_xml_parser (const char *name)
void | stp_register_xml_preload (const char *filename)
void | stp_unregister_xml_preload (const char *filename)
int | stp_xml_init_defaults (void)
int | stp_xml_parse_file (const char *file)
long | stp_xmlstrtol (const char *value)
unsigned long | stp_xmlstrtoul (const char *value)
double | stp_xmlstrtod (const char *textval)
stp_raw_t * | stp_xmlstrtoraw (const char *textval)
char * | stp_rawtoxmlstr (const stp_raw_t *raw)
char * | stp_strtoxmlstr (const char *raw)
void | stp_prtraw (const stp_raw_t *raw, FILE *fp)
void | stp_xml_init (void)
void | stp_xml_exit (void)
stp_mxml_node_t * | stp_xml_get_node (stp_mxml_node_t *xmlroot,...)
stp_mxml_node_t * | stp_xmldoc_create_generic (void)
void | stp_xml_preinit (void)
stp_sequence_t * | stp_sequence_create_from_xmltree (stp_mxml_node_t *da)
stp_mxml_node_t * | stp_xmltree_create_from_sequence (const stp_sequence_t *seq)
stp_curve_t * | stp_curve_create_from_xmltree (stp_mxml_node_t *da)
stp_mxml_node_t * | stp_xmltree_create_from_curve (const stp_curve_t *curve)
stp_array_t * | stp_array_create_from_xmltree (stp_mxml_node_t *array)
stp_vars_t * | stp_vars_create_from_xmltree (stp_mxml_node_t *da)
stp_mxml_node_t * | stp_xmltree_create_from_array (const stp_array_t *array)
stp_vars_t * | stp_vars_create_from_xmltree_ref (stp_mxml_node_t *da, stp_mxml_node_t *root)
void | stp_vars_fill_from_xmltree (stp_mxml_node_t *da, stp_vars_t *v)
void | stp_vars_fill_from_xmltree_ref (stp_mxml_node_t *da, stp_mxml_node_t *root, stp_vars_t *v)
stp_mxml_node_t * | stp_xmltree_create_from_vars (const stp_vars_t *v)
void | stp_xml_parse_file_named (const char *name)

## Detailed Description

XML tree functions.

## Typedef Documentation

## ◆ stp_xml_parse_func

typedef int(* stp_xml_parse_func) (stp_mxml_node_t *node, const char *file)

## Function Documentation

## ◆ stp_array_create_from_xmltree()

stp_array_t* stp_array_create_from_xmltree | ( | stp_mxml_node_t * | array | ) |

## ◆ stp_curve_create_from_xmltree()

stp_curve_t* stp_curve_create_from_xmltree | ( | stp_mxml_node_t * | da | ) |

## ◆ stp_prtraw()

void stp_prtraw | ( | const stp_raw_t * | raw,
|  | FILE * | fp
| ) |  |

## ◆ stp_rawtoxmlstr()

char* stp_rawtoxmlstr | ( | const stp_raw_t * | raw | ) |

## ◆ stp_register_xml_parser()

void stp_register_xml_parser | ( | const char * | name,
|  | stp_xml_parse_func | parse_func
| ) |  |

## ◆ stp_register_xml_preload()

void stp_register_xml_preload | ( | const char * | filename | ) |

## ◆ stp_sequence_create_from_xmltree()

stp_sequence_t* stp_sequence_create_from_xmltree | ( | stp_mxml_node_t * | da | ) |

## ◆ stp_strtoxmlstr()

char* stp_strtoxmlstr | ( | const char * | raw | ) |

## ◆ stp_unregister_xml_parser()

void stp_unregister_xml_parser | ( | const char * | name | ) |

## ◆ stp_unregister_xml_preload()

void stp_unregister_xml_preload | ( | const char * | filename | ) |

## ◆ stp_vars_create_from_xmltree()

stp_vars_t* stp_vars_create_from_xmltree | ( | stp_mxml_node_t * | da | ) |

## ◆ stp_vars_create_from_xmltree_ref()

stp_vars_t* stp_vars_create_from_xmltree_ref | ( | stp_mxml_node_t * | da,
|  | stp_mxml_node_t * | root
| ) |  |

## ◆ stp_vars_fill_from_xmltree()

void stp_vars_fill_from_xmltree | ( | stp_mxml_node_t * | da,
|  | stp_vars_t * | v
| ) |  |

## ◆ stp_vars_fill_from_xmltree_ref()

void stp_vars_fill_from_xmltree_ref | ( | stp_mxml_node_t * | da,
|  | stp_mxml_node_t * | root,
|  | stp_vars_t * | v
| ) |  |

## ◆ stp_xml_exit()

void stp_xml_exit | ( | void |  | ) |

## ◆ stp_xml_get_node()

stp_mxml_node_t* stp_xml_get_node | ( | stp_mxml_node_t * | xmlroot,
|  |  | ...
| ) |  |

## ◆ stp_xml_init()

void stp_xml_init | ( | void |  | ) |

## ◆ stp_xml_init_defaults()

int stp_xml_init_defaults | ( | void |  | ) |

## ◆ stp_xml_parse_file()

int stp_xml_parse_file | ( | const char * | file | ) |

## ◆ stp_xml_parse_file_named()

void stp_xml_parse_file_named | ( | const char * | name | ) |

## ◆ stp_xml_preinit()

void stp_xml_preinit | ( | void |  | ) |

## ◆ stp_xmldoc_create_generic()

stp_mxml_node_t* stp_xmldoc_create_generic | ( | void |  | ) |

## ◆ stp_xmlstrtod()

double stp_xmlstrtod | ( | const char * | textval | ) |

## ◆ stp_xmlstrtol()

long stp_xmlstrtol | ( | const char * | value | ) |

## ◆ stp_xmlstrtoraw()

stp_raw_t* stp_xmlstrtoraw | ( | const char * | textval | ) |

## ◆ stp_xmlstrtoul()

unsigned long stp_xmlstrtoul | ( | const char * | value | ) |

## ◆ stp_xmltree_create_from_array()

stp_mxml_node_t* stp_xmltree_create_from_array | ( | const stp_array_t * | array | ) |

## ◆ stp_xmltree_create_from_curve()

stp_mxml_node_t* stp_xmltree_create_from_curve | ( | const stp_curve_t * | curve | ) |

## ◆ stp_xmltree_create_from_sequence()

stp_mxml_node_t* stp_xmltree_create_from_sequence | ( | const stp_sequence_t * | seq | ) |

## ◆ stp_xmltree_create_from_vars()

stp_mxml_node_t* stp_xmltree_create_from_vars | ( | const stp_vars_t * | v | ) |