* Source/NSXMLPrivate.h: Move private method declarations for

NSXMLNode to here.
* Source/NSXMLDocument.m
* Source/NSXMLDTD.m
* Source/NSXMLDTDNode.m
* Source/NSXMLElement.m
* Source/NSXMLNode.m: Clean up and add comments about missing
code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34877 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2012-03-04 21:40:39 +00:00
parent a4d0010baf
commit a91938aac3
7 changed files with 93 additions and 117 deletions

View file

@ -29,13 +29,6 @@
#import "NSXMLPrivate.h"
#import "GSInternal.h"
#ifdef HAVE_LIBXSLT
#import <libxslt/xslt.h>
#import <libxslt/xsltInternals.h>
#import <libxslt/transform.h>
#import <libxslt/xsltutils.h>
#endif
GS_PRIVATE_INTERNAL(NSXMLDocument)
//#import <Foundation/NSXMLParser.h>
@ -43,17 +36,6 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
#if defined(HAVE_LIBXML)
// Private methods to manage libxml pointers...
@interface NSXMLNode (Private)
- (void *) _node;
- (void) _setNode: (void *)_anode;
+ (NSXMLNode *) _objectForNode: (xmlNodePtr)node;
- (void) _addSubNode:(NSXMLNode *)subNode;
- (void) _removeSubNode:(NSXMLNode *)subNode;
- (void) _insertChild: (NSXMLNode*)child atIndex: (NSUInteger)index;
- (id) _initWithNode:(xmlNodePtr)node kind:(NSXMLNodeKind)kind;
@end
@implementation NSXMLDocument
+ (Class) replacementClassForClass: (Class)cls
@ -112,7 +94,6 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
return doc;
}
- (id) initWithData: (NSData*)data
options: (NSUInteger)mask
error: (NSError**)error
@ -157,6 +138,7 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
userInfo: nil];
}
}
// FIXME: Free old node
[self _setNode: doc];
}
return self;
@ -172,7 +154,7 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
{
[self release];
return [[NSXMLNode alloc] initWithKind: kind
options: theOptions];
options: theOptions];
}
}
@ -263,6 +245,8 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
self];
}
// FIXME: Should remove all sub nodes
xmlDocSetRootElement(MY_DOC, [root _node]);
// Do our subNode housekeeping...