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 ...
Get PowerShell Deep Dives now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.