• 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
NSXMLParser & whitespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLParser & whitespace


  • Subject: NSXMLParser & whitespace
  • From: Ken Tozier <email@hidden>
  • Date: Mon, 26 Jul 2004 11:31:58 -0400

I'm writing a custom parser for plist files using NSXMLParser and have
everything working OK except for the "pretty" whitespace Property List
Editor inserts for readability. All my found strings end with returns
followed by a variable number of tabs. I've tried using "parser:
foundIgnorableWhitespace:" and releasing the whitespace string like so:

- (void) parser:(NSXMLParser *) parser
foundIgnorableWhitespace:(NSString *) whitespaceString
{
[whitespaceString release];
}

but the found strings still have the whitespace suffix.

Anyone know how to ignore whitespace in found strings?

Thanks,

Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSXMLParser & whitespace
      • From: Kevin Ballard <email@hidden>
  • Prev by Date: Reverse Engineering AirTunes
  • Next by Date: NSColor
  • Previous by thread: Reverse Engineering AirTunes
  • Next by thread: Re: NSXMLParser & whitespace
  • Index(es):
    • Date
    • Thread