Import-PnPTermGroupFromXml

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Import-PnPTermGroupFromXml.md to change this file.

Imports a taxonomy TermGroup from either the input or from an XML file.

Syntax

Import-PnPTermGroupFromXml
      [[-Xml] <String>]
      [-Connection <PnPConnection>]  
      [<CommonParameters>]
Import-PnPTermGroupFromXml
      [-Path <String>]
      [-Connection <PnPConnection>]  
      [<CommonParameters>]

Examples

EXAMPLE 1

Import-PnPTermGroupFromXml -Xml $xml

Imports the XML based termgroup information located in the $xml variable

EXAMPLE 2

Import-PnPTermGroupFromXml -Path input.xml

Imports the XML file specified by the path.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Path

The XML File to import the data from

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Xml

The XML to process

Type:String
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False