#include "system.h"
#include <header.h>
#include "rpmxp.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | _RPMXP_INTERNAL |
Functions | |
rpmxp | rpmxpFree (rpmxp xp) |
Destroy an xml parser. | |
rpmxp | rpmxpNew (const char *fn) |
Create an xml parser. | |
int | rpmxpRead (rpmxp xp) |
Read next item from an xml parser. | |
int | rpmxpProcess (rpmxp xp) |
Parse all elements from an xml parser. | |
int | rpmxpParseFile (rpmxp xp) |
Parse all elements from an xml parser. | |
Variables | |
const char * | program_name |
int | _rpmxp_debug = 0 |
const char * | rpmxpDTD |
rpmxp rpmxpNew | ( | const char * | fn | ) |
Create an xml parser.
fn | xml file name |
Definition at line 44 of file rpmxp.c.
References rpmxpFree().
int rpmxpParseFile | ( | rpmxp | xp | ) |
Parse all elements from an xml parser.
xp | rpm xml parser |
Definition at line 157 of file rpmxp.c.
References rpmxpProcess(), and rpmxpRead().
int rpmxpProcess | ( | rpmxp | xp | ) |
Parse all elements from an xml parser.
xp | rpm xml parser |
Definition at line 72 of file rpmxp.c.
References _rpmxp_debug, Fclose(), Fopen(), HEADER_MAGIC_YES, headerAddEntry(), headerAddI18NString(), headerAddOrAppendEntry(), headerFree(), headerNew(), headerWrite(), myTagByName(), RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_I18NSTRING_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_NULL_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, rpmTagTable, headerTagTableEntry_s::type, and headerTagTableEntry_s::val.
int rpmxpRead | ( | rpmxp | xp | ) |
int _rpmxp_debug = 0 |
const char* program_name |
const char* rpmxpDTD |
Initial value:
"\ <?xml version=\"1.0\"?>\n\ <!DOCTYPE rpmHeader [\n\ <!ELEMENT rpmHeader (rpmTag+)>\n\ <!ELEMENT rpmTag (string+|integer+|base64+)>\n\ <!ATTLIST rpmTag name CDATA #REQUIRED>\n\ <!ELEMENT string (#PCDATA)>\n\ <!ELEMENT integer (#PCDATA)>\n\ <!ELEMENT base64 (#PCDATA)>\n\ ]>\n\ "