mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Use xmlSave for XML String creation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34929 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
043b774291
commit
3318835025
4 changed files with 49 additions and 38 deletions
|
@ -365,23 +365,6 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
|
|||
return data;
|
||||
}
|
||||
|
||||
- (NSString *) XMLStringWithOptions: (NSUInteger)options
|
||||
{
|
||||
NSString *string = nil;
|
||||
xmlChar *buf = NULL;
|
||||
int length;
|
||||
|
||||
xmlDocDumpFormatMemoryEnc(internal->node, &buf, &length, "utf-8",
|
||||
((options & NSXMLNodePrettyPrint) ? 1 : 0));
|
||||
|
||||
if (buf != 0 && length > 0)
|
||||
{
|
||||
string = StringFromXMLString(buf, length);
|
||||
free(buf);
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
||||
- (id) objectByApplyingXSLT: (NSData*)xslt
|
||||
arguments: (NSDictionary*)arguments
|
||||
error: (NSError**)error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue