Hello All,
I'm pretty new to Powershell and get the feeling this is extremely easy, however its been about 6 hours now trying to solve the following without success, can anybody help?
All I would like to do is output a list of attributes, but not element names in an XML file, so if the XML was like so:
(?xml version="1.0" encoding="utf-8"?) (violations) (violationInfo code="RobotsContentType" level="Error"/) (violationInfo code="AltMissing" level="Error"/) (/violations)
The Powershell output would be like this:
code level
Any help would be appreciated, thanks in advance,
James
P.S. XML disappeared when posting, therefore have replaced larger and smaller than signs with brackets.
|