I'm working with DISA STIG xml files, and having some issues. They use an XSL stylesheet file, so when I do a get-content on it all I get is three properties (Benchmark, xml, xml-stylesheet), zero child nodes. I've been looking for DAYS now how to actually be able to parse / search in the actual nodes inside the original XML files, for example to find or such.
It seems that
$STIG = [xml]$XmlDocument = Get-Content -Path "$Path\U_IIS_8-5_Server_STIG_V1R2_Manual-xccdf.xml"
only has
xml xml-stylesheet Benchmark
--- -------------- ---------
version="1.0" encoding="utf-8" type='text/xsl' href='STIG_unclass.xsl' Benchmark
And I can't figure out how to turn this XML into an XML I can actually search, parse, etc.