X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fatompub.git;a=blobdiff_plain;f=atom%2Fcontent.c;h=4dea45356adadcc2fb1bd0d0e16063e0a864cd30;hp=7d1ed4910556a9afacd073fda075bcc9c866ce31;hb=HEAD;hpb=f099b7823ba2274326476a095959bfa58f379599 diff --git a/atom/content.c b/atom/content.c index 7d1ed49..4dea453 100644 --- a/atom/content.c +++ b/atom/content.c @@ -77,7 +77,10 @@ atom_content_new_from_xmlnode (xmlNodePtr root) XML child or a content child. Using the type attribute might be a good idead. Let's just ask that the current method works. */ - if (root->children && root->children->type == XML_ELEMENT_NODE) + child = root->children; + while (child && child->type != XML_ELEMENT_NODE) + child = child->next; + if (child) { content->xmlcontent = xmlCopyNodeList (root->children); }