![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| | |||||||
| | Vista - XML parsing and Win7 unattended answer files |
| |
| 09-12-2009 | #1 (permalink) |
| | XML parsing and Win7 unattended answer files Has anyone successfully built a PowerShell script that can manipulate (as an XML file) the AutoUnattend.XML file created by Microsoft's SIM for Windows 7 and used to drive its setup process? I don't have any trouble with a plain-vanilla XML file, but there's something about the way that the unattend file is using namespace specifications (including multiple namespace specs in a single node) that's causing my xpath filter to consistently return a null response. (If the unattend.xml file had a single namespace spec my code would work, but the multiple specs seem to be confusing both my code and me.) I'll be happy to accept a response of RTFM if someone can tell me where to look in which FM (or which FURL if that's more appropriate...) I'll also happily accept a pointer to Google, but so far I've not been able to build a search argument that gets me the answer. This isn't a crisis for now; after spending more time than I care to admit trying to find a solution I've changed my build process so that I can do the edit by treating autounattend.xml as a flat file, but in the future I may need to be able to work with it as a native XML data file. Incidentally, I'm working with Powershell 2 on the RTM version of Windows 7 Enterprise. Thanks in advance for any help. Joe Morris |
| My System Specs |
| 09-15-2009 | #2 (permalink) |
| | Re: XML parsing and Win7 unattended answer files I've not checked out the XML yet. Maybe you'd consider posting more details, and maybe someone will see something from your code... Marco "Joe Morris" <j.c.morris@newsgroup> wrote in message news:h8guhf02e3q@newsgroup Quote: > Has anyone successfully built a PowerShell script that can manipulate (as > an XML file) the AutoUnattend.XML file created by Microsoft's SIM for > Windows 7 and used to drive its setup process? > > I don't have any trouble with a plain-vanilla XML file, but there's > something about the way that the unattend file is using namespace > specifications (including multiple namespace specs in a single node) > that's causing my xpath filter to consistently return a null response. > (If the unattend.xml file had a single namespace spec my code would work, > but the multiple specs seem to be confusing both my code and me.) > > I'll be happy to accept a response of RTFM if someone can tell me where to > look in which FM (or which FURL if that's more appropriate...) I'll also > happily accept a pointer to Google, but so far I've not been able to build > a search argument that gets me the answer. > > This isn't a crisis for now; after spending more time than I care to admit > trying to find a solution I've changed my build process so that I can do > the edit by treating autounattend.xml as a flat file, but in the future I > may need to be able to work with it as a native XML data file. > > Incidentally, I'm working with Powershell 2 on the RTM version of Windows > 7 Enterprise. > > Thanks in advance for any help. > > Joe Morris > |
| My System Specs |
![]() |
| Thread Tools | |
| |
| Similar Threads for: XML parsing and Win7 unattended answer files | ||||
| Thread | Forum | |||
| Parsing AssemblyInfo files | .NET General | |||
| I am looking for information on parsing log files (text) | PowerShell | |||
| parsing csv files with fields that may contain commas | PowerShell | |||
| comment out lines from unattended xml files - SIM? | Vista installation & setup | |||
| Parsing log files for analysis | PowerShell | |||