def diff_attributes_values(root, node, tag, attribute, values):
""" This function creates tags in the new xml file which contain
information about the value tags from data.xml
:Arguments:
1. root (xml.etree.ElementTree.Element) = parent of the current node from
data.xml
2. node (xml.etree.ElementTree.Element) = current node from data.xml
3. tag (xml.etree.ElementTree.Element) = current node that would be added
to the new xml file
4. attribute (xml.etree.ElementTree.Element) = The current attribure tag
5. values (list[xml.etree.ElementTree.Element]) = complete list of
value tags in that particular nesting from data.xml
"""
for i in range(0, len(values)):
info = values[i].find("info")
if info is not None:
print info.text
print "Warrior recommends that all these dependencies be installed on" \
" your machine."
get_answer_for_depen(root, node, tag, attribute, values)
interactive_warhorn.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录