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> |
| 15 | #include "parser.h" |
Daniel Veillard | 10a2c65 | 1999-12-12 13:03:50 +0000 | [diff] [blame] | 16 | #include "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 |
| 19 | #define extern "C" { |
| 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); |
| 37 | xmlEntityPtr getEntity (void *ctx, |
| 38 | const xmlChar *name); |
| 39 | xmlEntityPtr getParameterEntity (void *ctx, |
| 40 | const xmlChar *name); |
| 41 | xmlParserInputPtr resolveEntity (void *ctx, |
| 42 | const xmlChar *publicId, |
| 43 | const xmlChar *systemId); |
| 44 | |
| 45 | void entityDecl (void *ctx, |
| 46 | const xmlChar *name, |
| 47 | int type, |
| 48 | const xmlChar *publicId, |
| 49 | const xmlChar *systemId, |
| 50 | xmlChar *content); |
| 51 | void attributeDecl (void *ctx, |
| 52 | const xmlChar *elem, |
| 53 | const xmlChar *name, |
| 54 | int type, |
| 55 | int def, |
| 56 | const xmlChar *defaultValue, |
| 57 | xmlEnumerationPtr tree); |
| 58 | void elementDecl (void *ctx, |
| 59 | const xmlChar *name, |
| 60 | int type, |
| 61 | xmlElementContentPtr content); |
| 62 | void notationDecl (void *ctx, |
| 63 | const xmlChar *name, |
| 64 | const xmlChar *publicId, |
| 65 | const xmlChar *systemId); |
| 66 | void unparsedEntityDecl (void *ctx, |
| 67 | const xmlChar *name, |
| 68 | const xmlChar *publicId, |
| 69 | const xmlChar *systemId, |
| 70 | const xmlChar *notationName); |
| 71 | |
| 72 | void startDocument (void *ctx); |
| 73 | void endDocument (void *ctx); |
| 74 | void attribute (void *ctx, |
| 75 | const xmlChar *fullname, |
| 76 | const xmlChar *value); |
| 77 | void startElement (void *ctx, |
| 78 | const xmlChar *fullname, |
| 79 | const xmlChar **atts); |
| 80 | void endElement (void *ctx, |
| 81 | const xmlChar *name); |
| 82 | void reference (void *ctx, |
| 83 | const xmlChar *name); |
| 84 | void characters (void *ctx, |
| 85 | const xmlChar *ch, |
| 86 | int len); |
| 87 | void ignorableWhitespace (void *ctx, |
| 88 | const xmlChar *ch, |
| 89 | int len); |
| 90 | void processingInstruction (void *ctx, |
| 91 | const xmlChar *target, |
| 92 | const xmlChar *data); |
| 93 | void globalNamespace (void *ctx, |
| 94 | const xmlChar *href, |
| 95 | const xmlChar *prefix); |
| 96 | void setNamespace (void *ctx, |
| 97 | const xmlChar *name); |
| 98 | xmlNsPtr getNamespace (void *ctx); |
| 99 | int checkNamespace (void *ctx, |
Ramiro Estrugo | bfce377 | 1999-12-15 04:32:07 +0000 | [diff] [blame] | 100 | xmlChar *nameSpace); |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 101 | void namespaceDecl (void *ctx, |
| 102 | const xmlChar *href, |
| 103 | const xmlChar *prefix); |
| 104 | void comment (void *ctx, |
| 105 | const xmlChar *value); |
| 106 | void cdataBlock (void *ctx, |
| 107 | const xmlChar *value, |
| 108 | int len); |
| 109 | |
| 110 | void xmlDefaultSAXHandlerInit (void); |
| 111 | void htmlDefaultSAXHandlerInit (void); |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 112 | #ifdef __cplusplus |
| 113 | } |
| 114 | #endif |
Daniel Veillard | 294cbca | 1999-12-03 13:19:09 +0000 | [diff] [blame] | 115 | #endif /* __XML_SAX_H__ */ |