February 2019
Intermediate to advanced
626 pages
15h 51m
English
LINQ to XML can be used to validate an XML document against a schema file.
The ISE-help.xml XML document is validated against its schema in the following example:
using namespace System.Xml.Linq $path = 'C:\Windows\System32\WindowsPowerShell\v1.0\modules\ISE\en-US\PSISE-help.xml' $xDocument = [XDocument]::Load( $path, [LoadOptions]::SetLineInfo) $xmlSchemaSet = [System.Xml.Schema.XmlSchemaSet]::new() $null = $xmlSchemaSet.Add( 'http://schemas.microsoft.com/maml/2004/10', ...
Read now
Unlock full access