Re: NSXMLDocument pretty printing
Re: NSXMLDocument pretty printing
- Subject: Re: NSXMLDocument pretty printing
- From: Mike Abdullah <email@hidden>
- Date: Mon, 5 Feb 2007 22:41:40 +0000
Oh I see. The constant's there in the docs, but it's lower down than
the hyperlink suggests. Guess I ought to file a bug on it.
Mike.
On 5 Feb 2007, at 22:38, Pierre Bernard wrote:
Mike,
I have been using NSXMLDocument's
- (NSData *)XMLDataWithOptions:(unsigned int)options
The documentation for that method links to possible constants. The
list there does not mention the pretty print constant.
Without your help I would never have found it. Thus I'd say the
documentation could be better here. BTW googling "NSXMLDocument
pretty print" did not help either.
Thanks
Pierre
On 5 Feb 2007, at 23:34, Mike Abdullah wrote:
Nah, it's an NSXMLNode method which NSXMLDocument is a subclass of.
Mike.
On 5 Feb 2007, at 22:32, Pierre Bernard wrote:
Mighty cool! Thanks.
This seems to be missing from the documentation: http://
developer.apple.com/documentation/Cocoa/Reference/Foundation/
Classes/NSXMLDocument_Class/Reference/Reference.html#//apple_ref/
doc/uid/20002406-44798
Best,
Pierre
On 5 Feb 2007, at 23:26, Mike Abdullah wrote:
-XMLStringWithOptions: NSXMLNodePrettyPrint;
Mike.
On 5 Feb 2007, at 22:23, Pierre Bernard wrote:
Hi!
Is there a way to make NSXMLDocument spit out a pretty printed
file/string: new lines after tags, hopefully some indentation ?
The odd thing is that I start out with a pretty printed file.
Read it in. Make a couple of changes. Out comes this one long
line of unreadable XML.
Thanks in advance for your suggestions.
Pierre
---
Pierre Bernard
http://www.bernard-web.com/pierre
http://www.houdah.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40mikeabdullah.net
This email sent to email@hidden
- - -
Houdah Software s. à r. l.
http://www.houdah.com
- Quality Mac OS X software
- Premium WebObjects consulting
- - -
Houdah Software s. à r. l.
http://www.houdah.com
- Quality Mac OS X software
- Premium WebObjects consulting
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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