Thursday, December 4, 2014

Reading XML with PowerShell

Here is an example of accessing XML data via PowerShell:

$xmlDocument = [xml] @"
   <book id="101">
      <description>This is a description1.</description>
   <book id="101">
      <description>This is a description2.</description>

$ | Select-Object -Property author, title, price

PS C:\Users\tnaveed\Desktop> C:\Users\tnaveed\Desktop\CheckUser.ps1

author                         title                         price                        
------                         -----                         -----                        
Author1                        Title1                        45.95                        
Author2                        Title2                        75.99                        

Official SharePoint Documentation

I have recently contributed to the official SharePoint documentation for developement. Check it out here: