Thank you, this solved the problem, I just did not see the space there

Regards,
Kjartan Þór

-----Original Message-----
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Sent: 31. maí 2012 12:26
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] XmlFile can't create a child element

There's a space in the Name attribute. Other than that, it looks like it should 
work. If that's not the problem, can you post the xml please ?

-----Original Message-----
From: Kjartan Þór Kjartansson [mailto:kjar...@fivedegrees.is]
Sent: 31 May 2012 12:42
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] XmlFile can't create a child element

Hi,

I'm having a problem with using XmlFile to make changes to a configuration 
file. I'm trying to build the database appender configuration for log4net and I 
always get this error:

ExecXmlFile:  Error 0x80004005: failed to create child element:
conversionPattern

The source for generating this element is:


    <Component Id="ComponentName" Guid="<GUID>" Directory="INSTALLFOLDER"
KeyPath="yes">

      <util:XmlFile Id="ComponentName"

                    File="[#fil9821DC700FB1F32609450B3033F099B7]"

                    Action="createElement"

                    ElementPath="/configuration/log4net/appender [\[]@name = 
'DatabaseAppender'[\]]/parameter[\[]parameterName [\[]substring(@value, 2) = 
'thread'[\]][\]]/layout [\[]@type = 'log4net.Layout.PatternLayout'[\]]"

                    Name="conversionPattern "

                    SelectionLanguage="XPath"

                    Sequence="76" />

      <Condition>

        <![CDATA[ DATABASELOGGING = "true" ]]>

      </Condition>

    </Component>

If I change the ElementPath I get an error saying that the path can't be found, 
so XmlFile can apparently find the parent element, but isn't able to create a 
child for some reason. I can find no information on this error via Google so 
I'm hoping someone here has run into a similar problem and point me in the 
right direction

Best regards,
Kjartan Þór


Kjartan Thor
Kjartansson<http://www.fivedegrees.nl/AboutUs/OurStaff#have-you-met:Kjartan>

Software Developer


Five Degrees
Borgartún 26

Reykjavik

Iceland


T: +354 551 0510


www.fivedegrees.nl<http://www.fivedegrees.nl/>




E-mail and attachments sent by Five Degrees employees may contain confidential 
and privileged information and are only intended for the addressee. The content 
of the message is the individual sender's responsibility, if it is not related 
to the operation of Five Degrees. If you are not the intended recipient of this 
e-mail, please notify us immediately by reply e-mail and then delete this 
message completely from your system.


-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to