5 // Created by Marc Liyanage on Sun Aug 04 2002.
6 // Copyright (c) 2002 __MyCompanyName__. All rights reserved.
9 #import <Foundation/Foundation.h>
11 #include "libxml/parser.h"
13 extern void *xmlGenericErrorContext;
15 @interface XMLParserLibxml : NSObject {
17 // xmlParserCtxtPtr xmlContext;
18 xmlDocPtr parsedXmlDoc;
19 NSMutableString *errorMessage;
27 void makeUnixLineFeeds(char *buffer);
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;
36 - (void)setError:(NSString *)message atLine:(int)line;
37 - (xmlDocPtr)nativeDoc;
39 - (void)setBaseUri:(NSString *)uri;
40 - (NSString *)baseUri;
44 void XMLParserLibxml_xmlErrorHandler(id self, const char *message, ...);
45 void XMLParserLibxml_xmlErrorHandler2(id self, const char *message, ...);