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:
fredkiefer 2012-03-14 21:12:19 +00:00
parent e3a0cd2cee
commit caa752f124
4 changed files with 49 additions and 38 deletions

View file

@ -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