Converting HTML entities to NSXMLNode tree
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
"<b>hello<>"). 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