[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GSXML to string
From: |
David Wetzel |
Subject: |
Re: GSXML to string |
Date: |
Wed, 13 Mar 2002 15:28:19 +0000 |
Björn Gohla wrote:
> is there a way to cast a GSXMLDocument into a string, does the description
> method perhaps do that?
try something like this. if I remember correctly, each document has a root node.
@implementation GSXMLNode (TCAdditons)
- (NSString*) description
{
NSString* myDescStr = [NSString stringWithFormat:@"<GSXMLNode: %x\nstart
Name:%@\nType:%@\nContent:%@\nProperties:%@\nnext:%x\nchildren:%x\ndoc:%@\nend
Name:%@\n>",
self,
[self name],
[self
typeDescription],
[self
content],
[self
propertiesAsDictionary],
[self next],
[self
children],
[self doc],
[self name]
];
return myDescStr;
}
@end
---
_ _
_(_)(_)_ David Wetzel, Turbocat's Development,
(_) __ (_) Buchhorster Strasse 23, D-16567 Muehlenbeck/Berlin, FRG,
_/ \_ Fax +49 33056 82835 Phone +49 33056 82834
(______) http://www.turbocat.de/ dave@turbocat.de
- GSXML to string, Bjoern Gohla, 2002/03/13
- Re: GSXML to string,
David Wetzel <=