Imported GNU Classpath 0.90
[official-gcc.git] / libjava / classpath / native / jni / xmlj / xmlj_sax.h
blob249929ce02aa01b8876c7a1f20e5fa153956aa15
1 /* xmlj_sax.h -
2 Copyright (C) 2004 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 02110-1301 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 #ifndef XMLJ_SAX_H
39 #define XMLJ_SAX_H
41 #include "gnu_xml_libxmlj_sax_GnomeLocator.h"
42 #include "gnu_xml_libxmlj_sax_GnomeXMLReader.h"
44 #include <libxml/SAX.h>
45 #include <libxml/parser.h>
47 xmlSAXHandlerPtr
48 xmljNewSAXHandler (jboolean contentHandler,
49 jboolean dtdHandler,
50 jboolean entityResolver,
51 jboolean errorHandler,
52 jboolean declarationHandler,
53 jboolean lexicalHandler);
55 xmlParserInputPtr
56 xmljExternalEntityLoader (const char *systemId, const char *publicId,
57 xmlParserCtxtPtr context);
59 /* -- Function declarations for callback functions -- */
61 void xmljSAXInternalSubset(void *ctx,
62 const xmlChar *name,
63 const xmlChar *publicId,
64 const xmlChar *systemId);
66 xmlParserInputPtr xmljSAXResolveEntity(void *ctx,
67 const xmlChar *publicId,
68 const xmlChar *systemId);
70 xmlEntityPtr xmljSAXGetEntity(void *ctx,
71 const xmlChar *name);
73 void xmljSAXEntityDecl(void *ctx,
74 const xmlChar *name,
75 int type,
76 const xmlChar *publicId,
77 const xmlChar *systemId,
78 xmlChar *content);
80 void xmljSAXNotationDecl(void *ctx,
81 const xmlChar *name,
82 const xmlChar *publicId,
83 const xmlChar *systemId);
85 void xmljSAXAttributeDecl(void *ctx,
86 const xmlChar *elem,
87 const xmlChar *fullName,
88 int type,
89 int def,
90 const xmlChar *defaultValue,
91 xmlEnumerationPtr tree);
93 void xmljSAXElementDecl(void *ctx,
94 const xmlChar *name,
95 int type,
96 xmlElementContentPtr content);
98 void xmljSAXUnparsedEntityDecl(void *ctx,
99 const xmlChar *name,
100 const xmlChar *publicId,
101 const xmlChar *systemId,
102 const xmlChar *notationName);
104 void xmljSAXSetDocumentLocator(void *ctx,
105 xmlSAXLocatorPtr loc);
107 void xmljSAXStartDocument(void *ctx);
109 void xmljSAXEndDocument(void *ctx);
111 void xmljSAXStartElement(void *ctx,
112 const xmlChar *name,
113 const xmlChar **atts);
115 void xmljSAXEndElement(void *ctx,
116 const xmlChar *name);
118 void xmljSAXReference(void *ctx,
119 const xmlChar *name);
121 void xmljSAXCharacters(void *ctx,
122 const xmlChar *ch,
123 int len);
125 void xmljSAXIgnorableWhitespace(void *ctx,
126 const xmlChar *ch,
127 int len);
129 void xmljSAXProcessingInstruction(void *ctx,
130 const xmlChar *target,
131 const xmlChar *data);
133 void xmljSAXComment(void *ctx,
134 const xmlChar *value);
136 void xmljSAXCDataBlock(void *ctx,
137 const xmlChar *ch,
138 int len);
140 void xmljSAXWarning(void *ctx,
141 const char *msg,
142 ...);
144 void xmljSAXError(void *ctx,
145 const char *msg,
146 ...);
148 void xmljSAXFatalError(void *ctx,
149 const char *msg,
150 ...);
152 void xmljCheckWellFormed(xmlParserCtxtPtr ctx);
154 jstring xmljAttributeTypeName (JNIEnv *env,
155 int type);
157 jstring xmljAttributeModeName (JNIEnv *env,
158 int type);
160 #endif /* !defined XMLJ_SAX_H */