Item parseItem(MXParser parser) throws XmlPullParserException, IOException {
        Item item = new Item();
        boolean done = false;
        while (!done) {
            int eventType = parser.next();
            if (eventType == MXParser.START_TAG) {
                String name = parser.getName();
                if (name.equalsIgnoreCase("pk")) {
                    item.id = parserText(parser).trim();
                } else if (name.equalsIgnoreCase("content_model")) {
                    item.model = parserText(parser).trim();
                } else if (name.equalsIgnoreCase("title")) {
                    item.title = parserText(parser).trim();
                }
            } else if (eventType == MXParser.END_TAG) {
                String name = parser.getName();
                if (name.equalsIgnoreCase("list-item")) {
                    done = true;
                }
            }
        }
        
        return item;
    }