fixed some warnings
[TestXSLT.git] / XMLParserLibxml.h
1 //
2 //  XMLParserLibxml.h
3 //  TestXSLT
4 //
5 //  Created by Marc Liyanage on Sun Aug 04 2002.
6 //  Copyright (c) 2002 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 #include "libxml/parser.h"
12
13 extern void *xmlGenericErrorContext;
14
15 @interface XMLParserLibxml : NSObject {
16
17 //      xmlParserCtxtPtr xmlContext;
18         xmlDocPtr parsedXmlDoc;
19         NSMutableString *errorMessage;
20         int errorLine;
21         BOOL errorOccurred;
22         NSString *baseUri;
23
24 }
25
26
27 void makeUnixLineFeeds(char *buffer);
28
29 - (BOOL)parseData:(NSData *)xmlCode;
30 //- (BOOL)checkWellFormedData:(NSData *)xmlCode;
31 - (void)setErrorMessage:(NSString *)message;
32 - (void)appendErrorMessage:(NSString *)message;
33 - (void)markFirstErrorLine;
34 - (NSString *)errorMessage;
35 - (void)clearError;
36 - (void)setError:(NSString *)message atLine:(int)line;
37 - (xmlDocPtr)nativeDoc;
38
39 - (void)setBaseUri:(NSString *)uri;
40 - (NSString *)baseUri;
41
42 - (int)errorLine;
43
44 void XMLParserLibxml_xmlErrorHandler(id self, const char *message, ...);
45 void XMLParserLibxml_xmlErrorHandler2(id self, const char *message, ...);
46
47
48 @end