mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
* Source/NSXMLDocument.m: Implement XMLStringWithOptions:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34407 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5193c6fe20
commit
0b7ae8929b
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2012-01-03 14:22-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSXMLDocument.m: Implement XMLStringWithOptions:
|
||||||
|
|
||||||
2012-01-03 13:03-EST Gregory John Casamento <greg.casamento@gmail.com>
|
2012-01-03 13:03-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Headers/Foundation/NSXMLElement.h
|
* Headers/Foundation/NSXMLElement.h
|
||||||
|
|
|
@ -282,6 +282,20 @@
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *) XMLStringWithOptions: (NSUInteger)options
|
||||||
|
{
|
||||||
|
NSMutableString *string = [NSMutableString string];
|
||||||
|
NSEnumerator *en = [_children objectEnumerator];
|
||||||
|
id obj = nil;
|
||||||
|
|
||||||
|
[string appendString: @"<?xml version=\"1.0\"?>"];
|
||||||
|
while((obj = [en nextObject]) != nil)
|
||||||
|
{
|
||||||
|
[string appendString: [obj XMLStringWithOptions: options]];
|
||||||
|
}
|
||||||
|
return string;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSXMLDocument (NSXMLParserDelegate)
|
@implementation NSXMLDocument (NSXMLParserDelegate)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue