Just about every browser can open an XML file. In Chrome, just open a new tab and drag the XML file over. Alternatively, right click on the XML file and hover over "Open with" then click "Chrome". When you do, the file will open in a new tab.
Collect properties of all Windows Services on the local machine using Get-Service CmdLet. Pipeline the result from Get-Service CmdLet to the Export-Clixml CmdLet that will save resultset as an XML file. Import XML file into $ImportXML variable using Import-Clixml CmdLet. Show the resultset in the PowerShell Grid.
The Select-Xml cmdlet lets you use XPath queries to search for text in XML strings and documents. Enter an XPath query, and use the Content, Path, or Xml parameter to specify the XML to be searched.
When I connect to my HP ILO using the URL, http://ilo-ip/xmldata?item=All it is returning a XML file in below format.
<?xml version="1.0" ?>
- <RIMP>
- <HSI>
<SPN>ProLiant DL385 G1</SPN>
<SBSN>ABCDEFG</SBSN>
<UUID>123456789</UUID>
</HSI>
- <MP>
<ST>1</ST>
<PN>Integrated Lights-Out (iLO)</PN>
<FWRI>1.82</FWRI>
<HWRI>ASIC: 2</HWRI>
<SN>ILOABCDEFG</SN>
<UUID>ILO1234545</UUID>
</MP>
</RIMP>
Is there any powershell command/script to read XML data from web URL?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With