Inherits from NSObject
Declared in DTHTMLParserNode.h

Overview

This class represents one node in an HTML DOM tree.

Properties

attributes

The attributes of the receiver.

@property (nonatomic, copy) NSDictionary *attributes

Declared In

DTHTMLParserNode.h

childNodes

The child nodes of the receiver

@property (nonatomic, readonly) NSArray *childNodes

Declared In

DTHTMLParserNode.h

name

The name of the receiver

@property (nonatomic, copy) NSString *name

Declared In

DTHTMLParserNode.h

parentNode

A weak link to the parent node of the receiver

@property (nonatomic, DT_WEAK_PROPERTY) DTHTMLParserNode *parentNode

Declared In

DTHTMLParserNode.h

Instance Methods

addChildNode:

Adds a child node to the receiver.

- (void)addChildNode:(DTHTMLParserNode *)childNode

Parameters

childNode

The child node to be appended to the list of children

Declared In

DTHTMLParserNode.h

debugDescription

Hierarchy representation of the receiver including all attributes and children

- (NSString *)debugDescription

Declared In

DTHTMLParserNode.h

initWithName:attributes:

Designated initializer

- (id)initWithName:(NSString *)name attributes:(NSDictionary *)attributes

Parameters

name

The element name

attributes

The attributes dictionary

Return Value

An initialized parser node.

Declared In

DTHTMLParserNode.h

removeAllChildNodes

Removes all child nodes from the receiver

- (void)removeAllChildNodes

Declared In

DTHTMLParserNode.h

removeChildNode:

Removes a child node from the receiver

- (void)removeChildNode:(DTHTMLParserNode *)childNode

Parameters

childNode

The child node to remove

Declared In

DTHTMLParserNode.h

text

Concatenated contents of all text nodes

- (NSString *)text

Declared In

DTHTMLParserNode.h