Converts XDocument
to [xml]
.
Takes an XDocument
in and puts an [xml]
to the object pipeline.
Add-Accelerator -XDocument; $xd = [xdoc]::Load("./Tests/Sample1WithNCover.xml"); $xml = $xd | ConvertTo-XmlDocument
Adds [xdoc]
the easy way first, then does the conversion
public class ConvertToXmlDocumentCommand : PSCmdlet
name | description |
---|---|
ConvertToXmlDocumentCommand() | The default constructor. |
XDocument { get; set; } | Input as XDocument value |
override ProcessRecord() | Create transformed document |