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