Simple and concise desktop Cocoa NSXMLParser example?

后端 未结 3 1695
梦如初夏
梦如初夏 2021-01-25 07:54

I would like to look through the elements of a file and when one specific element comes out, output the contents in between the tag.

I tried to follow the example in the

3条回答
  •  無奈伤痛
    2021-01-25 08:27

    If you click the "Next" link on that page and go onto "Handling XML Elements and Attributes" it will give you an example of how to code the delegates.

    Apple provides a Mac example in ImageMap.

    There's no difference between NSXMLParser on Mac and iPhone, so reading an iPhone example shouldn't be a problem.

提交回复
热议问题