Go Back   Winamp Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 9th June 2008, 14:03   #1
spitze
Junior Member
 
Join Date: May 2008
Location: Ingolstadt
Posts: 2
XML Plugin Question

Hi All,

i want to insert a line in an XML file. I use the XML Plugin -> XML plugin

The XML file looks like:
code:

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<adtf:configuration xmlns:adtf="adtf">
<general_settings>
<property name="gui_refresh_rate" value="25"/>
</general_settings>
<module_directories>
</module_directories>
<template_directories/>
</adtf:configuration>



Now i want to insert:
code:

<directory path="C:\program files\Test"/>


between
code:

<module_directories>
</module_directories>




I tried this piece of code
code:

${xml::FindNextElement} "module_directories" $0 $1
${xml::CreateNode} '<directory path="C:\program files\Test"/>' $4
${xml::InsertAfterNode} $4 $5



The Output is:
code:

<module_directories />
<directory path="C:\program files\Test"/>



but it should be:
code:

<module_directories>
<directory path="C:\program files\Test"/>
</module_directories>



Any suggestions??

Regards.

Last edited by spitze; 9th June 2008 at 14:24.
spitze is offline   Reply With Quote
 
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump