#51 Add XSL in the Linux output file

open
5
2006-11-24
2006-11-24
Anonymous
No

The same XSL used for WIndows Server kind of works for Linux output file.
I've just added the Python line indicated underneath by the arrow (-->), and the XML file can then be visualized on the Web.

def writeXML(outputFile):
global gendate, platforminfo, hostinfo, cpuinfo, services, installed_packages, localUsers, localGroups
xmlFile = file(outputFile, "w+")
xmlFile.write('<?xml version="1.0" encoding="ISO-8859-1" ?>\n')
--> xmlFile.write('<?xml-stylesheet type="text/xsl" href="serverhtml.xsl"?>\n')
xmlFile.write('<computer>\n')

Discussion