Sample code for 30+ languages & platforms
PowerShell

Setting XML Tag and Content

See more XML Examples

Demonstrates how to set the tag and content of an XML node.

The following XML sample code produces this output:


<abc>123</abc>

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$xml = New-Object Chilkat.Xml

$xml.Tag = "abc"
$xml.Content = "123"

$($xml.GetXml())