O'Reilly logo

PowerShell Deep Dives by Edited by Jeffery Hicks, Richard Siddaway, Oisín Grehan, and Aleksandar Nikoli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. PowerShell and XML: better together

Josh Gavant

In the words of PowerShell creator Jeffrey Snover in his 2002 “Monad Manifesto” (www.jsnover.com/Docs/MonadManifesto.pdf), “[t]he traditional model for administrative automation ... requires clumsy, lossy, imprecise text manipulation utilities.” Command-line input and answer files are unstructured text; output is a hodgepodge of details that the command’s authors deem helpful. To use the text output from one command as input for another, that text has to be parsed, and the script author has to pray that the chosen parsing works consistently. In fact, Snover coined the term prayer-based parsing, and defines it as follows:

Definition

Prayer-based parsing is when you parse ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required