• 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
Converting HTML entities to NSXMLNode tree
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting HTML entities to NSXMLNode tree


  • Subject: Converting HTML entities to NSXMLNode tree
  • From: Ben Kazez <email@hidden>
  • Date: Sat, 03 Sep 2005 09:51:23 -0400

Hi,

I have an NSXMLNode that contains entity-ized XML code (like "&lt;b>hello&lt;>"). I need to convert the code into NSXMLNodes in the proper tree, so I tried this:

[node setStringValue:[node stringValue] resolvingEntities:YES];

This caused a crash, although now that I reread the documentation, this might not work anyway: I think it will not create the tree under the node but instead will just make node a text node with the given contents.

So, given a text node containing entity-ized XML, how do I convert this into an NSXMLNode tree representation of the XML, beneath the node?

Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Converting HTML entities to NSXMLNode tree
      • From: Timothy Larkin <email@hidden>
  • Prev by Date: Dictionary? Array? or other
  • Next by Date: Accessing Contents via OpenGL-View
  • Previous by thread: Re: Dictionary? Array? or other
  • Next by thread: Re: Converting HTML entities to NSXMLNode tree
  • Index(es):
    • Date
    • Thread