Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 1 | /* |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 2 | * SAX.h : Default SAX handler interfaces. |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 3 | * |
| 4 | * See Copyright for the status of this software. |
| 5 | * |
| 6 | * Daniel Veillard <Daniel.Veillard@w3.org> |
| 7 | */ |
| 8 | |
| 9 | |
Daniel Veillard | b24054a | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 10 | #ifndef __XML_SAX_H__ |
| 11 | #define __XML_SAX_H__ |
| 12 | |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 13 | #include <stdio.h> |
| 14 | #include <stdlib.h> |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 15 | #include <libxml/parser.h> |
| 16 | #include <libxml/xlink.h> |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 17 | |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 18 | #ifdef __cplusplus |
Daniel Veillard | 32bc74e | 2000-07-14 14:49:25 +0000 | [diff] [blame] | 19 | extern "C" { |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 20 | #endif |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 21 | const xmlChar * getPublicId (void *ctx); |
| 22 | const xmlChar * getSystemId (void *ctx); |
| 23 | void setDocumentLocator (void *ctx, |
| 24 | xmlSAXLocatorPtr loc); |
| 25 | |
| 26 | int getLineNumber (void *ctx); |
| 27 | int getColumnNumber (void *ctx); |
| 28 | |
| 29 | int isStandalone (void *ctx); |
| 30 | int hasInternalSubset (void *ctx); |
| 31 | int hasExternalSubset (void *ctx); |
| 32 | |
| 33 | void internalSubset (void *ctx, |
| 34 | const xmlChar *name, |
| 35 | const xmlChar *ExternalID, |
| 36 | const xmlChar *SystemID); |
Daniel Veillard | 134c9f3 | 2000-10-15 10:27:08 +0000 | [diff] [blame] | 37 | void externalSubset (void *ctx, |
| 38 | const xmlChar *name, |
| 39 | const xmlChar *ExternalID, |
| 40 | const xmlChar *SystemID); |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 41 | xmlEntityPtr getEntity (void *ctx, |
| 42 | const xmlChar *name); |
| 43 | xmlEntityPtr getParameterEntity (void *ctx, |
| 44 | const xmlChar *name); |
| 45 | xmlParserInputPtr resolveEntity (void *ctx, |
| 46 | const xmlChar *publicId, |
| 47 | const xmlChar *systemId); |
| 48 | |
| 49 | void entityDecl (void *ctx, |
| 50 | const xmlChar *name, |
| 51 | int type, |
| 52 | const xmlChar *publicId, |
| 53 | const xmlChar *systemId, |
| 54 | xmlChar *content); |
| 55 | void attributeDecl (void *ctx, |
| 56 | const xmlChar *elem, |
| 57 | const xmlChar *name, |
| 58 | int type, |
| 59 | int def, |
| 60 | const xmlChar *defaultValue, |
| 61 | xmlEnumerationPtr tree); |
| 62 | void elementDecl (void *ctx, |
| 63 | const xmlChar *name, |
| 64 | int type, |
| 65 | xmlElementContentPtr content); |
| 66 | void notationDecl (void *ctx, |
| 67 | const xmlChar *name, |
| 68 | const xmlChar *publicId, |
| 69 | const xmlChar *systemId); |
| 70 | void unparsedEntityDecl (void *ctx, |
| 71 | const xmlChar *name, |
| 72 | const xmlChar *publicId, |
| 73 | const xmlChar *systemId, |
| 74 | const xmlChar *notationName); |
| 75 | |
| 76 | void startDocument (void *ctx); |
| 77 | void endDocument (void *ctx); |
| 78 | void attribute (void *ctx, |
| 79 | const xmlChar *fullname, |
| 80 | const xmlChar *value); |
| 81 | void startElement (void *ctx, |
| 82 | const xmlChar *fullname, |
| 83 | const xmlChar **atts); |
| 84 | void endElement (void *ctx, |
| 85 | const xmlChar *name); |
| 86 | void reference (void *ctx, |
| 87 | const xmlChar *name); |
| 88 | void characters (void *ctx, |
| 89 | const xmlChar *ch, |
| 90 | int len); |
| 91 | void ignorableWhitespace (void *ctx, |
| 92 | const xmlChar *ch, |
| 93 | int len); |
| 94 | void processingInstruction (void *ctx, |
| 95 | const xmlChar *target, |
| 96 | const xmlChar *data); |
| 97 | void globalNamespace (void *ctx, |
| 98 | const xmlChar *href, |
| 99 | const xmlChar *prefix); |
| 100 | void setNamespace (void *ctx, |
| 101 | const xmlChar *name); |
| 102 | xmlNsPtr getNamespace (void *ctx); |
| 103 | int checkNamespace (void *ctx, |
Ramiro Estrugo | bfce377 | 1999-12-15 04:32:07 +0000 | [diff] [blame] | 104 | xmlChar *nameSpace); |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 105 | void namespaceDecl (void *ctx, |
| 106 | const xmlChar *href, |
| 107 | const xmlChar *prefix); |
| 108 | void comment (void *ctx, |
| 109 | const xmlChar *value); |
| 110 | void cdataBlock (void *ctx, |
| 111 | const xmlChar *value, |
| 112 | int len); |
| 113 | |
| 114 | void xmlDefaultSAXHandlerInit (void); |
| 115 | void htmlDefaultSAXHandlerInit (void); |
Daniel Veillard | 39c7d71 | 2000-09-10 16:14:55 +0000 | [diff] [blame] | 116 | void sgmlDefaultSAXHandlerInit (void); |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 117 | #ifdef __cplusplus |
| 118 | } |
| 119 | #endif |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 120 | #endif /* __XML_SAX_H__ */ |