12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // HTMLParser.h
- // StackOverflow
- //
- // Created by Ben Reeves on 09/03/2010.
- // Copyright 2010 Ben Reeves. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <libxml/HTMLparser.h>
- #import "HTMLNode.h"
- @class HTMLNode;
- @interface HTMLParser : NSObject
- {
- @public
- htmlDocPtr _doc;
- }
- -(id)initWithContentsOfURL:(NSURL*)url error:(NSError**)error;
- -(id)initWithData:(NSData*)data error:(NSError**)error;
- -(id)initWithString:(NSString*)string error:(NSError**)error;
- //Returns the doc tag
- -(HTMLNode*)doc;
- //Returns the body tag
- -(HTMLNode*)body;
- //Returns the html tag
- -(HTMLNode*)html;
- //Returns the head tag
- - (HTMLNode*)head;
- @end
|