Make NSXMLElement a parent

135 Views Asked by At

Is there a way that I can make an NSXMLElement a parent, instead of an NSXMLNode?

1

There are 1 best solutions below

0
On BEST ANSWER

Ok solved... typecasting the type seems to do the trick.

NSXMLNode *manufacturer = [someNode parent];
NSXMLElement *manufacturer_element = (NSXMLElement *)manufacturer;