XML updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-09-15 19:56:39 +00:00
parent ad4737dd34
commit 9c6703537a
88 changed files with 5305 additions and 2013 deletions

View file

@ -1,7 +1,29 @@
/* Implementation for GSXMLDocument for GNUstep xmlparser
Written by: Michael Pakhantsov <mishel@berest.dp.ua>
Copyright (C) 2000 Free Software Foundation, Inc.
Written by: Michael Pakhantsov <mishel@berest.dp.ua> on behalf of
Brainstorm computer solutions.
Date: Jule 2000
Integration by Richard Frith-Macdonald <richard@brainstorm.co.uk>
Date: September 2000
This file is part of the GNUstep Base Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
*/
#include <libxml/parser.h>
@ -152,9 +174,9 @@ setupCache()
}
- (GSXMLNode*) makeNode: (GSXMLNamespace*)ns
name: (NSString*)name
content: (NSString*)content;
- (GSXMLNode*) makeNodeWithNamespace: (GSXMLNamespace*)ns
name: (NSString*)name
content: (NSString*)content;
{
return [GSXMLNode nodeFrom:
xmlNewDocNode(lib, [ns lib], [name cString], [content cString])];
@ -176,9 +198,9 @@ setupCache()
}
/* This is the initializer of this class */
+ (GSXMLNamespace*) namespace: (GSXMLNode*)node
href: (NSString*)href
prefix: (NSString*)prefix
+ (GSXMLNamespace*) namespaceWithNode: (GSXMLNode*)node
href: (NSString*)href
prefix: (NSString*)prefix
{
return AUTORELEASE([[self alloc] initWithNode: node
href: href
@ -552,9 +574,9 @@ setupCache()
}
}
- (GSXMLNode*) makeChild: (GSXMLNamespace*)ns
name: (NSString*)name
content: (NSString*)content;
- (GSXMLNode*) makeChildWithNamespace: (GSXMLNamespace*)ns
name: (NSString*)name
content: (NSString*)content;
{
return [GSXMLNode nodeFrom:
xmlNewChild(lib, [ns lib], [name cString], [content cString])];
@ -621,14 +643,14 @@ setupCache()
return lib;
}
+ (GSXMLAttribute*) attributeFromNode: (GSXMLNode*)node
+ (GSXMLAttribute*) attributeWithNode: (GSXMLNode*)node
name: (NSString*)name
value: (NSString*)value;
{
return AUTORELEASE([[self alloc] initFromNode: node name: name value: value]);
return AUTORELEASE([[self alloc] initWithNode: node name: name value: value]);
}
- (id) initFromNode: (GSXMLNode*)node
- (id) initWithNode: (GSXMLNode*)node
name: (NSString*)name
value: (NSString*)value;
{