Do Not Think!!!

Posted
Filed under 01010101
어떤 XML 파서를 이용해서 XML 을 처리할지 결정하는건 어려운 문제입니다.
처음 접하는 플랫폼에서는 더 어렵죠.

아이폰 프로젝트에서 어떤 XML 파서를 선택할 지에 대한 포스팅이 하나 있네요.
(뉴스피커를 만들 때 보지 못한 포스팅인데, 거의 상황에 맞는 선택을 한거였군요.)

How To Choose The Best XML Parser for Your iPhone Project
  • If you just want to read small XML documents, performance doesn’t matter as much with small documents. You probably want to pick something with XPath support and something that is written in Objective-C to make your job easier. So I’d recommend either TouchXML, KissXML, or GDataXML for this case.
  • If you want to both read and write small XML documents, again performance doesn’t matter as much as functionality and ease of use. You probably want to pick something with XPath support, written in Objective-C, with read/write capability. So I’d recommend KissXML or GDataXML for this case.
  • If you want to read extremely large XML documents, performance is the critical issue here. You’ll want to consider libxml2 SAX, TBXML, or libxml DOM for this, depending on what your exact situation is.

뉴스피커를 만들면서 선택했던 파서는 TouchXML 입니다.
그 이유는
첫 번째, 쓰기가 편했고,
두 번째, XPhath 를 지원했고,
세 번째, XML 용량의 압박이 심하지 않았기 때문에 메모리를 크게 걱정하지 않아도 되는 상황이었기 때문이죠.