• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
xmldata: ContentTypeDeclaration *and* NodePrettyPrint?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Cocoa Database Connection
  • Next by Date: Re: Simple Out-of-Box Demo: Private Framework Crashes in 10.3.9
  • Previous by thread: Re: populate a custom sub-class with data from bindings - SOLVED
  • Next by thread: How to set default value for NSTextField from program before window is displayed?
  • Index(es):
    • Date
    • Thread