I am working on an auditing project which needs to report on data that is in an XML file. I would like to load in the XML file and write it to a database (probably access) and report off of the database. Any help woulf be appreciated
Zack
'// begin sample XML data
<ComputerList>
<Computer Name="105LAB" QueryState="Queried" Username="">
<ManagedObject Name="WMI: Logged on user" Query="select UserName from Win32_ComputerSystem">
<Instance>
<Attribute Name="UserName" Value="INGR-IMGS\rray" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Operating System" Query="Select Caption from Win32_OperatingSystem">
<Instance>
<Attribute Name="Caption" Value="Microsoft Windows XP Professional" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Applications installed by Windows Installer" Query="select Name from win32_product">
<Instance>
<Attribute Name="Name" Value="WebFldrs XP" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Windows Journal Viewer" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Adobe Reader 6.0" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Office 2000 Standard" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft .NET Framework 1.1" />
</Instance>
</ManagedObject>
</Computer>
<Computer Name="ABARBAREE" QueryState="Queried" Username="">
<ManagedObject Name="WMI: Logged on user" Query="select UserName from Win32_ComputerSystem">
<Instance>
<Attribute Name="UserName" Value="INTERGRAPH\ahbarbar" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Operating System" Query="Select Caption from Win32_OperatingSystem">
<Instance>
<Attribute Name="Caption" Value="Microsoft Windows 2000 Professional" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Applications installed by Windows Installer" Query="select Name from win32_product">
<Instance>
<Attribute Name="Name" Value="DiskeeperWorkstation" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Project 2000" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Office 2000 Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Nauticos Renavigation Suite V2003.02" />
</Instance>
<Instance>
<Attribute Name="Name" Value="GeoMedia Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="WebFldrs" />
</Instance>
</ManagedObject>
</Computer>
<Computer Name="ABARBARLT" QueryState="Queried" Username="">
<ManagedObject Name="WMI: Logged on user" Query="select UserName from Win32_ComputerSystem">
<Instance>
<Attribute Name="UserName" Value="" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Operating System" Query="Select Caption from Win32_OperatingSystem">
<Instance>
<Attribute Name="Caption" Value="Microsoft Windows 2000 Professional" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Applications installed by Windows Installer" Query="select Name from win32_product">
<Instance>
<Attribute Name="Name" Value="ActivePerl 5.6.1 Build 631" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Project 2000" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Office 2000 Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Visio Professional 2002 SR-1 [English]" />
</Instance>
<Instance>
<Attribute Name="Name" Value="GeoMedia Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="WebFldrs" />
</Instance>
<Instance>
<Attribute Name="Name" Value="CaliberRM" />
</Instance>
</ManagedObject>
</Computer>
</ComputerList>
'// End sample XML data
Zack
'// begin sample XML data
<ComputerList>
<Computer Name="105LAB" QueryState="Queried" Username="">
<ManagedObject Name="WMI: Logged on user" Query="select UserName from Win32_ComputerSystem">
<Instance>
<Attribute Name="UserName" Value="INGR-IMGS\rray" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Operating System" Query="Select Caption from Win32_OperatingSystem">
<Instance>
<Attribute Name="Caption" Value="Microsoft Windows XP Professional" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Applications installed by Windows Installer" Query="select Name from win32_product">
<Instance>
<Attribute Name="Name" Value="WebFldrs XP" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Windows Journal Viewer" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Adobe Reader 6.0" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Office 2000 Standard" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft .NET Framework 1.1" />
</Instance>
</ManagedObject>
</Computer>
<Computer Name="ABARBAREE" QueryState="Queried" Username="">
<ManagedObject Name="WMI: Logged on user" Query="select UserName from Win32_ComputerSystem">
<Instance>
<Attribute Name="UserName" Value="INTERGRAPH\ahbarbar" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Operating System" Query="Select Caption from Win32_OperatingSystem">
<Instance>
<Attribute Name="Caption" Value="Microsoft Windows 2000 Professional" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Applications installed by Windows Installer" Query="select Name from win32_product">
<Instance>
<Attribute Name="Name" Value="DiskeeperWorkstation" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Project 2000" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Office 2000 Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Nauticos Renavigation Suite V2003.02" />
</Instance>
<Instance>
<Attribute Name="Name" Value="GeoMedia Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="WebFldrs" />
</Instance>
</ManagedObject>
</Computer>
<Computer Name="ABARBARLT" QueryState="Queried" Username="">
<ManagedObject Name="WMI: Logged on user" Query="select UserName from Win32_ComputerSystem">
<Instance>
<Attribute Name="UserName" Value="" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Operating System" Query="Select Caption from Win32_OperatingSystem">
<Instance>
<Attribute Name="Caption" Value="Microsoft Windows 2000 Professional" />
</Instance>
</ManagedObject>
<ManagedObject Name="WMI: Applications installed by Windows Installer" Query="select Name from win32_product">
<Instance>
<Attribute Name="Name" Value="ActivePerl 5.6.1 Build 631" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Project 2000" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Office 2000 Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="Microsoft Visio Professional 2002 SR-1 [English]" />
</Instance>
<Instance>
<Attribute Name="Name" Value="GeoMedia Professional" />
</Instance>
<Instance>
<Attribute Name="Name" Value="WebFldrs" />
</Instance>
<Instance>
<Attribute Name="Name" Value="CaliberRM" />
</Instance>
</ManagedObject>
</Computer>
</ComputerList>
'// End sample XML data