I'm still in the process of learning about XSL and XML schemas but have unforunately come across a rather complicated output from a PowerShell export that I need to transform to a readable format for Access.
Unfortunately has thrown up something rather complicated, and my efforts to attempt to sort it have gone in vain, following the guidance I've been able to scrape :
<Obj RefId="0">
<TN RefId="0">
<T>System.IO.DirectoryInfo</T>
<T>System.IO.FileSystemInfo</T>
<T>System.MarshalByRefObject</T>
<T>System.Object</T>
</TN>
<ToString>Archive Files - Requested</ToString>
<Props>
<S N="Name">Archive Files - Requested</S>
<Obj N="Parent" RefId="1">
<TNRef RefId="0" />
<ToString>Archive Files</ToString>
<Props>
<S N="Name">Archive Files</S>
<S N="Parent"></S>
<B N="Exists">true</B>
<S N="Root">N:\</S>
<S N="FullName">N:\Archive Files</S>
<S N="Extension"></S>
<DT N="CreationTime">2016-02-24T08:23:01.3111895+00:00</DT>
<DT N="CreationTimeUtc">2016-02-24T08:23:01.3111895Z</DT>
<DT N="LastAccessTime">2019-09-19T03:00:01.2502407+01:00</DT>
<DT N="LastAccessTimeUtc">2019-09-19T02:00:01.2502407Z</DT>
<DT N="LastWriteTime">2016-02-24T08:25:10.3301992+00:00</DT>
<DT N="LastWriteTimeUtc">2016-02-24T08:25:10.3301992Z</DT>
<S N="Attributes">Directory</S>
</Props>
<MS>
<S N="BaseName">Archive Files</S>
<S N="Mode">d----</S>
</MS>
</Obj>
Ideally I'd like things to make things flat and have it look something like:
<Root>
<Record>
<RefID>#</RefID>
<Name>Archive Files</Name>
<Parent></Parent>
<FullName>N:\Archive Files</FullName>
<Extension></Extension>
<CreationTime>2016-02-24T08:23:01.3111895+00:00</Creationtime>
<LastAccessTime>2019-09-19T03:00:01.2502407+01:00</LastAccessTime>
<LastWriteTime">2016-02-24T08:25:10.3301992+00:00</LastWriteTime>
<Attributes>Directory</Attributes>
<BaseName>Archive Files</BaseName>
<Mode>d----</Mode>
</Record>
</Root>