PoshCode Archive  All files named "New-XML.ps1"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for New-XML.ps1

2018-06-10
13:53
This is a first stab at creating a little DSL to generate XML. Note that I used System.Linq.XML (and output an XDocument) instead of the old XmlDocument… This means you have to have .Net 3.5 (LINQ) installed. It also means that if you want to be able to use the output via PowerShell’s magic XML dot-notation, you have to cast it to XmlDocument, just write: [xml]$xml = New-XML ... file: [597efcb7f5] check-in: [63cb36d230] user: Joel Bennett branch: trunk, size: 4587
12:56
Added: This is a first stab at creating a little DSL to generate XML. Note that I used System.Linq.XML (and output an XDocument) instead of the old XmlDocument… This means you have to have .Net 3.5 (LINQ) installed. It also means that if you want to be able to use the output via PowerShell’s magic XML dot-notation, you have to cast it to XmlDocument, just write: [xml]$xml = New-XML ... file: [6c99089134] check-in: [55af359a39] user: Joel Bennett branch: trunk, size: 4587