Home>
from xml.dom import minidom
try:
 xmlfile=open ("path.xml", "a +")
 #xmldoc=minidom.parse (sys.argv [1])
 xmldoc=minidom.parse (xmlfile)
except:
 #updatelogger.error ("can" t parse xml file. ")
 sys.exit (0)
clientoutputpath=xmldoc.getelementsbytagname ("d") [0] .attributes ["path"]. value
outputpath=xmldoc.getelementsbytagname ("h") [0] .attributes ["path"]. value
basepath=xmldoc.getelementsbytagname ("th") [0] .attributes ["path"]. value
toolpath=xmldoc.getelementsbytagname ("ub") [0] .attributes ["path"]. value
toolpath_2=xmldoc.getelementsbytagname ("ub") [1] .attributes ["path"]. value
clientoutputpath.replace ("\\", "<a>
\\\\
</a>")
outputpath.replace ("\\", "<a>
\\\\
</a>")
basepath.replace ("\\", "<a>
\\\\
</a>")
toolpath.replace ("\\", "<a>
\\\\
</a>")
print clientoutputpath
print outputpath
print basepath
print toolpath
print toolpath_2
  • Previous PHP class to filter UBB code
  • Next PHP implements method to convert video to MP4 and get video preview