123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #import <Foundation/Foundation.h>
- @interface TFHppleElement : NSObject
- - (id) initWithNode:(NSDictionary *) theNode isXML:(BOOL)isDataXML withEncoding:(NSString *)theEncoding;
- + (TFHppleElement *) hppleElementWithNode:(NSDictionary *) theNode isXML:(BOOL)isDataXML withEncoding:(NSString *)theEncoding;
- @property (nonatomic, copy, readonly) NSString *raw;
- @property (nonatomic, copy, readonly) NSString *content;
- @property (nonatomic, copy, readonly) NSString *tagName;
- @property (nonatomic, strong, readonly) NSDictionary *attributes;
- @property (nonatomic, strong, readonly) NSArray *children;
- @property (nonatomic, strong, readonly) TFHppleElement *firstChild;
- @property (nonatomic, unsafe_unretained, readonly) TFHppleElement *parent;
- - (BOOL)hasChildren;
- - (BOOL)isTextNode;
- - (NSString *) objectForKey:(NSString *) theKey;
- - (NSArray *) childrenWithTagName:(NSString *)tagName;
- - (TFHppleElement *) firstChildWithTagName:(NSString *)tagName;
- - (NSArray *) childrenWithClassName:(NSString *)className;
- - (TFHppleElement *) firstChildWithClassName:(NSString*)className;
- - (TFHppleElement *) firstTextChild;
- - (NSString *) text;
- - (NSArray *) searchWithXPathQuery:(NSString *)xPathOrCSS;
- - (id)objectForKeyedSubscript:(id)key;
- @end
|