@classmethod<EOL><INDENT>def _new_from_xml(cls, xmlnode):<DEDENT>
child = xmlnode.children<EOL>fields = []<EOL>while child:<EOL><INDENT>if child.type != "<STR_LIT>" or child.ns().content != DATAFORM_NS:<EOL><INDENT>pass<EOL><DEDENT>elif child.name == "<STR_LIT>":<EOL><INDENT>fields.append(Field._new_from_xml(child))<EOL><DEDENT>child = child.next<EOL><DEDENT>return cls(fields)<EOL>
Create a new `Item` object from an XML element.

        :Parameters:
            - `xmlnode`: the XML element.
        :Types:
            - `xmlnode`: `libxml2.xmlNode`

        :return: the object created.
        :returntype: `Item`