cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
carl_heller
Level 2

Problem setting XML attribute

I have a Basic MSI project. I need to add an attribute to an XML file that I am creating. Everything else in the XML file (nodes/values/etc.) is being set correctly, it's just this one attribute that will not set. I have specified the information in the General Tab for the Element (screen shot attached), but when the file is created, the attribute does not exist.

Help!

Carl.
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

While xmlns="..." looks like an attribute, it's actually a namespace which has deeper repercussions. Assuming your want your XML to look something like


then you need to define a namespace prefix (say tempuri) which maps to http://tempuri.org/..., and put the prefix on your elements: tempuri:Services and tempuri:Service.
0 Kudos