Below is a snippet of what you get when you save the configuration of IIS 6/Windows Server 2003 web sites to a file:
<?xml version ="1.0"?>
<configuration xmlns="urn:microsoft-catalog:XML_Metabase_V64_0">
<MBProperty>
<IIsWebServer Location ="/LM/W3SVC/1"
AppPoolId="DefaultAppPool"
DefaultDoc="Default.htm,Default.asp,index.htm,iisstart.htm,Default.aspx"
ServerAutoStart="FALSE"
ServerBindings=":80:"
ServerComment="Default Web Site"
ServerSize="1"
>
</IIsWebServer>
<IIsWebServer Location ="/LM/W3SVC/1020944513"
AuthFlags="0"
LogPluginClsid="{FF160663-DE82-11CF-BC0A-00AA006111E0}"
ServerAutoStart="TRUE"
ServerBindings="161.230.8.183:80:"
ServerComment="staging.magazinefundraising.com"
>
</IIsWebServer>
<IIsWebServer Location ="/LM/W3SVC/103632312"
AuthFlags="0"
LogPluginClsid="{FF160663-DE82-11CF-BC0A-00AA006111E0}"
ServerAutoStart="TRUE"
ServerBindings="161.230.9.48:80:"
ServerComment="QSP2.Downtime"
>
</IIsWebServer>
</MBProperty>
</configuration>
As you can see, there are multiple <IIsWebServer>
sections between the <MBProperty>
and </MBProperty>
elements.
I'd like to create a simple xsl stylesheet which outputs a multi-column (tabular) result containing the following attributes for each IIsWebServer instance:
ServerComment
ServerBindings
AuthFlags
So the result might look something like:
ServerComment ServerBindings AuthFlags
------------- -------------- ---------
QSP2.Downtime 161.230.9.48:80: 0
and so on...
Thanks!