I had to replace the [XML] with a $
So it worked like this: compare-object $(get-content baseline.xml) -diff $(get-content changes.xml)
Sorry, but I'm new to PowerShell, was changing the [XML] to a $ suppose to be common knowledge? Just trying to understand why it worked like that?
Thanks
Main Topics
Browse All Topics





by: BSonPoshPosted on 2009-03-18 at 15:00:18ID: 23924259
hrm.. you can try this
compare-object [XML](get-content baseline.xml) -diff [XML](get-content changes.xml)