def buildnode(self, nodename, splitargs, attrib={}, content=''):

        """
        Takes a node's name,attributes and content - a string,a mapping and another
        string respectively - and returns an XML node crafted accordingly with
        the parameters aforementioned.

        nodename is the node's name expressed as a string;splitargs is a boolean
        which when set to zero returns the node as a whole element,and when set to
        1 will return each one separately inspite.

        """
        
        node1 = '<' + nodename + self.yieldattr(attrib) + '>'
        node2 = '</' + nodename + '>'
        if splitargs == 0:
            node = node1 + content + node2
            return node
        else:
            return node1,content,node2

        Takes a node's name,attributes and content - a string,a mapping and another
        string respectively - and returns an XML node crafted accordingly with
        the parameters aforementioned.

        nodename is the node's name expressed as a string;splitargs is a boolean
        which when set to zero returns the node as a whole element,and when set to
        1 will return each one separately inspite.

        
recipes/Python/498101_Simpliest_XML_generator/recipe-498101.py