Tidyups etc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17380 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-07-28 10:53:18 +00:00
parent e360fa5bf5
commit cfe8d9e881
8 changed files with 79 additions and 5 deletions

View file

@ -1124,6 +1124,20 @@ static NSMapTable *nodeNames = 0;
return nil;
}
/**
* Convenience method, equivalent to calling -type and comparing it
* with the result of passing "XML_ELEMENT_NODE" to
* +typeFromDescription: (but faster).
*/
- (BOOL) isElement
{
if ((int)((xmlNodePtr)(lib))->type == XML_ELEMENT_NODE)
{
return YES;
}
return NO;
}
- (BOOL) isEqual: (id)other
{
if ([other isKindOfClass: [self class]] == YES
@ -1137,6 +1151,20 @@ static NSMapTable *nodeNames = 0;
}
}
/**
* Convenience method, equivalent to calling -type and comparing it
* with the result of passing "XML_TEXT_NODE" to
* +typeFromDescription: (but faster).
*/
- (BOOL) isText
{
if ((int)((xmlNodePtr)(lib))->type == XML_TEXT_NODE)
{
return YES;
}
return NO;
}
/**
* Returns a pointer to the raw libxml data used by this document.<br />
* Only for use by libxml experts!