Last Update: 2010/07/26 11:16
xmlChar *buffer = NULL; int size = 0; xmlDocDumpMemoryEnc(yourXmlDocPtr, &buffer, &size, "utf-8"); NSLog(@"Xml Data: %@", [NSString stringWithCString:(char*)buffer encoding:NSUTF8StringEncoding]); free(buffer); buffer = NULL;
沒有留言:
張貼留言