undo change to children for documents

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34515 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2012-01-13 20:12:15 +00:00
parent 3fd92857a4
commit 6983dd6e31

View file

@ -288,8 +288,6 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
NSUInteger count = 0;
xmlNodePtr children = NULL;
xmlNodePtr node = (xmlNodePtr)(internal->node);
if (node->type == XML_DOCUMENT_NODE)
node = xmlDocGetRootElement((xmlDocPtr)node);
for (children = node->children; children && count != index; children = children->next)
{
@ -304,8 +302,6 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
NSUInteger count = 0;
xmlNodePtr children = NULL;
xmlNodePtr node = MY_NODE;
if (node->type == XML_DOCUMENT_NODE)
node = xmlDocGetRootElement((xmlDocPtr)node);
for (children = node->children; children; children = children->next)
{
@ -320,8 +316,6 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
NSMutableArray *childrenArray = [NSMutableArray array];
xmlNodePtr children = NULL;
xmlNodePtr node = (xmlNodePtr)(internal->node);
if (node->type == XML_DOCUMENT_NODE)
node = xmlDocGetRootElement((xmlDocPtr)node);
for (children = node->children; children; children = children->next)
{