Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让 NSXMLElement 成为父节点,而不是 NSXMLNode?
好的解决了......类型转换似乎可以解决问题。
NSXMLNode *manufacturer = [someNode parent]; NSXMLElement *manufacturer_element = (NSXMLElement *)manufacturer;