-
Notifications
You must be signed in to change notification settings - Fork 0
Test Xml
external help file: XMLLab-help.xml Module Name: XMLLab online version: https://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation schema: 2.0.0
Try parsing text as XML, and validating it if a schema is provided.
Test-Xml [-Path] <String> [-Schemata <Hashtable>] [-SkipValidation] [-Warnings] [-ErrorMessage]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Test-Xml -Xml <String> [-Schemata <Hashtable>] [-SkipValidation] [-Warnings] [-ErrorMessage]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
'
False
A file to check.
Type: String
Parameter Sets: Path
Aliases: FullName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe string to check.
Type: String
Parameter Sets: Xml
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: FalseA hashtable of schema namespaces to schema locations (in addition to the xsi:schemaLocation attribute).
Type: Hashtable
Parameter Sets: (All)
Aliases: Schemas
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseIndicates that XML Schema validation should not be performed, only XML well-formedness will be checked.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: NoValidation
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseIndicates that well-formedness or validation errors will result in warnings being written.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: ShowWarnings
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseWhen present, returns the well-formedness or validation error messages instead of a boolean value, or nothing if successful. This effectively reverses the truthiness of the return value.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: NotSuccessful
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation
https://docs.microsoft.com/dotnet/api/system.xml.xmlresolver
https://docs.microsoft.com/dotnet/api/system.xml.schema.validationeventhandler