xmldata: ContentTypeDeclaration *and* NodePrettyPrint?
xmldata: ContentTypeDeclaration *and* NodePrettyPrint?
- Subject: xmldata: ContentTypeDeclaration *and* NodePrettyPrint?
- From: "Ian Kennedy" <email@hidden>
- Date: Fri, 21 Mar 2008 19:51:37 -0400
Hi all,
I'm hoping this is an easy question: is it possible to use both
NSXMLDocumentIncludeContentTypeDeclaration and NSXMLNodePrettyPrint as
options when converting an NSXMLDocument to NSData? I seem to only to
be able to do one or the other.
relevant code:
NSXMLDocument *manifestXML = [[NSXMLDocument alloc]
initWithRootElement:manifest];
[manifestXML setVersion:@"1.0"];
[manifestXML setCharacterEncoding:@"UTF-8"];
NSData *xmlData = [manifestXML
XMLDataWithOptions:NSXMLDocumentIncludeContentTypeDeclaration];
//NSData *xmlData = [manifestXML XMLDataWithOptions:NSXMLNodePrettyPrint];
Thanks in advance,
Ian Kennedy
--
nolite te bastardes carborundorum.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden