##// END OF EJS Templates
Busqueda de archivos dentro del directorio indicado (sin busqueda de subdirectorios) activando el flag de lectura 'walk'
Busqueda de archivos dentro del directorio indicado (sin busqueda de subdirectorios) activando el flag de lectura 'walk'

File last commit:

r208:f0e2ebb4337f
r224:b8cf5fb6064c
Show More
xmlprint.py
13 lines | 368 B | text/x-python | PythonLexer
Alexander Valdez
VERSION1-GUI...
r208 '''
Created on Septembre, 2012
@author: roj-idl71
'''
from xml.etree import ElementTree
from xml.dom import minidom
def prettify(elem):
"""Return a pretty-printed XML string for the Element.
"""
rough_string = ElementTree.tostring(elem, 'utf-8')
reparsed = minidom.parseString(rough_string)
return reparsed.toprettyxml(indent=" ")