Display: Cloud | List
Most Popular Tags
Results (7 total) All > powershell (x) > system.xml.xmldocument (x)
Sample using PowerShell (XmlElement.SetAttribute Method (String, String) (System.Xml))
<#.SYNOPSIS This script adds an attribute to an XML node.DESCRIPTION This script creates a simple XML document and sets an attribute on a node. The script displays the before and after results, and is a conversion and extension of the MSDN sample. .NOTES File Name : get-autohelp.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script p
Last modified by Thomas Lee on 6/30/2010 6:37:12 PM
Sample Using PowerShell (XmlElement.CloneNode Method (System.Xml))
<#.SYNOPSIS This script clones an XML node..DESCRIPTION This script creates an XML document, then creates two clone elements..NOTES File Name : Clone-XMLNode.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN Sample posted at: http://msdn.microsoft.com/en-us/library/system
Last modified by Thomas Lee on 6/29/2010 10:30:33 AM
Sample using PowerShell (XmlElement.RemoveAttribute Method (String) (System.Xml))
<#.SYNOPSIS This script removed an an attribute from an XML element..DESCRIPTION This script creates an XML document, then removes an Attribute using the RemoveAttribute method..NOTES File Name : Remove-XMLAttribute.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to:http://www.pshscripts.blogspot.com MSDN Sample po
Last modified by Thomas Lee on 6/29/2010 12:34:39 PM
Sample Using PowerShell (XmlElement.RemoveAttributeAt Method (System.Xml))
<#.SYNOPSIS This script removed an an attribute from an XML element..DESCRIPTION This script creates an XML document, then removes an Attribute using the RemoveAttributeAt method..NOTES File Name : Remove-XMLAttributeAt.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN Samp
Last modified by Thomas Lee on 6/30/2010 2:38:00 PM
Sample Using PowerShell (XmlElement.GetAttribute Method (String) (System.Xml))
<#.SYNOPSIS This script retrieves an attribute from an XML Element .DESCRIPTION This script first creates an in-memory XML document, then used the HasAttribute and GetAttribute to retrieve an attribute..NOTES File Name : Get-XMLAttribute.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://pshscripts.blogspot.com
Last modified by Thomas Lee on 6/27/2010 7:27:59 PM
Sample using PowerShell (XmlElement.HasAttribute Method (String) (System.Xml))
<#.SYNOPSIS This script retrieves an attribute from an XML Element .DESCRIPTION This script first creates an in-memory XML document, then used the HasAttribute and GetAttribute to retrieve an attribute..NOTES File Name : Get-XMLAttribute.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.
Last modified by Thomas Lee on 6/27/2010 7:18:03 PM
Sample recoded in PowerShell (XmlElement.Name Property (System.Xml))
<#.SYNOPSIS This script reimplements an MSDN Sample in PowerShell.DESCRIPTION This script creates and manipulates an XML Document.NOTES File Name : Get-XMLNode.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN Sample posted at: http://msdn.microsoft.com/en-us/library/system.
Last modified by Thomas Lee on 6/7/2010 2:48:07 PM
Page view tracker