使用GDataXML*构建XML文档时,如何设置生成的XML的文档类型?我如何使用GData的大致轮廓可以在这里找到:
http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml
发布于 2011-06-17 01:59:29
我们最终这样做了,这不是很理想,但确实成功了:
NSMutableString* contentString = [[[NSMutableString alloc] init] autorelease];
[contentString setString: @"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"];
[contentString appendString:@"<!DOCTYPE somedoc SYSTEM \"http://x.y.com/some.dtd\">"];
[contentString appendString:@"<somedoc></somedoc>"];
GDataXMLDocument *document = [[[GDataXMLDocument alloc] initWithXMLString:contentString options:0 error:nil] autorelease];https://stackoverflow.com/questions/5707954
复制相似问题