A class to represent one node in an XML document.
More...
#import <INXMLNode.h>
Inherits NSObject.
Inherited by INXMLReport.
A class to represent one node in an XML document.
- (id) attr: |
|
(NSString *) |
attributeName |
|
A shortcut to get the object representing the attribute with the given name.
- (BOOL) boolAttr: |
|
(NSString *) |
attributeName |
|
Tries to interpret an attribute as a bool value.
Returns NO if the attribute:
- is missing
- is empty
- reads "null", "0", "false" or "no"
Returns a boolean value by interpreting the text content.
Any form of "true", "yes" and 1 returns a YES, everything else a NO
- (INXMLNode *) childNamed: |
|
(NSString *) |
childName |
|
Returns the first child node matching the given name.
Only the direct child nodes are checked, no deep searching is performed.
- (NSArray *) childrenNamed: |
|
(NSString *) |
childName |
|
Searches child nodes for a node with given name.
Only the direct child nodes are checked, no deep searching is performed.
- Returns
- Returns an array with nodes matching the name, nil otherwise
Return the first child node or nil, if there are none.
+ (INXMLNode *) nodeWithName: |
|
(NSString *) |
aName |
|
Returns an empty node with given node name.
Returns a node with given name and attributes.
- (NSNumber *) numAttr: |
|
(NSString *) |
attributeName |
|
Returns the attribute as an NSNumber.
If the value is not numeric you will probably get what you deserve.
- (void) setAttr: |
|
(NSString *) |
attrValue |
forKey: |
|
(NSString *) |
attrKey |
|
|
| |
- (NSMutableDictionary*) attributes |
|
readwritenonatomicstrong |
- (NSMutableArray*) children |
|
readwritenonatomicstrong |
The documentation for this class was generated from the following files:
- IndivoFramework/Classes/INXMLNode.h
- IndivoFramework/Classes/INXMLNode.m