1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#ifndef __RXML_SCHEMA__
#define __RXML_SCHEMA__
#include <libxml/schemasInternals.h>
#include <libxml/xmlschemastypes.h>
typedef struct _xmlSchemaItemList xmlSchemaItemList;
typedef xmlSchemaItemList *xmlSchemaItemListPtr;
struct _xmlSchemaItemList {
void **items;
/* used for dynamic addition of schemata */
int nbItems;
/* used for dynamic addition of schemata */
int sizeItems; /* used for dynamic addition of schemata */
};
#define QNIL_OR_STRING(slot) \
(slot == NULL) ? Qnil : rb_str_new2((const char *)slot)
extern VALUE cXMLSchema;
void rxml_init_schema(void);
#endif
|