return link;
}
private static Story getStory(OMElement storyEle) {
OMAttribute storyAttribtute = storyEle.getAttribute(new QName("title"));
Story storyInfo = new Story();
storyInfo.setTitle(storyAttribtute.getAttributeValue());
OMElement storyContentEle = storyEle.getFirstChildWithName(new QName("story-content"));
if (storyContentEle != null) {
storyInfo.setContent(storyContentEle.getText());
}
OMElement storyLinkEle = storyEle.getFirstChildWithName(new QName("story-links"));
if (storyLinkEle != null) {
Iterator<OMElement> linkElements = storyLinkEle.getChildrenWithName(new QName("link"));
while (linkElements.hasNext()) {
OMElement linkEle = linkElements.next();
storyInfo.addLink(getLink(linkEle));
}
}
return storyInfo;
}