mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
* 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:
parent
bff55a090d
commit
4e4bf5a00c
7 changed files with 93 additions and 117 deletions
|
@ -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...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue