def getLinkedElementNode(idSuffix, parentNode, target):
 linkedElementNode = xml_simple_reader.ElementNode()
 euclidean.overwriteDictionary(target.attributes, ['id', 'name', 'quantity'], linkedElementNode.attributes)
 linkedElementNode.addSuffixToID(idSuffix)
 tagKeys = target.getTagKeys()
 tagKeys.append('carve')
 tagKeys.sort()
 tags = ', '.join(tagKeys)
 linkedElementNode.attributes['tags'] = tags
 linkedElementNode.setParentAddToChildNodes(parentNode)
 linkedElementNode.addToIdentifierDictionaries()
 return linkedElementNode

def getLinkedElementNode ( idSuffix , parentNode , target ) : linkedElementNode = xml_simple_reader . ElementNode ( ) euclidean . overwriteDictionary ( target . attributes , [ 'id' , 'name' , 'quantity' ] , linkedElementNode . attributes ) linkedElementNode . addSuffixToID ( idSuffix ) tagKeys = target . getTagKeys ( ) tagKeys . append ( 'carve' ) tagKeys . sort ( ) tags = ', ' . join ( tagKeys ) linkedElementNode . attributes [ 'tags' ] = tags linkedElementNode . setParentAddToChildNodes ( parentNode ) linkedElementNode . addToIdentifierDictionaries ( ) return linkedElementNode
get elementnode with identifiers and parentnode .