Minor api tidyup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-09-25 15:32:11 +00:00
parent 244562aa08
commit 08f72bd14a
3 changed files with 30 additions and 0 deletions

View file

@ -209,6 +209,9 @@ static NSMapTable *attrNames = 0;
return desc;
}
/**
* Return the next sibling node.
*/
- (GSXMLNode*) next
{
if (((xmlAttrPtr)(lib))->next != NULL)
@ -1215,6 +1218,27 @@ static NSMapTable *nodeNames = 0;
}
}
/**
* Return the previous element node at this level.
*/
- (GSXMLNode*) previousElement
{
xmlNodePtr ptr = (xmlNodePtr)lib;
while (ptr->prev != NULL)
{
ptr = ptr->prev;
if (ptr->type == XML_ELEMENT_NODE)
{
GSXMLNode *n = [GSXMLNode alloc];
n = [n _initFrom: ptr parent: self];
return AUTORELEASE(n);
}
}
return nil;
}
/**
* <p>