• 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
NSXMLElement children doesn't return whitespace text nodes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLElement children doesn't return whitespace text nodes


  • Subject: NSXMLElement children doesn't return whitespace text nodes
  • From: Heath Borders <email@hidden>
  • Date: Thu, 03 Mar 2011 11:02:46 -0600

I have the following xml:

<root><foo>A foo.</foo> <bar>A bar.</bar></root>

Is there a way to access the whitespace-only NSXMLTextKind NSXMLNode?

I've also tried changing my document thusly:

<root xml:space="preserve"><foo>A foo.</foo> <bar>A bar.</bar></root>

I specify

NSXMLNodePreserveWhitespace

as my option to NSXMLDocument's

initWithXMLString:options:error:

selector.

Thanks!

-Heath Borders
email@hidden
Twitter: heathborders
http://heath-tech.blogspot.com
_______________________________________________

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

  • Follow-Ups:
    • Re: NSXMLElement children doesn't return whitespace text nodes
      • From: Gideon King <email@hidden>
  • Prev by Date: Adding subviews to UITableViewCell's contentView and autoresizing behavior
  • Next by Date: Re: NSXMLElement children doesn't return whitespace text nodes
  • Previous by thread: Re: Adding subviews to UITableViewCell's contentView and autoresizing behavior
  • Next by thread: Re: NSXMLElement children doesn't return whitespace text nodes
  • Index(es):
    • Date
    • Thread