I got this working in the end - the XMLConfig does support the manipulation
of XML attributes.

In case anyone Googles this, something like this will work:

<util:XmlConfig Id='InsertSchemaLocationAttribute'
           Action='create'
           ElementPath='/xs:schema/xs:include[\[]not(@schemaLocation)[\]]'
           File='[FILENAME]Microsoft.Build.xsd'
           Name='schemaLocation'
           Node='value'
           On='install'
           Sequence='2'
           Value='MSBuild\File.xsd' />

The above adds a "schemaLocation" attribute with the value to the element
found at the ElementPath (actually the first "include" element with no
"schemaLocation" location).

Thanks,

Callum

---------- Forwarded message ----------
From: Callum Hibbert <[EMAIL PROTECTED]>
Date: Mar 26, 2007 12:26 PM
Subject: XmlConfig and XML Attributes?
To: wix-users@lists.sourceforge.net


Coders,

I can't get the "XmlConfig" task to create or update an XML Attribute. Is
this supported? Or is the functionality of "XmlConfig" restricted to the
manipulation of XML Elements only?

Thanks,

Callum
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to