7 responses to “A DSL for XML in PowerShell: New-XDocument”

  1. Josh Einstein

    Wow, that on-the-fly implementation of unrecognized command names is very clever! But the potential conflicts (or more importantly, potential future conflicts) seems too dangerous to use in real scripts. I wonder if it might be possible to temporarily alter the command lookup table so that only full cmdlet names could be used in the XML DSL and any “short” names would always be treated as XElements.

  2. Jason Archer

    Very cool idea!

    It would be nice if Format-XML could also take the path to an XML file.

  3. Mark Dunlop

    Just looked at 4.3 – looks great.

    I’ve been building a load of code using Mike Kay’s Saxonica libraries, and have recently been tempted to do a proper job of building some advanced functions. Reasoning behind that was the high level of standards compliance, especially wrt XQuery

    Since you’re working in the same namespace, so to speak, I wonder if you’d had any thoughts on doing this.